We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can use setuptools_scm to dynamically set the version which is derived from Git tags.
Necessary lines in pyproject.toml
pyproject.toml
[build-system] requires = [ ... "setuptools[toml]>=8" ] [project] ... dynamic = ["version"] [tool.setuptools_scm] write_to = "isoslam/_version.py"
Optional addition if using pytest-cov to report test coverage.
pytest-cov
[tool.coverage.run] omit = [ "isoslam/_version.py" ]
Can then import the version in __init__.py to make it available.
__init__.py
from importlib.metadata import version release = version("<pkgname>") __version__ = ".".join(release.split("."[:2]))
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Can use setuptools_scm to dynamically set the version which is derived from Git tags.
Necessary lines in
pyproject.toml
Optional addition if using
pytest-cov
to report test coverage.Can then import the version in
__init__.py
to make it available.The text was updated successfully, but these errors were encountered: