Skip to content

Commit a45cc86

Browse files
authored
Use setuptools-scm (#158)
* Remove obsolete setup.py * Use setuptools-scm for version handling When creating a new release via GitHub, this will automatically set the package version number according to the git tag. Resolves #156.
1 parent d1942d5 commit a45cc86

5 files changed

Lines changed: 12 additions & 8 deletions

File tree

.git_archival.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node: $Format:%H$
2+
node-date: $Format:%cI$
3+
describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.git_archival.txt export-subst
2+
.gitignore export-ignore

MANIFEST.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
include example/*.csv
22
include example/*.tsv
3-
include example/*.xml
3+
include example/*.xml
4+
exclude .git_archival.txt
5+
exclude .gitattributes

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ license-files = ["LICENSE"]
2727

2828
[build-system]
2929
requires = [
30-
"setuptools>=77.0.0",
30+
"setuptools>=80",
31+
"setuptools-scm>=8",
3132
]
3233

3334
[project.optional-dependencies]
@@ -55,6 +56,8 @@ include-package-data = true
5556
[tool.setuptools.package-data]
5657
"petab_gui.assets" = ["PEtab.png"]
5758

59+
[tool.setuptools_scm]
60+
5861
[tool.ruff]
5962
line-length = 79
6063
lint.select = [

setup.py

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)