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).

usage

Add setuptools to the dependencies of your package, and the following into yourpackage.py (or __init__.py):

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

contributing

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.

Source Distribution

get_version-2.0.2.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

get_version-2.0.2-py3-none-any.whl (43.7 kB view details)

Uploaded Python 3

File details

Details for the file get_version-2.0.2.tar.gz.

File metadata

  • Download URL: get_version-2.0.2.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.18.4

File hashes

Hashes for get_version-2.0.2.tar.gz
Algorithm Hash digest
SHA256 7d24bc159b297a347b1aae2c13956c8b3c39ca7442dcb54451bbce089f1777e0
MD5 c5163cc8e1620c28bf8b692b585a39c3
BLAKE2b-256 792c27a198d1eb0233fe5c77d8a0fd817ae8f698252ef1fd6daded2ecb944e99

See more details on using hashes here.

File details

Details for the file get_version-2.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for get_version-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4c31305523d86d82690292587c4ef4007037e0296cf61d737766a7f2d22d0ecb
MD5 e533d715d41595e49614b45a9c958603
BLAKE2b-256 bcbee84a50e88af433a07b4ff489e34057c69f3878ef8e59395567f26c2ea3da

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page