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.4.tar.gz (17.1 kB view details)

Uploaded Source

Built Distribution

get_version-2.0.4-py3-none-any.whl (42.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for get_version-2.0.4.tar.gz
Algorithm Hash digest
SHA256 4b2fe95dcbd052b8ce8a1e141abc2d0dc195418eb45fb366661fc61c5567fa40
MD5 657ed0c2e56c525dad19df16d371df55
BLAKE2b-256 6f04c4268ed0229c26e5fd3b45f07ad728f6beaced5be9ab1186ae66847e7eea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: get_version-2.0.4-py3-none-any.whl
  • Upload date:
  • Size: 42.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.20.1

File hashes

Hashes for get_version-2.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2405f53bbd15cc2f4f3f6548b2ac60331b6d68c5b94c95267d9286078f7c468e
MD5 65313a3994ff3dc2dcaece4bc7f1e2a9
BLAKE2b-256 4d0f65bb6208f08298cecf94140df0b3b1a0028b4ee79ff7a961c990dccb1a98

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