Skip to main content

A version helper in the spirit of versioneer.

Project description

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 pkg_resources (part of setuptools).


Add setuptools to the dependencies of your package, and the following into (or

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


Use black . to ensure proper code style. In order to not forget you can use pre-commit install.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for get_version, version 2.0.6
Filename, size File type Python version Upload date Hashes
Filename, size get_version-2.0.6-py3-none-any.whl (43.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size get_version-2.0.6.tar.gz (17.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page