Skip to content

Commit

Permalink
Use setuptools_scm for versioning.
Browse files Browse the repository at this point in the history
  • Loading branch information
syoyo committed Jan 8, 2024
1 parent 6292b7d commit bd7e24c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,9 @@ $ LD_PRELOAD=$(clang -print-file-name=libclang_rt.asan-x86_64.so) python FILE.py

### Releasing

* bump version in `setup.py`
* tag it: `git tag vX.Y.`
Version is created automatically using `setuptools_scm`.

* tag it: `git tag vX.Y.Z`
* push tag: `git push --tags`


Expand Down
16 changes: 14 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
[build-system]
requires = [
"setuptools>=42",
# NOTE: setuptools_scm>=8 is not supported in py3.6 cibuildwheel env.
# so use older setuptools_scm for a while
#"setuptools>=64",
#"setuptools_scm>=8",
"setuptools>=45",
"setuptools_scm[toml]>=6.2",
"wheel",
"pybind11>=2.10.0",
]
Expand All @@ -12,11 +17,18 @@ line-length = 140
[project]
name = "jagger"

# look into version in setuo.py
# Use setuptools_scm
dynamic = ["version"]

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


[project.scripts]
jagger = "jagger:main"

[tool.setuptools_scm]
# setuptools_scm>=8
#version_file = "jagger/_version.py"

# setuptools_scm<8
write_to = "jagger/_version.py"

0 comments on commit bd7e24c

Please sign in to comment.