Skip to main content
Current Version Build Status Coverage Requirements Status Vulnerabililtes Status Updates Python 3

Python package versioning made simple

NOTE: this is a fork of the original rocktavious/pyversion. This version has been upgraded to support python3.x

Quickstart

Feeling impatient? I like your style.

In your setup.py file

setup(
    ...
    setup_requires = ['pyversion3'],
    auto_version = True,
    ...
)

On the command line

python setup.py increment tag register sdist upload

PBR

If you are also using the openstack PBR package pyversion3 supports this as well just modify your setup.py file

setup(
    setup_requires = [
        'pbr',
        'pyversion3'
    ],
    pbr = True,
    auto_version = "PBR",
)

Installation

Download and install using pip install pyversion3

CLI

The package also comes with a cli command that can be used to determine what the current version the package sees for your package

usage:

>>> pyversion3 <name of your package>
1.2.3

Developing

To develop on this project, please take a fork of then and submit a pull requeest once changes are ready.

This package makes of of pipenv for installing and dependency maintainence. If publishing to pypi, rememeber to update requirements.txt and test-requirements.txt as follows:

pipenv install –dev -ignore-pipfile > requirements.txt pipenv lock –requirements > requirements.txt

Also remember to run tox in the base directory to run black, linter and other tests.

You can also run tox to perform black formatting, linting and testing. To test build and upload to test.pypi.org use: tox -e testrelease

To build and upload to production use: tox -e release will release to pypi a new version

Travis is in use for CI, so you can also run: travis-lint .travis.yml

Or use the below to manully upload: python setup.py sdist bdist_wheel twine upload dist/*

Metadata

Release files for pyversion3 0.5.16

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyversion3 0.5.16
File Size Uploaded
pyversion3-0.5.16.tar.gz 16.2 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for pyversion3 0.5.16
File Interpreter ABI Platform
pyversion3-0.5.16-py3.7.egg Legacy Egg format - - Details
pyversion3-0.5.16-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 41.0 kB

Release files / pyversion3-0.5.16.tar.gz

Download URL pyversion3-0.5.16.tar.gz
Size 16.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2eb05bc441e4c06b58882769342e3749b194fc79a5df30282993aee7589a71f7
BLAKE2b-256 checksum
How to use checksums
5b4032cf61fb2fe3310255b4be2474cacbc6f0c34949e030417b0c9dd1d9adff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.0

Release files / pyversion3-0.5.16-py3.7.egg

Download URL pyversion3-0.5.16-py3.7.egg
Size 15.7 kB
Tags Egg
SHA-256 checksum
How to use checksums
ac7559de2f7fce98aaeaeea644b9c299c5e554ea79eb31eae83e68d7d700a646
BLAKE2b-256 checksum
How to use checksums
2a31a81fc51a6f564d87e518710aba7ca36923106bc779e96c0ac1e9da1b1715
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.0

Release files / pyversion3-0.5.16-py2.py3-none-any.whl

Download URL pyversion3-0.5.16-py2.py3-none-any.whl
Size 9.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
1f44e839064f95dc1126c53bc07f037bba0510e652857504b6627bcd5be3e57b
BLAKE2b-256 checksum
How to use checksums
ab6836381ac9bb42997d3876a94965303f4606a444411975ab729a9ae75fc991
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.0

Release history Release notifications | RSS feed

This release

0.5.16 This release

3 release files

0.5.15

3 release files

0.5.14

3 release files

0.5.13

3 release files

0.5.12

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page