change versioning to dynamic versions with setuptools-scm

This commit is contained in:
Justus Kuhlmann 2025-12-01 12:43:00 +01:00
commit 66faf9cf33
Signed by: jkuhl
GPG key ID: 00ED992DD79B85A6
3 changed files with 27 additions and 4 deletions

View file

@ -1,7 +1,30 @@
[build-system]
requires = ["setuptools >= 63.0.0", "wheel"]
requires = ["setuptools >= 63.0.0", "wheel", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "corrlib"
dynamic = ["version"]
dependencies = [
"gitpython>=3.1.45",
'pyerrors>=2.11.1',
'datalad>=1.1.0',
'typer>=0.12.5'
]
description = "Python correlation library"
authors = [
{ name = 'Justus Kuhlmann', email = 'j_kuhl19@uni-muenster.de'}
]
[project.scripts]
pcl = "corrlib.cli:app"
[tool.setuptools.packages.find]
include = ["corrlib", "corrlib.*"]
[tool.setuptools.dynamic]
version = { file = "corrlib/version.py" }
[tool.ruff.lint]
ignore = ["F403"]