Tool for version tag update
Project description
Simplify version management
The idea behind the development of this small tool is to simplify the process of increasing your version number. It is designed to work with a specific format explained below.
Version format supported
There are countless ways of handling your versions and there is no right or wrong way. The format I choose is the following:
major.minor.patch.devN
Some examples in no particular order
0.0.1
1.1.1.dev1
30.1.1.dev5
Usage
Please note that this will depend on the size of your team and complexity of the project. Either way if the team is large there will be a manager that should control when the version is updated so in principle is the same for a large or even a one-person team. Here are some examples:
-
You should use this program with
--dev
argument right after you pulled the latest changes from upstream -
You can use
--patch
,--minor
or--major
in combination with--release
when you want to create a new release. -
Also you have the freedom of updating any of the fields independently
Options
The argument options are better explained with examples. Let's say we currently are
working on version 1.2.3.dev4
--dev
will increase the development version by one leaving you with1.2.3.dev5
--patch
will give you1.2.4.dev1
notice that the development version is dropped back to one--minor
will change the version to1.3.0.dev1
notice now that not only dev is dropped to one but also the patch count drops to zero.--major
will change version to2.0.0.dev1
which is the same as--minor
plus dropping minor to zero.--release
will remove thedevN
part leaving you with1.2.3
.--release
can be used in combination of other options.--set
Let you set the version to any value.
If you start from a stable version like 2.0.0
you should use the --dev
argument that will increase the patch number and add the dev1 string. 2.0.1.dev1
References
- distutils.version.LooseVersion
- Semantic Version (Not used here but a good reference on version numbering)
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 Distributions
Built Distributions
Hashes for simple_version_manager-0.0.1.dev1-py3.6.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98e7894cc4a7118d91c52e6abf7d429b721c925f40c183b0402436692c4a7780 |
|
MD5 | 51f4f69c5a2e5d81e7b098282463fcfc |
|
BLAKE2b-256 | 4836a64f1f8915f3f6b13cd254ca95036a48dbe9cfcfd0a18d84acdff2b395db |
Hashes for simple_version_manager-0.0.1.dev1-py3.5.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f2f5e89d55eed3731803ee9f98f21fbb3e6db3d781eb0e65ca2d287a8c9888a |
|
MD5 | aa66c2b12f462e371f89a09376c5cd55 |
|
BLAKE2b-256 | 2680576df4400f8f508e1ce2af1616d6c271cbc7de9a26397ff6bf83c2a82045 |