Skip to content

Commit

Permalink
Add automatically generated __version__
Browse files Browse the repository at this point in the history
  • Loading branch information
ddasilva committed Nov 24, 2024
1 parent 0563454 commit 256c944
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,4 @@ Homepage = "https://rbinvariantslib.readthedocs.io/en/latest/"
[tool.setuptools_scm]
version_scheme = "post-release"
local_scheme = "node-and-date"
write_to = "rbinvariants/_version.py"
6 changes: 6 additions & 0 deletions rbinvariantslib/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@

try:
from ._version import __version__
from ._version import version_tuple
except ImportError:
__version__ = "unknown"
version_tuple = (0, 0, "unknown version")

0 comments on commit 256c944

Please sign in to comment.