Skip to main content

Small utility to track and bump the version of your python tool

Project description

VersionPy

Small utility to version and release your python tools. Doesn't need any configuration files.

Install

conda install -c vladsaveliev versionpy

Usage

Set version to 0.1.2, create a git tag and push:

$ bump 0.1.2

Increment bugfix (patch) component (e.g. 0.1.2 -> 0.1.3), create a git tag and push:

$ bump

Increment minor component (e.g. 0.1.3 -> 0.2), create a git tag and push:

$ bump minor

Allowed first arguments: major, minor, bugfix/patch, or exact version in format of 2 or 3-component version with a possible pre-prerelease component:

- 1.0.0
- 2.1
- 2.0pre
- 2.0.2a1

For a tracked tool, you can check current version with a single command:

$ version
0.2

Under the hood

VersionPy tracks the version number in the file your_package/_version.py.

When you run it for the first time, VersionPy would try to locate _version.py, or VERSION.txt, and if needed initialize _version.py it in the main package.

If you have several packages in the project and want to store _version.py in a particular one, use -p:

bump 0.0.1 -p your_package

If the version argument is ommited, will set the version to 0.0.

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

versionpy-0.4.11.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

versionpy-0.4.11-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file versionpy-0.4.11.tar.gz.

File metadata

  • Download URL: versionpy-0.4.11.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for versionpy-0.4.11.tar.gz
Algorithm Hash digest
SHA256 93b298bb6a1c571817bb3923986ec5066c5a6c275272fd9c2f4fa3cef7c1f9b6
MD5 cf1697e7132791d57ce15c5ac2a8839d
BLAKE2b-256 376420ed7ecb677e62f1af5b03c50f7a64780feaf93e5eebbbfa9725c5d1b888

See more details on using hashes here.

File details

Details for the file versionpy-0.4.11-py3-none-any.whl.

File metadata

  • Download URL: versionpy-0.4.11-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for versionpy-0.4.11-py3-none-any.whl
Algorithm Hash digest
SHA256 583f72f02515eac4e6c87838b4a620c5d32f6ded021cc2f24e2b392231ec7aa9
MD5 fe0976c6d27b4d1c93994cf8eba24169
BLAKE2b-256 f187dc6d453a0f4bb22c54b1a11ed6e8ce8826f88424437c12fbf610a6615223

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