A Python package to generate next version string
Project description
A Python package to increments module verision numbers.:
.. code-block:: python
from nextversion import nextversion nextversion(‘1.0a2’) # => ‘1.0a3’ nextversion(‘v1.0a2’) # => ‘1.0a3’ (normalized to compatible version with PEP 386) nextversion(‘foo.0.3’) # => None (impossible to normalize)
If original version number does not match PEP 386 ,
Next version compatible with PEP 386 is returned if possible,
If impossible, None is returned.
Install
Install from PyPI
$ pip install nextversion
Install from Github repo
$ git clone https://github.com/laysakura/nextversion.git
$ cd nextversion
$ ./setup.py install
See also
Version::Next CPAN module
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
nextversion-0.3.tar.gz
(6.7 kB
view details)
File details
Details for the file nextversion-0.3.tar.gz
.
File metadata
- Download URL: nextversion-0.3.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7b2ab4f1d177b067341d60011fda32aa88e9d4105e94885717bb3420fffec81 |
|
MD5 | 55330445238cc16535e39ad43d3eaae1 |
|
BLAKE2b-256 | c20bfcb1153cadf54f5dd93bf0b9b645e7e21361ab3b48f4eca27f0d5cbb5e22 |