Skip to content
Snippets Groups Projects
Commit caba2c33 authored by Sebastian Müller's avatar Sebastian Müller 🐈
Browse files

use hatch instead of setuptools

parent a16a6c6e
No related branches found
No related tags found
2 merge requests!248License update,!247use hatch instead of setuptools
Pipeline #143382 passed with stages
in 6 minutes and 56 seconds
prune *
graft src
graft tests
include LICENSE README.md pyproject.toml
global-exclude __pycache__ *.py[cod] .*
[build-system]
requires = [
"setuptools>=64",
"setuptools_scm[toml]>=6.4",
"hatchling>=1.8.0",
"hatch-vcs",
]
build-backend = "setuptools.build_meta"
build-backend = "hatchling.build"
[project]
requires-python = ">=3.8"
......@@ -11,7 +11,7 @@ name = "finam"
description = "FINAM is not a model."
authors = [{name = "FINAM Developers", email = "finam@ufz.de"}]
readme = "README.md"
license = {text = "LGPLv3"}
license = "LGPL-3.0"
dynamic = ["version"]
classifiers = [
"Development Status :: 4 - Beta",
......@@ -67,14 +67,26 @@ test = [
"pytest-benchmark[histogram]>=4.0",
]
[tool.setuptools]
license-files = ["LICENSE"]
[tool.hatch.version]
source = "vcs"
fallback_version = "0.0.0.dev0"
[tool.setuptools_scm]
write_to = "src/finam/_version.py"
write_to_template = "__version__ = '{version}'"
[tool.hatch.version.raw-options]
local_scheme = "no-local-version"
fallback_version = "0.0.0.dev0"
[tool.hatch.build.hooks.vcs]
version-file = "src/finam/_version.py"
template = "__version__ = '{version}'"
[tool.hatch.build.targets.sdist]
include = [
"/src",
"/tests",
"CHANGELOG.md",
]
[tool.hatch.build.targets.wheel]
packages = ["src/finam"]
[tool.black]
exclude = "_version.py"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment