python-node-semver
Port variant v11
Summary Port of node-semver (3.11)
BROKEN
Package version 0.9.0
Homepage https://github.com/podhmo/python-node-semver
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v12
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 11 FEB 2024, 22:37:34 UTC
Port created 11 FEB 2024, 22:37:34 UTC
Subpackage Descriptions
single node-semver ================= python version of [node-semver] install ---------------------------------------- .. code-block:: console pip install node-semver examples ---------------------------------------- .. code-block:: python from semver import max_satisfying versions = ['1.2.3', '1.2.4', '1.2.5', '1.2.6', '2.0.1'] range_ = '~1.2.3' assert max_satisfying(versions, range_, loose=False) == '1.2.6' versions = ['1.1.0', '1.2.0', '1.2.1', '1.3.0', '2.0.0b1', '2.0.0b2', '2.0.0b3', '2.0.0', '2.1.0'] range_ = '~2.0.0' assert max_satisfying(versions, range_, loose=True) == '2.0.0' try: (max_satisfying(versions, range_, loose=False) == '2.0.0') except ValueError as e: assert e.args[0] == "Invalid Version: 2.0.0b1" versions = ['1.2.3', '1.2.4', '1.2.5', '1.2.6-pre.1', '2.0.1'] range_ = '~1.2.3' assert max_satisfying(versions, range_, loose=False, include_prerelease=True) == '1.2.6-pre.1' assert max_satisfying(versions, range_, loose=False, include_prerelease=False) == '1.2.5' 0.9.0 - RENAME MODULE semver -> nodesemver (#39) - pre release range fix (#40) 0.8.1 - fix erroneous parsing of $ component version numbers (#44) 0.8.0 - handle 4-digit version correctly (#35) 0.7.0 - include tests in source distributions (#31) 0.6.0 - more strict error handling (InvalidTypeIncluded is added) 0.5.1 - bug fix 0.5.0 - include_prerelease option is added 0.4.2 - fix bug for support 4-digit (handling prelease and build) 0.4.0 - suport 4-digit version (e.g. x.y.z.a) 0.3.0 - drop python2.x support - bug fix, Add sort key function #14
Configuration Switches (platform-specific settings discarded)
PY311 ON Build using Python 3.11 PY312 OFF Build using Python 3.12
Package Dependencies by Type
Build (only) python-pip:single:v11
autoselect-python:single:std
Build and Runtime python311:single:std
Download groups
main mirror://PYPIWHL/1a/4b/180481021692a76dc91f46fa6a49cdef4c3e630c77a83b7fda3f4eb7aa04
Distribution File Information
8153270903772b1e59500ced6f0aca0f7bdb021651c27584e9283b7077b4916b 12165 node_semver-0.9.0-py3-none-any.whl
Ports that require python-node-semver:v11
No other ports depend on this one.