Semantic Version Comparison for Python
Project description
semvercomp
🐍 Semantic Version Comparison for Python
Implementation of a Version
object with comparison capabilities and tag validation following semver conventions.
Usage
Installation
pip install semvercomp
Development
Requirements
- pyenv
- pipenv
- Visual Studio Code Recommended
Debugging
- Debugging tests
Tests for this package are written with
pytest
. The following json, is an example of the.vscode/settings.json
:
{
"python.pythonPath": /* Your Python Binary Address*/,
"python.testing.pytestArgs": [
"tests"
],
"python.testing.unittestEnabled": false,
"python.testing.nosetestsEnabled": false,
"python.testing.pytestEnabled": true
}
Testing
- Running unit tests
# from repository root directory
pytest
- Running test coverage
# from repository root directory
pytest --cov=semvercomp tests/
# or with html report
pytest --cov-report html --cov=semvercomp tests/
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
semvercomp-0.1.0.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for semvercomp-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18fa2d68dc76df463749a058994be00ada44b7f0c2b52e03cd149f2c3e8264d0 |
|
MD5 | 3cd3a5e20608d466c872fc64bd680f59 |
|
BLAKE2b-256 | 952f7e9e40ce2e083614c9a0f0e08e6e47ffbe51c4c95ebd40bf6e66996826b3 |