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

Uploaded Source

Built Distribution

get_version-2.0.1-py3-none-any.whl (41.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: get_version-2.0.1.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for get_version-2.0.1.tar.gz
Algorithm Hash digest
SHA256 8222d2ecca0e70565e20ea679a3aa31b4b5c4ccb5a86ccdb813198f585642f57
MD5 b414c8ae10367bc08a316bebf60c384b
BLAKE2b-256 c94f8700a55830812dd378b525e37729704d820c35988955c87476045f83b9bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for get_version-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e918b5ae0a724d94f0356d498036fcb51b257848149b90b6f8b6c9358f79fcee
MD5 c7f6f1dec06b42f97394f729a3c534e8
BLAKE2b-256 294919de8ef0548fd0eaf80e404ce6325d81bf543cc9c7441733cee1916354be

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