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 importlib.metadata.

usage

Add 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-3.5.tar.gz (18.7 kB view details)

Uploaded Source

Built Distribution

get_version-3.5-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for get_version-3.5.tar.gz
Algorithm Hash digest
SHA256 58b44bd4447320bd67ebbb55a8da1a2794a751b34e9a7ed910ed4fa55cf9193a
MD5 4c0835f3dcbae597b723065991591003
BLAKE2b-256 ee3aa85a6c622fb6528882973426966a09ae40c659b9a9d14e15269b866eaf8e

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for get_version-3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 8f1cd750e7d15d3b0119363ab090b39f0924523565a8a637b9134e9ec891068e
MD5 7bd292af28424c2456272b96b3c11742
BLAKE2b-256 84e8aa954bc4ab5104bf84eeece1bda1e3d1e2378c8978a1c2cd38c1adfb15f1

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