Python package that mimics npm’s “semver” package
Project description
Python package for semantic versioning 2.0.0 that mimics the node semver package. The interface is designed to be more “pythonic” and does not match semver’s logic 100%.
Usage
Install using pip install semver_range. Sample usage:
>>> from semver_range import Version, Range
>>> version_range = Range('>=0.1.1 <0.3.0')
>>> Version('0.2.2') in version_range
True
>>> version_range.highest_version(['0.1.1', '0.2.0', '0.3.0'])
<Version "0.2.0">
Alternatives
semantic_version is a great package which differs slightly in its implementation of semantic versioning, for example when incrementing a minor version of a pre-release.
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
semver_range-0.0.3.tar.gz
(6.1 kB
view details)
Built Distribution
File details
Details for the file semver_range-0.0.3.tar.gz
.
File metadata
- Download URL: semver_range-0.0.3.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ccd09d5a28da3627374e41740879e85c3ce68cd607cf37bf6cbb52beb1f3a90 |
|
MD5 | 5505151d8a11a1a3a873d8589f8e9658 |
|
BLAKE2b-256 | ce7783ecf5c4612ff5bac6e9566e5729c222c2daf51b065a8e136509de2f75f2 |
File details
Details for the file semver_range-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: semver_range-0.0.3-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd609e036a2a0952474b1ccb1d694da407d681ae7f36f53abc2209e6d02189d3 |
|
MD5 | d93a41647fcf2a0ad10344a0e4b34371 |
|
BLAKE2b-256 | 31e65b97fe25f2ed73490d6b793d01aef25ba61d32f35f3891b2d98ef3f55a6e |