Version numbering and git tagging for project releases
Project description
Vernum
Version numbering and git tagging for project releases
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
Requirements:
- Python 3 (to run the command; your project can be anything)
- 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 majorto update the major version level, i.e. 5.6.2 -> 6.0.0vernum minorto update the minor version level, i.e. 5.6.2 -> 5.7.0vernum patchto 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vernum-2.1.2.tar.gz.
File metadata
- Download URL: vernum-2.1.2.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c42e32897cfae5844ee44d8b8771b20109facc1d419d02263b769097fedf723
|
|
| MD5 |
56d60ebd563619ae95b214e1da7ab1b4
|
|
| BLAKE2b-256 |
578926a430ca7811e5524db0d071331679a5ff91a4221f0d1a9ce9adf33fcb8e
|
File details
Details for the file vernum-2.1.2-py3-none-any.whl.
File metadata
- Download URL: vernum-2.1.2-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b0af5bdb2652647292a1f6056e547ac06f51783e54385d4ee1dd7c1d7034987
|
|
| MD5 |
ed0023fd9add5851d97318e119526848
|
|
| BLAKE2b-256 |
37db2f112bba999d7230890c85d8c4ec05c6ec681cce8af0b40625b0ba50ff3e
|