Manipulate semantic versioning strings
Project description
Manipulate semantic versioning (SemVer)
Manipulate semantic version strings: 1. Create a new version number, 1. initialize it with an existing number 1. Read it from an existing project setup.cfg file. 1. Validate the version string. 1. Compare one version number with another. See also https://semver.org/
Testing
This project uses pytest to run tests and also to test docstring examples.
Install the test dependencies.
$ pip install -r requirements_test.txt
Run the tests.
$ pytest tests
=== XXX passed in SSS seconds ===
Developing
This project uses black to format code and flake8 for linting. We also support pre-commit to ensure these have been run. To configure your local environment please install these development dependencies and set up the commit hooks.
$ pip install black flake8 pre-commit
$ pre-commit install
Releasing
Releases are published automatically when a tag is pushed to GitHub.
# Set next version number
export RELEASE = x.x.x
# Create tags
git commit --allow -empty -m "Release $RELEASE"
git tag -a $RELEASE -m "Version $RELEASE"
# Push
git push upstream --tags
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file SemVerIt-0.3.9.tar.gz
.
File metadata
- Download URL: SemVerIt-0.3.9.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bb1f362888a6b26e8f1ed4e59bd3e86c3ab5ad541a9626ab6dfd256dfd62299 |
|
MD5 | 66b6edae536cc0ec2fe89f6bad819efb |
|
BLAKE2b-256 | 5e9d12f57133a64930d79ae1f7001bb86ac5b2401cd08615a3cccaf463c5dd36 |
File details
Details for the file SemVerIt-0.3.9-py3-none-any.whl
.
File metadata
- Download URL: SemVerIt-0.3.9-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75d75794927bb3961ad55cd20a6dd157d8a7ecf5189c4c112f4805b28fea36fd |
|
MD5 | f9879437e163b078448d68f453ba7644 |
|
BLAKE2b-256 | da44f7fc208b0c35b6d859417fbb00348b523838866bc7e9d58e907796f09543 |