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.1
Filename, size File type Python version Upload date Hashes
Filename, size get_version-2.1-py3-none-any.whl (43.1 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size get_version-2.1.tar.gz (17.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page