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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: get_version-2.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 06c390a705db7b59e16bc3d436b473fc4b0300961a4c407d2dab1623e48d5d9e
MD5 43bc3c6dbba1804b2de464938879a847
BLAKE2b-256 b0bd99e3193afd3fd2b758229314c3a28deee4b40c840efa8f8e9b4e987534e9

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for get_version-2.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4bc0e529f9678eb8188265205924499e37e22054a29036ed4ca2437ff96ab7e5
MD5 38e13c9343809335aef4f9c43f3a9d50
BLAKE2b-256 05275adb1ac33ffcf532d3e83cc49cafa72760d5d53756068482feefd1b67ac3

See more details on using hashes here.

Provenance

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