Skip to main content

Version numbering and git tagging for project releases

Project description

VERNUM

Version numbering and git tagging for project releases

Installation

Requires Python 3 to run the command; your project can be anything.

sudo pip3 install vernum

What it does

  • Maintain a file at the root of a project called simply "version" with the version number, e.g. "5.6.2"
  • Update the release file for major, minor, or patch releases - patch is the default
  • Always create and push a git tag with the version number in it

Usage

Requirements:

  • CD to the root of the project before running it
  • Be on the branch that you use for releases (i.e. master)
  • Be fully up-to-date in git (i.e. merged, committed, and pushed)

Then run the command:

  • vernum major to update the major version level, i.e. 5.6.2 -> 6.0.0
  • vernum minor to update the minor version level, i.e. 5.6.2 -> 5.7.0
  • vernum patch to update the patch version level, i.e. 5.6.2 -> 5.6.3

Note that patch is the default so you can just say vernum for a patch release

Reference the version file within your code when it needs to know the version. For example, see setup.py in this project.

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

vernum-2.2.2.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vernum-2.2.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file vernum-2.2.2.tar.gz.

File metadata

  • Download URL: vernum-2.2.2.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.0 CPython/3.7.2

File hashes

Hashes for vernum-2.2.2.tar.gz
Algorithm Hash digest
SHA256 af72498bb483e5d0c606a54b2a62fdfb45c45b1a3f15af6f2c2bdcd0a8ba0b9d
MD5 18b8729cd5a140c1859b57d5fa2eaf68
BLAKE2b-256 9e9dbe23cb0fe0ea7011f97563f7caf1822b9b9c209f350abc3927291f6c9711

See more details on using hashes here.

File details

Details for the file vernum-2.2.2-py3-none-any.whl.

File metadata

  • Download URL: vernum-2.2.2-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.0 CPython/3.7.2

File hashes

Hashes for vernum-2.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f16e6529223ce9cfcdd3a228b821b887655502c8856ab14bb0e9fc1b5b3cfde4
MD5 97d607bb72ab369b8761781f374c4295
BLAKE2b-256 c03670e8d6a46ade627992c80179d5ccc5090fb28378f8f1400fe5c01c6f1478

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page