Skip to content

flying-sheep/get_version

Repository files navigation

get_version b-pypi b-conda b-ci b-cover

Automatically use the latest “vX.X.X” Git tag as version in your Python package.

It also supports getting the version from Python source distributions (sdist) or, once your package is installed, via importlib.metadata.

usage

Add the following into yourpackage.py (or __init__.py):

from get_version import get_version
__version__ = get_version(__file__)
del get_version

About

Automatically use the latest “vX.X.X” tag as version in your Python package

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages