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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for get_version-3.3.tar.gz
Algorithm Hash digest
SHA256 09a19dd2368dfa57b2d13aedd290fa6c46c992164a4c0e3e8088fd95f584e0e3
MD5 b0ab9682e5705d9ed574817544182cdd
BLAKE2b-256 deaa61f89a4d5607258a7237f4b2e5dd70d154bc7d4ad80f89a54d8492c98e3f

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: get_version-3.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a5ce6f47e0adef0327938cb168edf11a6fb55d695b0b5a44a5085f314a183f81
MD5 02c5004a70cf80dfbbefc7cc801b8c5f
BLAKE2b-256 237084e84d2ed94e03f2e0d3f378735d107c9e41d02de756b7ecf77e327c0fbb

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