Skip to main content

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 ,

  1. Next version compatible with PEP 386 is returned if possible,

  2. 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

Author

Sho Nakatani <lay.sakura@gmail.com>, a.k.a. @laysakura

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

nextversion-0.5.tar.gz (6.8 kB view details)

Uploaded Source

File details

Details for the file nextversion-0.5.tar.gz.

File metadata

  • Download URL: nextversion-0.5.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for nextversion-0.5.tar.gz
Algorithm Hash digest
SHA256 1380c3c714356feedf0957dbb11647aa727e243140f355f5b0ffc5b457a92f25
MD5 05611412ddf863a0a054c81f73674e80
BLAKE2b-256 e68a980b715daacbc1f5c1ab3054cc15992dd659327ec0e74f3fa830ca93bf8b

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