Skip to content

Commit 7bbba58

Browse files
authored
CI: Use setuptools-scm for automatic release versioning. (#119)
1 parent 6151c42 commit 7bbba58

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

polyagamma/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from ._polyagamma import (
22
polyagamma as random_polyagamma, polyagamma_pdf, polyagamma_cdf
33
)
4-
5-
__version__ = '1.3.3'
4+
from ._version import version as __version__, version_tuple as __version_info__

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ tracker = "https://github.com/zoj613/polyagamma/issues"
4343
[tool.setuptools]
4444
packages = ["polyagamma"]
4545

46-
[tool.setuptools.dynamic]
47-
version = {attr = "polyagamma.__version__"}
48-
4946
[tool.setuptools.exclude-package-data]
5047
polyagamma = ["*.pyx"]
5148

49+
[tool.setuptools_scm]
50+
write_to = "polyagamma/_version.py"
51+
5252
[tool.coverage.run]
5353
plugins = ["Cython.Coverage"]

0 commit comments

Comments
 (0)