Skip to main content

Semi-automatic versioning for git users.

Project description

[![PyPI Python Versions](https://img.shields.io/pypi/pyversions/flowtool-versioning.svg)](https://pypi.python.org/pypi/flowtool-versioning) [![PyPI Latest Version](https://img.shields.io/pypi/v/flowtool-versioning.svg)](https://pypi.python.org/pypi/flowtool-versioning) [![PyPI Distribution Format](https://img.shields.io/pypi/format/flowtool-versioning.svg)](https://pypi.python.org/pypi/flowtool-versioning)

# flowtool-versioning

Automatic versions from git tags.

This addon lets you deploy a small versioning framework into your python project, that integrates well with setuptools and probably also distutils.

The framework itself has no dependencies but python. It is verified-to-work with python 2.7 and 3.4 releases.

To test it out, run one of these commands: ` flowtool versioning-init flowtool versioning-update ` in a folder that contains a file named setup.py. You will then be asked where the versionfile (that contains the version information) should be placed, and wether you want to include some default snippets into setup.cfg and __init__.py to configure and use the version in your project. It will also create a file named versioning.py next to your setup.py before giving you some information on how to wire things up in setup.py from there.

Once you have it wired into your setup.py (same process as [python-versioneer](https://github.com/warner/python-versioneer)) and created a tag with your chosen prefix (setup.cfg, prefix can be empty also) to bootstrap automatic versioning, you should be able to run: ` ./versioning.py # outputs the current version ./setup.py version # get more detailed current version info ./setup.py bump # create a new tag, with a minorly bumped version ./setup.py sdist release # release is upload and git push + tags `

Request more documentation!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

flowtool_versioning-0.7.58-py2.py3-none-any.whl (20.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file flowtool_versioning-0.7.58-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for flowtool_versioning-0.7.58-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 770d82d7d3912afa658c36aab0e09a1b3b7275bacbee33416af3bda6cd1dfa21
MD5 90a41efd21b471fa3c1103988fe8570a
BLAKE2b-256 a162b1c5096242fadf07b8e80650aa996d03e0862ba64809c5718be9a1964315

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