Python Version Library
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 = ['pyversion'],
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 pyversion supports this as well just modify your setup.py file
setup(
setup_requires = [
'pbr',
'pyversion'
],
pbr = True,
auto_version = "PBR",
)
Installation
Download and install using pip install pyversion
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:
>>> pyversion <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 pyversion 0.5.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyversion-0.5.7.tar.gz | 16.2 kB | Without provenance | Details for pyversion-0.5.7.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyversion-0.5.7-py3.7.egg | Legacy Egg format | - | - | Details for pyversion-0.5.7-py3.7.egg |
| pyversion-0.5.7-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for pyversion-0.5.7-py2.py3-none-any.whl |
Total release size: 40.9 kB
Release files / pyversion-0.5.7.tar.gz
| Download URL | pyversion-0.5.7.tar.gz |
|---|---|
| Size | 16.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fcff2d51f2d9547121e4e1b19755f1747cf8abb92f51385df906bc3409e2bfe1
|
|
BLAKE2b-256 checksum How to use checksums |
5092dabfffa81841dd0ed65db333385c6718e810f38ff27bc003257cb8743015
|
| 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 / pyversion-0.5.7-py3.7.egg
| Download URL | pyversion-0.5.7-py3.7.egg |
|---|---|
| Size | 15.7 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
ecc069e70bb78eb9ccfcdfa462dcd29aad71b6a8ab3623628782f8b02e2c8d5b
|
|
BLAKE2b-256 checksum How to use checksums |
a0fa694e1c04e641b48c130b2b740e0e8cf25dd762b826fddba807ac88a8c3dc
|
| 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 / pyversion-0.5.7-py2.py3-none-any.whl
| Download URL | pyversion-0.5.7-py2.py3-none-any.whl |
|---|---|
| Size | 8.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
ad37fb62b91384368dd24b18ee3479516ac27642f9af4d2bbf21a2656cfba575
|
|
BLAKE2b-256 checksum How to use checksums |
7a757bc8471ef8c66e9cae88282d520ace4a8af16938cf165c8f6639c9c2da51
|
| 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
|
Security for pyversion 0.5.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.