Skip to content

Commit bd7e24c

Browse files
committed
Use setuptools_scm for versioning.
1 parent 6292b7d commit bd7e24c

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,9 @@ $ LD_PRELOAD=$(clang -print-file-name=libclang_rt.asan-x86_64.so) python FILE.py
120120

121121
### Releasing
122122

123-
* bump version in `setup.py`
124-
* tag it: `git tag vX.Y.`
123+
Version is created automatically using `setuptools_scm`.
124+
125+
* tag it: `git tag vX.Y.Z`
125126
* push tag: `git push --tags`
126127

127128

pyproject.toml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
[build-system]
22
requires = [
3-
"setuptools>=42",
3+
# NOTE: setuptools_scm>=8 is not supported in py3.6 cibuildwheel env.
4+
# so use older setuptools_scm for a while
5+
#"setuptools>=64",
6+
#"setuptools_scm>=8",
7+
"setuptools>=45",
8+
"setuptools_scm[toml]>=6.2",
49
"wheel",
510
"pybind11>=2.10.0",
611
]
@@ -12,11 +17,18 @@ line-length = 140
1217
[project]
1318
name = "jagger"
1419

15-
# look into version in setuo.py
20+
# Use setuptools_scm
1621
dynamic = ["version"]
1722

1823
readme = {file = "README.md", content-type = "text/markdown"}
1924

2025

2126
[project.scripts]
2227
jagger = "jagger:main"
28+
29+
[tool.setuptools_scm]
30+
# setuptools_scm>=8
31+
#version_file = "jagger/_version.py"
32+
33+
# setuptools_scm<8
34+
write_to = "jagger/_version.py"

0 commit comments

Comments
 (0)