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

Merge branch 'hatch_build_sys' into 'main'

use hatch instead of setuptools

See merge request !247
parents a16a6c6e 8fef9ce0
No related branches found
No related tags found
1 merge request!247use hatch instead of setuptools
Pipeline #145390 failed with stages
in 8 minutes and 35 seconds
node: $Format:%H$
node-date: $Format:%cI$
describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$
ref-names: $Format:%D$
.git_archival.txt export-subst
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,15 +67,23 @@ test = [
"pytest-benchmark[histogram]>=4.0",
]
[tool.setuptools]
license-files = ["LICENSE"]
[tool.setuptools_scm]
write_to = "src/finam/_version.py"
write_to_template = "__version__ = '{version}'"
local_scheme = "no-local-version"
[tool.hatch.version]
source = "vcs"
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",
]
[tool.hatch.build.targets.wheel]
packages = ["src/finam"]
[tool.black]
exclude = "_version.py"
target-version = [
......
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