This release is a pre-release and may not be stable for production use.
slap.core.semver
A semver version constraint specifier compatible with packaging.
Usage
from slap.core.semver.specifier import SemverSpecifier
spec = SemverSpecifier('1.x')
assert str(spec.version_selector.canonical) == "^1.0.0"
assert spec.contains("1.2.3")
assert not spec.contains("0.3.0")
The SemverSpecifier constructor will raise packaging.specifier.InvalidSpecifier if the
specifier string cannot be parsed.
Behaviour
The version ranges supported by SemverSpecifier are inspired by NPM. Below is a table to
illustrate the behaviour:
| Release | Example |
|---|---|
| Patch release | 1.0, 1.0.x, ~1.0.4 |
| Minor release | 1.0, 1.x, ^1.0.4 |
| Major release | * or x |
| Other | x.0.4 |
In addition to the NPM semver version ranges, Python version epochs, pre releases, post releases,
dev releases and local versions are supported. To list some examples: 2!^1.0.4, ~1.0.3.post1,
^1.0.4.dev1+gdeadbeef.
Note: The remainder fields are not supported in the
xplaceholder format.
Compatibility
Requires Python 3.6 or higher.
Metadata
Release files for slap.core.semver 0.1.0.dev1
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 |
|---|---|---|---|---|
| slap.core.semver-0.1.0dev1.tar.gz | 5.2 kB | Without provenance | Details for slap.core.semver-0.1.0dev1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| slap.core.semver-0.1.0dev1-py3-none-any.whl | Python 3 | none | any | Details for slap.core.semver-0.1.0dev1-py3-none-any.whl |
Total release size: 10.8 kB
Release files / slap.core.semver-0.1.0dev1.tar.gz
| Download URL | slap.core.semver-0.1.0dev1.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fb9485db355e660d9f52779362b69253504ea66bf7aba725dfcdee32472317cc
|
|
BLAKE2b-256 checksum How to use checksums |
3f8faa3e8353d7a8e857ff5fe0aeca5d71bfb1d3fccdcd486aa6f201d5ccf54c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
|
Release files / slap.core.semver-0.1.0dev1-py3-none-any.whl
| Download URL | slap.core.semver-0.1.0dev1-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
db1df637d739088746e113f9d624f903d4a5a5986ab8cef58284ae78c95a440b
|
|
BLAKE2b-256 checksum How to use checksums |
15f55da2d550f9ccccbaad1804bd2a88daefa31971404af377aef9be409092c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
|
Security for slap.core.semver 0.1.0.dev1
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.