semver 3.1.2__tar.gz → 3.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {semver-3.1.2 → semver-3.2.0}/CHANGELOG.rst +54 -0
- {semver-3.1.2 → semver-3.2.0}/CONTRIBUTORS +1 -0
- {semver-3.1.2 → semver-3.2.0}/PKG-INFO +1 -1
- {semver-3.1.2/tests → semver-3.2.0/docs/advanced}/semverwithvprefix.py +1 -1
- {semver-3.1.2 → semver-3.2.0}/docs/usage/semver-version.rst +1 -1
- {semver-3.1.2 → semver-3.2.0}/pyproject.toml +20 -9
- {semver-3.1.2 → semver-3.2.0}/src/semver/__about__.py +1 -1
- {semver-3.1.2 → semver-3.2.0}/src/semver/version.py +83 -28
- {semver-3.1.2 → semver-3.2.0}/src/semver.egg-info/PKG-INFO +1 -1
- {semver-3.1.2 → semver-3.2.0}/src/semver.egg-info/SOURCES.txt +1 -0
- {semver-3.1.2/docs/advanced → semver-3.2.0/tests}/semverwithvprefix.py +1 -1
- {semver-3.1.2 → semver-3.2.0}/tests/test_bump.py +18 -0
- {semver-3.1.2 → semver-3.2.0}/tests/test_compare.py +11 -40
- {semver-3.1.2 → semver-3.2.0}/tests/test_parsing.py +53 -0
- semver-3.2.0/tests/test_prefixed_example.py +19 -0
- {semver-3.1.2 → semver-3.2.0}/tests/test_semver.py +57 -0
- {semver-3.1.2 → semver-3.2.0}/uv.lock +93 -20
- {semver-3.1.2 → semver-3.2.0}/.coveragerc +0 -0
- {semver-3.1.2 → semver-3.2.0}/.editorconfig +0 -0
- {semver-3.1.2 → semver-3.2.0}/.gitignore +0 -0
- {semver-3.1.2 → semver-3.2.0}/.pytest.ini +0 -0
- {semver-3.1.2 → semver-3.2.0}/.readthedocs.yaml +0 -0
- {semver-3.1.2 → semver-3.2.0}/.ruff.toml +0 -0
- {semver-3.1.2 → semver-3.2.0}/CITATION.cff +0 -0
- {semver-3.1.2 → semver-3.2.0}/CONTRIBUTING.rst +0 -0
- {semver-3.1.2 → semver-3.2.0}/LICENSE.txt +0 -0
- {semver-3.1.2 → semver-3.2.0}/MANIFEST.in +0 -0
- {semver-3.1.2 → semver-3.2.0}/Makefile +0 -0
- {semver-3.1.2 → semver-3.2.0}/README.rst +0 -0
- {semver-3.1.2 → semver-3.2.0}/SUPPORT.md +0 -0
- {semver-3.1.2 → semver-3.2.0}/changelog.d/.gitignore +0 -0
- {semver-3.1.2 → semver-3.2.0}/changelog.d/README.rst +0 -0
- {semver-3.1.2 → semver-3.2.0}/changelog.d/_template.rst +0 -0
- {semver-3.1.2 → semver-3.2.0}/docs/_static/css/custom.css +0 -0
- {semver-3.1.2 → semver-3.2.0}/docs/_static/logo.svg +0 -0
- {semver-3.1.2 → semver-3.2.0}/docs/_templates/layout.html +0 -0
- {semver-3.1.2 → semver-3.2.0}/docs/advanced/coerce.py +0 -0
- {semver-3.1.2 → semver-3.2.0}/docs/advanced/combine-pydantic-and-semver.rst +0 -0
- {semver-3.1.2 → semver-3.2.0}/docs/advanced/convert-pypi-to-semver.rst +0 -0
- {semver-3.1.2 → semver-3.2.0}/docs/advanced/create-subclasses-from-version.rst +0 -0
- {semver-3.1.2 → semver-3.2.0}/docs/advanced/deal-with-invalid-versions.rst +0 -0
- {semver-3.1.2 → semver-3.2.0}/docs/advanced/display-deprecation-warnings.rst +0 -0
- {semver-3.1.2 → semver-3.2.0}/docs/advanced/index.rst +0 -0
- {semver-3.1.2 → semver-3.2.0}/docs/advanced/version-from-file.rst +0 -0
- {semver-3.1.2 → semver-3.2.0}/docs/contribute/add-changelog-entry.rst +0 -0
- {semver-3.1.2 → semver-3.2.0}/docs/contribute/doc-semver.rst +0 -0
- {semver-3.1.2 → semver-3.2.0}/docs/contribute/finish-release.rst +0 -0
- {semver-3.1.2 → semver-3.2.0}/docs/contribute/index.rst +0 -0
- {semver-3.1.2 → semver-3.2.0}/docs/contribute/prerequisites.rst +0 -0
- {semver-3.1.2 → semver-3.2.0}/docs/contribute/release-procedure.rst +0 -0
- {semver-3.1.2 → semver-3.2.0}/docs/contribute/report-bugs.rst +0 -0
- {semver-3.1.2 → semver-3.2.0}/docs/contribute/run-test-suite.rst +0 -0
- {semver-3.1.2 → semver-3.2.0}/docs/inventories/pydantic.inv +0 -0
- {semver-3.1.2 → semver-3.2.0}/docs/inventories/python-objects.inv +0 -0
- {semver-3.1.2 → semver-3.2.0}/docs/migration/index.rst +0 -0
- {semver-3.1.2 → semver-3.2.0}/docs/migration/migratetosemver3.rst +0 -0
- {semver-3.1.2 → semver-3.2.0}/docs/migration/replace-deprecated-functions.rst +0 -0
- {semver-3.1.2 → semver-3.2.0}/docs/usage/access-parts-of-a-version.rst +0 -0
- {semver-3.1.2 → semver-3.2.0}/docs/usage/access-parts-through-index.rst +0 -0
- {semver-3.1.2 → semver-3.2.0}/docs/usage/check-compatible-semver-version.rst +0 -0
- {semver-3.1.2 → semver-3.2.0}/docs/usage/check-valid-semver-version.rst +0 -0
- {semver-3.1.2 → semver-3.2.0}/docs/usage/compare-versions-through-expression.rst +0 -0
- {semver-3.1.2 → semver-3.2.0}/docs/usage/compare-versions.rst +0 -0
- {semver-3.1.2 → semver-3.2.0}/docs/usage/convert-version-into-different-types.rst +0 -0
- {semver-3.1.2 → semver-3.2.0}/docs/usage/create-a-version.rst +0 -0
- {semver-3.1.2 → semver-3.2.0}/docs/usage/determine-version-equality.rst +0 -0
- {semver-3.1.2 → semver-3.2.0}/docs/usage/get-min-and-max-of-multiple-versions.rst +0 -0
- {semver-3.1.2 → semver-3.2.0}/docs/usage/increase-parts-of-a-version_prereleases.rst +0 -0
- {semver-3.1.2 → semver-3.2.0}/docs/usage/index.rst +0 -0
- {semver-3.1.2 → semver-3.2.0}/docs/usage/parse-version-string.rst +0 -0
- {semver-3.1.2 → semver-3.2.0}/docs/usage/raise-parts-of-a-version.rst +0 -0
- {semver-3.1.2 → semver-3.2.0}/docs/usage/replace-parts-of-a-version.rst +0 -0
- {semver-3.1.2 → semver-3.2.0}/docs/usage/semver_org-version.rst +0 -0
- {semver-3.1.2 → semver-3.2.0}/release-procedure.md +0 -0
- {semver-3.1.2 → semver-3.2.0}/setup.cfg +0 -0
- {semver-3.1.2 → semver-3.2.0}/src/semver/__init__.py +0 -0
- {semver-3.1.2 → semver-3.2.0}/src/semver/__main__.py +0 -0
- {semver-3.1.2 → semver-3.2.0}/src/semver/_deprecated.py +0 -0
- {semver-3.1.2 → semver-3.2.0}/src/semver/_types.py +0 -0
- {semver-3.1.2 → semver-3.2.0}/src/semver/cli.py +0 -0
- {semver-3.1.2 → semver-3.2.0}/src/semver/py.typed +0 -0
- {semver-3.1.2 → semver-3.2.0}/src/semver.egg-info/dependency_links.txt +0 -0
- {semver-3.1.2 → semver-3.2.0}/src/semver.egg-info/entry_points.txt +0 -0
- {semver-3.1.2 → semver-3.2.0}/src/semver.egg-info/requires.txt +0 -0
- {semver-3.1.2 → semver-3.2.0}/src/semver.egg-info/top_level.txt +0 -0
- {semver-3.1.2 → semver-3.2.0}/tests/coerce.py +0 -0
- {semver-3.1.2 → semver-3.2.0}/tests/conftest.py +0 -0
- {semver-3.1.2 → semver-3.2.0}/tests/test_bump_build_digitless.py +0 -0
- {semver-3.1.2 → semver-3.2.0}/tests/test_bump_token_validation.py +0 -0
- {semver-3.1.2 → semver-3.2.0}/tests/test_compare_invalid_operands.py +0 -0
- {semver-3.1.2 → semver-3.2.0}/tests/test_deprecated_functions.py +0 -0
- {semver-3.1.2 → semver-3.2.0}/tests/test_docstrings.py +0 -0
- {semver-3.1.2 → semver-3.2.0}/tests/test_format.py +0 -0
- {semver-3.1.2 → semver-3.2.0}/tests/test_immutable.py +0 -0
- {semver-3.1.2 → semver-3.2.0}/tests/test_index.py +0 -0
- {semver-3.1.2 → semver-3.2.0}/tests/test_issue484.py +0 -0
- {semver-3.1.2 → semver-3.2.0}/tests/test_match.py +0 -0
- {semver-3.1.2 → semver-3.2.0}/tests/test_max-min.py +0 -0
- {semver-3.1.2 → semver-3.2.0}/tests/test_next_version_legacy_order.py +0 -0
- {semver-3.1.2 → semver-3.2.0}/tests/test_optional_native_backend.py +0 -0
- {semver-3.1.2 → semver-3.2.0}/tests/test_pysemver-cli.py +0 -0
- {semver-3.1.2 → semver-3.2.0}/tests/test_replace.py +0 -0
- {semver-3.1.2 → semver-3.2.0}/tests/test_strict_parsing.py +0 -0
- {semver-3.1.2 → semver-3.2.0}/tests/test_subclass.py +0 -0
- {semver-3.1.2 → semver-3.2.0}/tests/test_typeerror-274.py +0 -0
- {semver-3.1.2 → semver-3.2.0}/tox.ini +0 -0
|
@@ -18,6 +18,60 @@ This section covers the changes between major version 2 and version 3.
|
|
|
18
18
|
|
|
19
19
|
.. towncrier release notes start
|
|
20
20
|
|
|
21
|
+
Version 3.2.0
|
|
22
|
+
=============
|
|
23
|
+
|
|
24
|
+
:Released: 2026-11-26
|
|
25
|
+
:Maintainer: Tom Schraitle
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
Security
|
|
29
|
+
--------
|
|
30
|
+
|
|
31
|
+
* :gh:`523`: Updated ``filelock`` package to 4.1.0 due to security issues.
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
Breaking Changes
|
|
35
|
+
----------------
|
|
36
|
+
|
|
37
|
+
* :gh:`521`: The :attr:`~semver.version.Version.MAX_LENGTH` limit was set too low, raising to to 255.
|
|
38
|
+
|
|
39
|
+
----
|
|
40
|
+
|
|
41
|
+
Version 3.1.3
|
|
42
|
+
=============
|
|
43
|
+
|
|
44
|
+
:Released: 2026-11-26
|
|
45
|
+
:Maintainer: Tom Schraitle
|
|
46
|
+
|
|
47
|
+
Security
|
|
48
|
+
--------
|
|
49
|
+
|
|
50
|
+
* Fix potential denial-of-service vulnerability when parsing untrusted input with excessive length or large numeric components.
|
|
51
|
+
For details, see `GHSA-3qgw-g8j9-rcg4 <https://github.com/python-semver/python-semver/security/advisories/GHSA-3qgw-g8j9-rcg4>`_.
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
Bug Fixes
|
|
55
|
+
---------
|
|
56
|
+
|
|
57
|
+
* :gh:`515`: Fix :meth:`Version.__hash__` so that versions which compare equal now produce
|
|
58
|
+
equal hashes. A numeric prerelease identifier with leading zeros (for example
|
|
59
|
+
``"007"``) compares equal to its normalized form (``"7"``), but previously
|
|
60
|
+
hashed differently, which broke ``set`` and ``dict`` behavior.
|
|
61
|
+
|
|
62
|
+
Fix GitHub Python test to use pinned versions in :file:`pyproject.toml`.
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
Improved Documentation
|
|
67
|
+
----------------------
|
|
68
|
+
|
|
69
|
+
* :pr:`514`: The prefixed-version documentation example now rejects empty input with
|
|
70
|
+
``ValueError``, allowing its inherited ``is_valid`` method to return ``False``.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
----
|
|
74
|
+
|
|
21
75
|
Version 3.1.2
|
|
22
76
|
=============
|
|
23
77
|
|
|
@@ -39,6 +39,7 @@ List of Contributors
|
|
|
39
39
|
* Dennis Felsing <def-@users.noreply.github.com>
|
|
40
40
|
* Ben Finney <ben+python@benfinney.id.au>
|
|
41
41
|
* Bing Gao <binggao1230@users.noreply.github.com>
|
|
42
|
+
* Jiawei Guo <plailenceGrill@users.noreply.github.com>
|
|
42
43
|
* Zane Geiger <zanecodes@users.noreply.github.com>
|
|
43
44
|
* T. Jameson Little <t.jameson.little@gmail.com>
|
|
44
45
|
* KBS <youdie006@users.noreply.github.com>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: semver
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.2.0
|
|
4
4
|
Summary: Python helper for Semantic Versioning (https://semver.org)
|
|
5
5
|
Author-email: Kostiantyn Rybnikov <k-bx@k-bx.com>, Tom Schraitle <toms@suse.de>
|
|
6
6
|
Maintainer-email: Tom Schraitle <toms@suse.de>, Sebastien Celles <s.celles@gmail.com>
|
|
@@ -15,7 +15,7 @@ class SemVerWithVPrefix(Version):
|
|
|
15
15
|
:raises ValueError: when version does not start with "v" or "V"
|
|
16
16
|
:return: a new instance
|
|
17
17
|
"""
|
|
18
|
-
if not version
|
|
18
|
+
if not version.startswith(("v", "V")):
|
|
19
19
|
raise ValueError(
|
|
20
20
|
f"{version!r}: not a valid semantic version tag. "
|
|
21
21
|
"Must start with 'v' or 'V'"
|
|
@@ -73,7 +73,7 @@ formatting = [
|
|
|
73
73
|
"ruff<=0.16",
|
|
74
74
|
]
|
|
75
75
|
test = [
|
|
76
|
-
"tox
|
|
76
|
+
"tox<4.67.14",
|
|
77
77
|
"pytest<=9.1.1",
|
|
78
78
|
"pytest-cov<=7.1.0",
|
|
79
79
|
|
|
@@ -162,27 +162,38 @@ template = "changelog.d/_template.rst"
|
|
|
162
162
|
# issue_format = "`#{issue} <https://github.com/python-attrs/attrs/issues/{issue}>`_"
|
|
163
163
|
# issue_format = ":gh:`{issue}`"
|
|
164
164
|
|
|
165
|
+
[[tool.towncrier.type]]
|
|
166
|
+
directory = "security"
|
|
167
|
+
name = "Security"
|
|
165
168
|
|
|
166
|
-
[tool.towncrier.
|
|
169
|
+
[[tool.towncrier.type]]
|
|
170
|
+
directory = "breaking"
|
|
167
171
|
name = "Breaking Changes"
|
|
168
172
|
|
|
169
|
-
[tool.towncrier.
|
|
173
|
+
[[tool.towncrier.type]]
|
|
174
|
+
directory = "bugfix"
|
|
170
175
|
name = "Bug Fixes"
|
|
171
176
|
|
|
172
|
-
[tool.towncrier.
|
|
177
|
+
[[tool.towncrier.type]]
|
|
178
|
+
directory = "deprecation"
|
|
173
179
|
name = "Deprecations"
|
|
174
180
|
|
|
175
|
-
[tool.towncrier.
|
|
181
|
+
[[tool.towncrier.type]]
|
|
182
|
+
directory = "doc"
|
|
176
183
|
name = "Improved Documentation"
|
|
177
184
|
|
|
178
|
-
[tool.towncrier.
|
|
185
|
+
[[tool.towncrier.type]]
|
|
186
|
+
directory = "feature"
|
|
179
187
|
name = "Features"
|
|
180
188
|
|
|
181
|
-
[tool.towncrier.
|
|
189
|
+
[[tool.towncrier.type]]
|
|
190
|
+
directory = "removal"
|
|
182
191
|
name = "Removals"
|
|
183
192
|
|
|
184
|
-
[tool.towncrier.
|
|
193
|
+
[[tool.towncrier.type]]
|
|
194
|
+
directory = "trivial"
|
|
185
195
|
name = "Trivial Changes"
|
|
186
196
|
|
|
187
|
-
[tool.towncrier.
|
|
197
|
+
[[tool.towncrier.type]]
|
|
198
|
+
directory = "internal"
|
|
188
199
|
name = "Internal Changes"
|
|
@@ -2,32 +2,34 @@
|
|
|
2
2
|
|
|
3
3
|
import operator
|
|
4
4
|
import re
|
|
5
|
+
import unicodedata
|
|
5
6
|
import warnings
|
|
6
7
|
from functools import wraps
|
|
7
8
|
from typing import (
|
|
8
9
|
Any,
|
|
10
|
+
Callable,
|
|
9
11
|
ClassVar,
|
|
12
|
+
Collection,
|
|
10
13
|
Dict,
|
|
14
|
+
Final,
|
|
11
15
|
Iterable,
|
|
12
16
|
Optional,
|
|
13
17
|
Pattern,
|
|
14
|
-
SupportsInt,
|
|
15
18
|
SupportsIndex,
|
|
19
|
+
SupportsInt,
|
|
16
20
|
Tuple,
|
|
17
|
-
Union,
|
|
18
|
-
cast,
|
|
19
|
-
Callable,
|
|
20
|
-
Collection,
|
|
21
21
|
Type,
|
|
22
22
|
TypeVar,
|
|
23
|
+
Union,
|
|
24
|
+
cast,
|
|
23
25
|
)
|
|
24
26
|
|
|
25
27
|
from ._types import (
|
|
26
|
-
|
|
28
|
+
String,
|
|
27
29
|
VersionDict,
|
|
28
30
|
VersionIterator,
|
|
29
|
-
String,
|
|
30
31
|
VersionPart,
|
|
32
|
+
VersionTuple,
|
|
31
33
|
)
|
|
32
34
|
|
|
33
35
|
try:
|
|
@@ -94,11 +96,14 @@ class Version:
|
|
|
94
96
|
|
|
95
97
|
See specification at https://semver.org.
|
|
96
98
|
|
|
99
|
+
:cvar MAX_LENGTH: maximum number of characters in a version string.
|
|
97
100
|
:param major: version when you make incompatible API changes.
|
|
98
101
|
:param minor: version when you add functionality in a backwards-compatible manner.
|
|
99
102
|
:param patch: version when you make backwards-compatible bug fixes.
|
|
100
103
|
:param prerelease: an optional prerelease string
|
|
101
104
|
:param build: an optional build string
|
|
105
|
+
:raises ValueError: if a numeric part is negative or the version exceeds
|
|
106
|
+
:attr:`MAX_LENGTH`
|
|
102
107
|
"""
|
|
103
108
|
|
|
104
109
|
__slots__ = ("_major", "_minor", "_patch", "_prerelease", "_build")
|
|
@@ -106,8 +111,10 @@ class Version:
|
|
|
106
111
|
#: The names of the different parts of a version
|
|
107
112
|
NAMES: ClassVar[Tuple[str, ...]] = tuple([item[1:] for item in __slots__])
|
|
108
113
|
|
|
114
|
+
MAX_LENGTH: Final[int] = 255
|
|
115
|
+
|
|
109
116
|
#: Regex for number in a build
|
|
110
|
-
_LAST_NUMBER: ClassVar[Pattern[str]] = re.compile(r"(
|
|
117
|
+
_LAST_NUMBER: ClassVar[Pattern[str]] = re.compile(r"(\d+)")
|
|
111
118
|
#: Regex for number in a prerelease
|
|
112
119
|
_LAST_PRERELEASE: ClassVar[Pattern[str]] = re.compile(r"^(.*\.)?(\d+)$")
|
|
113
120
|
#: Regex for a single valid alphanumeric prerelease identifier
|
|
@@ -161,20 +168,51 @@ class Version:
|
|
|
161
168
|
prerelease: Optional[Union[String, int]] = None,
|
|
162
169
|
build: Optional[Union[String, int]] = None,
|
|
163
170
|
):
|
|
171
|
+
length_error = (
|
|
172
|
+
f"Version string exceeds maximum length of {self.MAX_LENGTH} characters"
|
|
173
|
+
)
|
|
174
|
+
# Reject integers with more than MAX_LENGTH decimal digits without
|
|
175
|
+
# converting them to strings; the combined length is checked below.
|
|
176
|
+
numeric_limit = 10 ** self.MAX_LENGTH
|
|
177
|
+
# Check built-in inputs before int()/str() can perform costly conversions.
|
|
178
|
+
for value in (major, minor, patch, prerelease, build):
|
|
179
|
+
if isinstance(value, (str, bytes)) and len(value) > self.MAX_LENGTH:
|
|
180
|
+
raise ValueError(length_error)
|
|
181
|
+
if isinstance(value, int) and (
|
|
182
|
+
value >= numeric_limit or value <= -numeric_limit
|
|
183
|
+
):
|
|
184
|
+
raise ValueError(length_error)
|
|
185
|
+
|
|
164
186
|
# Build a dictionary of the arguments except prerelease and build
|
|
165
187
|
version_parts = {"major": int(major), "minor": int(minor), "patch": int(patch)}
|
|
166
188
|
|
|
189
|
+
# Custom __int__ methods can return huge integers, so check the converted
|
|
190
|
+
# values too before rendering them for the combined-length calculation.
|
|
167
191
|
for name, value in version_parts.items():
|
|
168
192
|
if value < 0:
|
|
169
193
|
raise ValueError(
|
|
170
|
-
"{!r} is negative. A version can only be positive."
|
|
194
|
+
f"{name!r} is negative. A version can only be positive."
|
|
171
195
|
)
|
|
196
|
+
if value >= numeric_limit:
|
|
197
|
+
raise ValueError(length_error)
|
|
198
|
+
|
|
199
|
+
prerelease = None if prerelease is None else str(prerelease)
|
|
200
|
+
build = None if build is None else str(build)
|
|
201
|
+
# Individually bounded parts can still exceed the total limit together.
|
|
202
|
+
# Count both dots and, for nonempty metadata, its '-' or '+' separator.
|
|
203
|
+
# Avoid str(self): subclasses may override it, and fields are not yet set.
|
|
204
|
+
length = sum(len(str(value)) for value in version_parts.values()) + 2
|
|
205
|
+
for identifier in (prerelease, build):
|
|
206
|
+
if identifier:
|
|
207
|
+
length += len(identifier) + 1
|
|
208
|
+
if length > self.MAX_LENGTH:
|
|
209
|
+
raise ValueError(length_error)
|
|
172
210
|
|
|
173
211
|
self._major = version_parts["major"]
|
|
174
212
|
self._minor = version_parts["minor"]
|
|
175
213
|
self._patch = version_parts["patch"]
|
|
176
|
-
self._prerelease =
|
|
177
|
-
self._build =
|
|
214
|
+
self._prerelease = prerelease
|
|
215
|
+
self._build = build
|
|
178
216
|
|
|
179
217
|
@classmethod
|
|
180
218
|
def _validate_identifiers(
|
|
@@ -198,22 +236,25 @@ class Version:
|
|
|
198
236
|
"hyphens."
|
|
199
237
|
)
|
|
200
238
|
|
|
201
|
-
@
|
|
202
|
-
def
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
return (1, 0, identifier)
|
|
239
|
+
@staticmethod
|
|
240
|
+
def _prerelease_key(identifier: str) -> tuple[int, int, str]:
|
|
241
|
+
if not identifier.isdecimal():
|
|
242
|
+
return (1, 0, identifier)
|
|
206
243
|
|
|
207
|
-
|
|
208
|
-
|
|
244
|
+
if not identifier.isascii():
|
|
245
|
+
identifier = "".join(
|
|
246
|
+
str(unicodedata.decimal(character)) for character in identifier
|
|
247
|
+
)
|
|
209
248
|
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
249
|
+
# Compare decimal values without converting arbitrarily long
|
|
250
|
+
# ASCII identifiers to integers. Keep constructor leading zeros.
|
|
251
|
+
normalized = identifier.lstrip("0") or "0"
|
|
252
|
+
return (0, len(normalized), normalized)
|
|
214
253
|
|
|
215
|
-
|
|
216
|
-
|
|
254
|
+
@classmethod
|
|
255
|
+
def _nat_cmp(cls, a: Optional[str], b: Optional[str]) -> int:
|
|
256
|
+
a_parts = [cls._prerelease_key(x) for x in (a or "").split(".")]
|
|
257
|
+
b_parts = [cls._prerelease_key(x) for x in (b or "").split(".")]
|
|
217
258
|
|
|
218
259
|
for sub_a, sub_b in zip(a_parts, b_parts):
|
|
219
260
|
cmp_result = _cmp(sub_a, sub_b)
|
|
@@ -336,7 +377,9 @@ class Version:
|
|
|
336
377
|
Source:
|
|
337
378
|
http://code.activestate.com/recipes/442460-increment-numbers-in-a-string/#c1
|
|
338
379
|
"""
|
|
339
|
-
match =
|
|
380
|
+
match = None
|
|
381
|
+
for candidate in Version._LAST_NUMBER.finditer(string):
|
|
382
|
+
match = candidate
|
|
340
383
|
if match:
|
|
341
384
|
next_ = str(int(match.group(1)) + 1)
|
|
342
385
|
start, end = match.span(1)
|
|
@@ -678,7 +721,14 @@ build='build.10')
|
|
|
678
721
|
return version
|
|
679
722
|
|
|
680
723
|
def __hash__(self) -> int:
|
|
681
|
-
|
|
724
|
+
# Normalize the prerelease with the same key used for comparison so
|
|
725
|
+
# that versions comparing equal (e.g. "007" and "7") hash equal.
|
|
726
|
+
prerelease = (
|
|
727
|
+
tuple(self._prerelease_key(x) for x in self.prerelease.split("."))
|
|
728
|
+
if self.prerelease
|
|
729
|
+
else ()
|
|
730
|
+
)
|
|
731
|
+
return hash((self.major, self.minor, self.patch, prerelease))
|
|
682
732
|
|
|
683
733
|
def finalize_version(self) -> "Version":
|
|
684
734
|
"""
|
|
@@ -757,13 +807,13 @@ build='build.10')
|
|
|
757
807
|
Added optional parameter ``optional_minor_and_patch`` to allow
|
|
758
808
|
optional minor and patch parts.
|
|
759
809
|
|
|
760
|
-
:param version: version string
|
|
810
|
+
:param version: version string, at most :attr:`MAX_LENGTH` characters
|
|
761
811
|
:param optional_minor_and_patch: if set to true, the version string to parse \
|
|
762
812
|
can contain optional minor and patch parts. Optional parts are set to zero.
|
|
763
813
|
By default (False), the version string to parse has to follow the semver
|
|
764
814
|
specification.
|
|
765
815
|
:return: a new :class:`Version` instance
|
|
766
|
-
:raises ValueError: if version is invalid
|
|
816
|
+
:raises ValueError: if version is invalid or exceeds :attr:`MAX_LENGTH`
|
|
767
817
|
:raises TypeError: if version contains the wrong type
|
|
768
818
|
|
|
769
819
|
>>> semver.Version.parse('3.4.5-pre.2+build.4')
|
|
@@ -775,6 +825,11 @@ prerelease='pre.2', build='build.4')
|
|
|
775
825
|
elif not isinstance(version, String.__args__): # type: ignore
|
|
776
826
|
raise TypeError("not expecting type '%s'" % type(version))
|
|
777
827
|
|
|
828
|
+
if len(version) > cls.MAX_LENGTH:
|
|
829
|
+
raise ValueError(
|
|
830
|
+
f"Version string exceeds maximum length of {cls.MAX_LENGTH} characters"
|
|
831
|
+
)
|
|
832
|
+
|
|
778
833
|
if _native_parse_parts is not None and not optional_minor_and_patch: # pragma: no cover
|
|
779
834
|
try:
|
|
780
835
|
return cls(*_native_parse_parts(version))
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: semver
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.2.0
|
|
4
4
|
Summary: Python helper for Semantic Versioning (https://semver.org)
|
|
5
5
|
Author-email: Kostiantyn Rybnikov <k-bx@k-bx.com>, Tom Schraitle <toms@suse.de>
|
|
6
6
|
Maintainer-email: Tom Schraitle <toms@suse.de>, Sebastien Celles <s.celles@gmail.com>
|
|
@@ -15,7 +15,7 @@ class SemVerWithVPrefix(Version):
|
|
|
15
15
|
:raises ValueError: when version does not start with "v" or "V"
|
|
16
16
|
:return: a new instance
|
|
17
17
|
"""
|
|
18
|
-
if not version
|
|
18
|
+
if not version.startswith(("v", "V")):
|
|
19
19
|
raise ValueError(
|
|
20
20
|
f"{version!r}: not a valid semantic version tag. "
|
|
21
21
|
"Must start with 'v' or 'V'"
|
|
@@ -12,6 +12,24 @@ from semver import (
|
|
|
12
12
|
)
|
|
13
13
|
|
|
14
14
|
|
|
15
|
+
@pytest.mark.parametrize(
|
|
16
|
+
"string,expected",
|
|
17
|
+
[
|
|
18
|
+
("", ""),
|
|
19
|
+
("build", "build"),
|
|
20
|
+
("build12.part003tail", "build12.part004tail"),
|
|
21
|
+
("build12.part0099tail", "build12.part0100tail"),
|
|
22
|
+
("build99tail", "build100tail"),
|
|
23
|
+
("build12\npart003\ntail", "build12\npart004\ntail"),
|
|
24
|
+
("build12.part\u0669tail", "build12.part10tail"),
|
|
25
|
+
("a" * 100_000, "a" * 100_000),
|
|
26
|
+
("1a" * 10_000 + "009tail", "1a" * 10_000 + "010tail"),
|
|
27
|
+
],
|
|
28
|
+
)
|
|
29
|
+
def test_increment_string_preserves_last_digit_run(string, expected):
|
|
30
|
+
assert Version._increment_string(string) == expected
|
|
31
|
+
|
|
32
|
+
|
|
15
33
|
def test_should_bump_major():
|
|
16
34
|
assert bump_major("3.4.5") == "4.0.0"
|
|
17
35
|
|
|
@@ -6,42 +6,6 @@ import semver
|
|
|
6
6
|
from semver import Version, compare
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
def test_should_compare_long_numeric_prerelease():
|
|
10
|
-
value = "0.0.0-" + "1" * 5000
|
|
11
|
-
assert Version.is_valid(value)
|
|
12
|
-
version = Version.parse(value)
|
|
13
|
-
assert version.compare(value) == 0
|
|
14
|
-
assert compare(value, "0.0.0-2") == 1
|
|
15
|
-
assert compare("0.0.0-2", value) == -1
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
@pytest.mark.parametrize(
|
|
19
|
-
"lower,higher",
|
|
20
|
-
[
|
|
21
|
-
pytest.param("9" * 4999, "1" + "0" * 4999, id="digit-count"),
|
|
22
|
-
pytest.param(
|
|
23
|
-
"1" + "0" * 4998 + "1",
|
|
24
|
-
"1" + "0" * 4998 + "2",
|
|
25
|
-
id="equal-length",
|
|
26
|
-
),
|
|
27
|
-
pytest.param("1" * 5000, "alpha", id="numeric-before-text"),
|
|
28
|
-
pytest.param("alpha." + "1" * 5000, "alpha." + "1" * 5000 + ".1", id="prefix"),
|
|
29
|
-
],
|
|
30
|
-
)
|
|
31
|
-
def test_should_order_long_numeric_prereleases(lower, higher):
|
|
32
|
-
low = Version.parse("0.0.0-" + lower)
|
|
33
|
-
high = Version.parse("0.0.0-" + higher)
|
|
34
|
-
assert low.compare(high) == -1
|
|
35
|
-
assert high.compare(low) == 1
|
|
36
|
-
assert sorted([high, low]) == [low, high]
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
def test_should_ignore_build_and_preserve_release_order_with_long_prerelease():
|
|
40
|
-
version = Version.parse("0.0.0-" + "1" * 5000)
|
|
41
|
-
assert version == version.replace(build="other")
|
|
42
|
-
assert version < Version(0, 0, 0)
|
|
43
|
-
|
|
44
|
-
|
|
45
9
|
@pytest.mark.parametrize(
|
|
46
10
|
"left,right,expected",
|
|
47
11
|
[
|
|
@@ -75,11 +39,18 @@ def test_should_reject_noncanonical_prerelease_when_parsing(prerelease):
|
|
|
75
39
|
|
|
76
40
|
|
|
77
41
|
@pytest.mark.parametrize(
|
|
78
|
-
"left,right
|
|
42
|
+
"left,right,expected",
|
|
43
|
+
[("\u00b2", "2", 1), ("a.\u00b2", "b.0", -1), ("a.0", "b.\u00b2", -1)],
|
|
79
44
|
)
|
|
80
|
-
def
|
|
81
|
-
|
|
82
|
-
|
|
45
|
+
def test_should_compare_superscript_digit_as_alphanumeric(left, right, expected):
|
|
46
|
+
# "\u00b2" is not a decimal digit (int("\u00b2") raises ValueError), so it is an
|
|
47
|
+
# alphanumeric identifier: numeric identifiers always precede it.
|
|
48
|
+
assert (
|
|
49
|
+
Version(0, 0, 0, prerelease=left).compare(
|
|
50
|
+
Version(0, 0, 0, prerelease=right)
|
|
51
|
+
)
|
|
52
|
+
== expected
|
|
53
|
+
)
|
|
83
54
|
|
|
84
55
|
|
|
85
56
|
def test_should_compare_core_before_invalid_prerelease():
|
|
@@ -3,6 +3,28 @@ import pytest
|
|
|
3
3
|
from semver import Version, parse, parse_version_info
|
|
4
4
|
|
|
5
5
|
|
|
6
|
+
@pytest.mark.parametrize("as_bytes", [False, True])
|
|
7
|
+
@pytest.mark.parametrize("optional_minor_and_patch", [False, True])
|
|
8
|
+
def test_parse_version_length_limit(as_bytes, optional_minor_and_patch):
|
|
9
|
+
version = "1.2.3+" + "a" * (Version.MAX_LENGTH - len("1.2.3+"))
|
|
10
|
+
accepted = version.encode("utf-8") if as_bytes else version
|
|
11
|
+
rejected = accepted + (b"a" if as_bytes else "a")
|
|
12
|
+
|
|
13
|
+
assert str(Version.parse(accepted, optional_minor_and_patch)) == version
|
|
14
|
+
with pytest.raises(ValueError, match="maximum length"):
|
|
15
|
+
Version.parse(rejected, optional_minor_and_patch)
|
|
16
|
+
assert not Version.is_valid(rejected)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def test_parse_rejects_long_versions_before_native_backend(monkeypatch):
|
|
20
|
+
def unexpected_backend(version):
|
|
21
|
+
pytest.fail("Oversized input must not reach the native backend")
|
|
22
|
+
|
|
23
|
+
monkeypatch.setattr("semver.version._native_parse_parts", unexpected_backend)
|
|
24
|
+
with pytest.raises(ValueError, match="maximum length"):
|
|
25
|
+
Version.parse("1.2.3+" + "a" * Version.MAX_LENGTH)
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
@pytest.mark.parametrize(
|
|
7
29
|
"version,expected",
|
|
8
30
|
[
|
|
@@ -163,6 +185,37 @@ def test_equal_versions_have_equal_hashes():
|
|
|
163
185
|
assert v2 in s
|
|
164
186
|
|
|
165
187
|
|
|
188
|
+
@pytest.mark.parametrize(
|
|
189
|
+
"prerelease_a,prerelease_b",
|
|
190
|
+
[
|
|
191
|
+
# no. 1: zero-padded numeric identifier
|
|
192
|
+
("007", "7"),
|
|
193
|
+
# no. 2: zero-padded identifier among several
|
|
194
|
+
("alpha.007.beta", "alpha.7.beta"),
|
|
195
|
+
# no. 3: non-ASCII digit normalizes to its decimal value
|
|
196
|
+
("٧", "7"),
|
|
197
|
+
# no. 4: empty prerelease equals a missing one
|
|
198
|
+
("", None),
|
|
199
|
+
],
|
|
200
|
+
)
|
|
201
|
+
def test_equal_prereleases_have_equal_hashes(prerelease_a, prerelease_b):
|
|
202
|
+
v1 = Version(1, 2, 3, prerelease=prerelease_a)
|
|
203
|
+
v2 = Version(1, 2, 3, prerelease=prerelease_b)
|
|
204
|
+
assert v1 == v2
|
|
205
|
+
assert hash(v1) == hash(v2)
|
|
206
|
+
assert len({v1, v2}) == 1
|
|
207
|
+
assert {v1: "found"}[v2] == "found"
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
def test_should_treat_superscript_digit_as_alphanumeric_identifier():
|
|
211
|
+
# "²" satisfies str.isdigit() but not str.isdecimal(), and int("²")
|
|
212
|
+
# raises ValueError. It must be treated as an alphanumeric identifier:
|
|
213
|
+
# numeric identifiers always have lower precedence than non-numeric ones.
|
|
214
|
+
v = Version(1, 2, 3, prerelease="²")
|
|
215
|
+
assert Version(1, 2, 3, prerelease="7") < v
|
|
216
|
+
assert isinstance(hash(v), int)
|
|
217
|
+
|
|
218
|
+
|
|
166
219
|
def test_parse_method_for_version_info():
|
|
167
220
|
s_version = "1.2.3-alpha.1.2+build.11.e0f985a"
|
|
168
221
|
v = Version.parse(s_version)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import pytest
|
|
2
|
+
from semverwithvprefix import SemVerWithVPrefix
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
@pytest.mark.parametrize("version", ["", "1.2.3", "v", "V"])
|
|
6
|
+
def test_prefix_example_rejects_invalid_versions(version):
|
|
7
|
+
with pytest.raises(ValueError):
|
|
8
|
+
SemVerWithVPrefix.parse(version)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@pytest.mark.parametrize("version", ["", "1.2.3", "v", "V"])
|
|
12
|
+
def test_prefix_example_reports_invalid_versions(version):
|
|
13
|
+
assert SemVerWithVPrefix.is_valid(version) is False
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
@pytest.mark.parametrize("version", ["v1", "V1.2", "v1.2.3", "v1.2.3-alpha+build"])
|
|
17
|
+
def test_prefix_example_accepts_valid_versions(version):
|
|
18
|
+
assert isinstance(SemVerWithVPrefix.parse(version), SemVerWithVPrefix)
|
|
19
|
+
assert SemVerWithVPrefix.is_valid(version) is True
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
from typing import Any
|
|
1
2
|
import pytest # noqa
|
|
2
3
|
|
|
3
4
|
from semver import Version
|
|
@@ -5,6 +6,62 @@ from semver import Version
|
|
|
5
6
|
UTF8_VERSION = "1.0.0"
|
|
6
7
|
|
|
7
8
|
|
|
9
|
+
@pytest.mark.parametrize("part", Version.NAMES)
|
|
10
|
+
@pytest.mark.parametrize("kind", ["str", "bytes", "int", "negative-int"])
|
|
11
|
+
def test_constructor_rejects_oversized_parts(part, kind):
|
|
12
|
+
if kind == "str":
|
|
13
|
+
value = "1" * (Version.MAX_LENGTH + 1)
|
|
14
|
+
elif kind == "bytes":
|
|
15
|
+
value = b"1" * (Version.MAX_LENGTH + 1)
|
|
16
|
+
else:
|
|
17
|
+
value = 10 ** 10_000
|
|
18
|
+
if kind == "negative-int":
|
|
19
|
+
value = -value
|
|
20
|
+
parts = {"major": 1, part: value}
|
|
21
|
+
with pytest.raises(ValueError, match="maximum length"):
|
|
22
|
+
Version(**parts)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
@pytest.mark.parametrize("part", ["major", "minor", "patch"])
|
|
26
|
+
def test_constructor_rejects_oversized_custom_integer(part):
|
|
27
|
+
class OversizedInteger:
|
|
28
|
+
def __int__(self) -> int:
|
|
29
|
+
return 10 ** 10_000
|
|
30
|
+
|
|
31
|
+
parts: dict[str, Any] = {"major": 1, part: OversizedInteger()}
|
|
32
|
+
with pytest.raises(ValueError, match="maximum length"):
|
|
33
|
+
Version(**parts)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
@pytest.mark.parametrize("part", Version.NAMES)
|
|
37
|
+
def test_constructor_version_length_boundary(part):
|
|
38
|
+
overhead = 4 if part in ("major", "minor", "patch") else 6
|
|
39
|
+
value = "1" * (Version.MAX_LENGTH - overhead)
|
|
40
|
+
parts = {"major": 1, part: value}
|
|
41
|
+
assert len(str(Version(**parts))) == Version.MAX_LENGTH
|
|
42
|
+
parts[part] = value + "1"
|
|
43
|
+
with pytest.raises(ValueError, match="maximum length"):
|
|
44
|
+
Version(**parts)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def test_constructor_counts_combined_parts_and_separators():
|
|
48
|
+
version = Version(1, prerelease="a", build="b" * (Version.MAX_LENGTH - 8))
|
|
49
|
+
assert len(str(version)) == Version.MAX_LENGTH
|
|
50
|
+
with pytest.raises(ValueError, match="maximum length"):
|
|
51
|
+
version.replace(prerelease="aa")
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
@pytest.mark.parametrize("part", ["major", "minor", "patch", "prerelease", "build"])
|
|
55
|
+
def test_bump_rejects_version_exceeding_length_limit(part):
|
|
56
|
+
overhead = 4 if part in ("major", "minor", "patch") else 6
|
|
57
|
+
value = "9" * (Version.MAX_LENGTH - overhead)
|
|
58
|
+
parts: dict[str, Any] = {"major": 1, part: value}
|
|
59
|
+
version = Version(**parts)
|
|
60
|
+
with pytest.raises(ValueError, match="maximum length"):
|
|
61
|
+
getattr(version, "bump_" + part)()
|
|
62
|
+
assert len(str(version)) == Version.MAX_LENGTH
|
|
63
|
+
|
|
64
|
+
|
|
8
65
|
@pytest.mark.parametrize(
|
|
9
66
|
"string,expected", [("rc", "rc"), ("rc.1", "rc.2"), ("2x", "3x")]
|
|
10
67
|
)
|
|
@@ -478,11 +478,28 @@ wheels = [
|
|
|
478
478
|
|
|
479
479
|
[[package]]
|
|
480
480
|
name = "filelock"
|
|
481
|
-
version = "
|
|
481
|
+
version = "4.1.0"
|
|
482
482
|
source = { registry = "https://pypi.org/simple" }
|
|
483
|
-
|
|
483
|
+
resolution-markers = [
|
|
484
|
+
"python_full_version < '3.11'",
|
|
485
|
+
]
|
|
486
|
+
sdist = { url = "https://files.pythonhosted.org/packages/4c/58/6fd434bec86eff7c38a3168454cb132b762b2bea9b3ac094101a2f7bc32a/filelock-4.1.0.tar.gz", hash = "sha256:ad7f724afef953e731b1cc39bcd3a09166d72ed7fcdf29e6e88b1c3235c6715d", size = 561277, upload-time = "2026-10-09T19:57:20.34Z" }
|
|
487
|
+
wheels = [
|
|
488
|
+
{ url = "https://files.pythonhosted.org/packages/ee/86/032133892a5de43b5a98200b01aadcad68cc255e274a762f08b8a76d2912/filelock-4.1.0-py3-none-any.whl", hash = "sha256:2ce9818e3e2d8f284c1a964414447ef148d42a5fd5e2a477a7118e574b293ec1", size = 133003, upload-time = "2026-10-09T19:57:18.716Z" },
|
|
489
|
+
]
|
|
490
|
+
|
|
491
|
+
[[package]]
|
|
492
|
+
name = "filelock"
|
|
493
|
+
version = "4.3.1"
|
|
494
|
+
source = { registry = "https://pypi.org/simple" }
|
|
495
|
+
resolution-markers = [
|
|
496
|
+
"python_full_version >= '3.15'",
|
|
497
|
+
"python_full_version >= '3.12' and python_full_version < '3.15'",
|
|
498
|
+
"python_full_version == '3.11.*'",
|
|
499
|
+
]
|
|
500
|
+
sdist = { url = "https://files.pythonhosted.org/packages/e6/86/a5b9ec254b90efb180e390e31a4fa50a93b714d6e4174fa9a4ee25607159/filelock-4.3.1.tar.gz", hash = "sha256:4c5ee627c401f1863ac6a0de9a14a28d3bb5f8c730b45e2fd6e5dbc79cf34b9e", size = 742330, upload-time = "2026-11-23T18:01:13.656Z" }
|
|
484
501
|
wheels = [
|
|
485
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
502
|
+
{ url = "https://files.pythonhosted.org/packages/53/7b/678c8fbd372ff96375ac0bbdd20b78f20ef8ba6ca5966c49548fa5886557/filelock-4.3.1-py3-none-any.whl", hash = "sha256:79e43df8e9fe509cd83a3899a7c186c8077cbbe4d200a1ed3705c2f3bb6bc487", size = 244559, upload-time = "2026-11-23T18:01:12.261Z" },
|
|
486
503
|
]
|
|
487
504
|
|
|
488
505
|
[[package]]
|
|
@@ -1015,14 +1032,34 @@ wheels = [
|
|
|
1015
1032
|
name = "python-discovery"
|
|
1016
1033
|
version = "1.6.1"
|
|
1017
1034
|
source = { registry = "https://pypi.org/simple" }
|
|
1035
|
+
resolution-markers = [
|
|
1036
|
+
"python_full_version < '3.11'",
|
|
1037
|
+
]
|
|
1018
1038
|
dependencies = [
|
|
1019
|
-
{ name = "filelock" },
|
|
1039
|
+
{ name = "filelock", version = "4.1.0", source = { registry = "https://pypi.org/simple" } },
|
|
1020
1040
|
]
|
|
1021
1041
|
sdist = { url = "https://files.pythonhosted.org/packages/0c/57/250bd238b966cece44328235eb85290045d059265fdaf7527a3a958123db/python_discovery-1.6.1.tar.gz", hash = "sha256:cf87d3627dfb4412437fdd5b13eae402607722998d21567993aedbc59b23c15e", size = 84338, upload-time = "2026-09-18T01:31:53.971Z" }
|
|
1022
1042
|
wheels = [
|
|
1023
1043
|
{ url = "https://files.pythonhosted.org/packages/16/7d/e9ffbadfbf89c93848412d04594135c4ae8c1d37d9e053b9c3ed718fabc4/python_discovery-1.6.1-py3-none-any.whl", hash = "sha256:d43fcdef879fe795352bd13ccf8d185ba5a9f86f36cfcd00529f596e737442b3", size = 38664, upload-time = "2026-09-18T01:31:52.448Z" },
|
|
1024
1044
|
]
|
|
1025
1045
|
|
|
1046
|
+
[[package]]
|
|
1047
|
+
name = "python-discovery"
|
|
1048
|
+
version = "1.9.6"
|
|
1049
|
+
source = { registry = "https://pypi.org/simple" }
|
|
1050
|
+
resolution-markers = [
|
|
1051
|
+
"python_full_version >= '3.15'",
|
|
1052
|
+
"python_full_version >= '3.12' and python_full_version < '3.15'",
|
|
1053
|
+
"python_full_version == '3.11.*'",
|
|
1054
|
+
]
|
|
1055
|
+
dependencies = [
|
|
1056
|
+
{ name = "filelock", version = "4.3.1", source = { registry = "https://pypi.org/simple" } },
|
|
1057
|
+
]
|
|
1058
|
+
sdist = { url = "https://files.pythonhosted.org/packages/cb/4e/20a9c45c4bb839e6e03e5971a546c623d12f950aa496cf344dc8e9f07167/python_discovery-1.9.6.tar.gz", hash = "sha256:383aa67858d73a9585a843a37a4383c6be98e4d86a981a031328e393a6eb2632", size = 147742, upload-time = "2026-11-18T00:32:26.272Z" }
|
|
1059
|
+
wheels = [
|
|
1060
|
+
{ url = "https://files.pythonhosted.org/packages/c4/34/65e66e8c384dc08f0e58c474587c05c4bc952f60facd8a15e80748118bd1/python_discovery-1.9.6-py3-none-any.whl", hash = "sha256:93b10b90363d4151964cdeee2ec6601f3041b17fc2b253a1c3da7d6e7ddd8337", size = 98453, upload-time = "2026-11-18T00:32:24.849Z" },
|
|
1061
|
+
]
|
|
1062
|
+
|
|
1026
1063
|
[[package]]
|
|
1027
1064
|
name = "pywin32-ctypes"
|
|
1028
1065
|
version = "0.2.3"
|
|
@@ -1157,7 +1194,8 @@ devel = [
|
|
|
1157
1194
|
{ name = "sphinx-argparse" },
|
|
1158
1195
|
{ name = "sphinx-autodoc-typehints" },
|
|
1159
1196
|
{ name = "towncrier" },
|
|
1160
|
-
{ name = "tox" },
|
|
1197
|
+
{ name = "tox", version = "4.65.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },
|
|
1198
|
+
{ name = "tox", version = "4.67.13", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
|
|
1161
1199
|
{ name = "twine" },
|
|
1162
1200
|
]
|
|
1163
1201
|
docs = [
|
|
@@ -1179,7 +1217,8 @@ gh-action = [
|
|
|
1179
1217
|
{ name = "sphinx-argparse" },
|
|
1180
1218
|
{ name = "sphinx-autodoc-typehints" },
|
|
1181
1219
|
{ name = "towncrier" },
|
|
1182
|
-
{ name = "tox" },
|
|
1220
|
+
{ name = "tox", version = "4.65.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },
|
|
1221
|
+
{ name = "tox", version = "4.67.13", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
|
|
1183
1222
|
{ name = "tox-gh-actions" },
|
|
1184
1223
|
{ name = "twine" },
|
|
1185
1224
|
]
|
|
@@ -1190,7 +1229,8 @@ publish = [
|
|
|
1190
1229
|
test = [
|
|
1191
1230
|
{ name = "pytest" },
|
|
1192
1231
|
{ name = "pytest-cov" },
|
|
1193
|
-
{ name = "tox" },
|
|
1232
|
+
{ name = "tox", version = "4.65.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },
|
|
1233
|
+
{ name = "tox", version = "4.67.13", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
|
|
1194
1234
|
]
|
|
1195
1235
|
typing = [
|
|
1196
1236
|
{ name = "mypy" },
|
|
@@ -1214,7 +1254,7 @@ devel = [
|
|
|
1214
1254
|
{ name = "sphinx-argparse", specifier = "<=0.5.2" },
|
|
1215
1255
|
{ name = "sphinx-autodoc-typehints", specifier = "==3.0.1" },
|
|
1216
1256
|
{ name = "towncrier", specifier = "==25.8.0" },
|
|
1217
|
-
{ name = "tox", specifier = "
|
|
1257
|
+
{ name = "tox", specifier = "<4.67.14" },
|
|
1218
1258
|
{ name = "twine", specifier = "<=6.2.0" },
|
|
1219
1259
|
]
|
|
1220
1260
|
docs = [
|
|
@@ -1234,7 +1274,7 @@ gh-action = [
|
|
|
1234
1274
|
{ name = "sphinx-argparse", specifier = "<=0.5.2" },
|
|
1235
1275
|
{ name = "sphinx-autodoc-typehints", specifier = "==3.0.1" },
|
|
1236
1276
|
{ name = "towncrier", specifier = "==25.8.0" },
|
|
1237
|
-
{ name = "tox", specifier = "
|
|
1277
|
+
{ name = "tox", specifier = "<4.67.14" },
|
|
1238
1278
|
{ name = "tox-gh-actions" },
|
|
1239
1279
|
{ name = "twine", specifier = "<=6.2.0" },
|
|
1240
1280
|
]
|
|
@@ -1245,7 +1285,7 @@ publish = [
|
|
|
1245
1285
|
test = [
|
|
1246
1286
|
{ name = "pytest", specifier = "<=9.1.1" },
|
|
1247
1287
|
{ name = "pytest-cov", specifier = "<=7.1.0" },
|
|
1248
|
-
{ name = "tox", specifier = "
|
|
1288
|
+
{ name = "tox", specifier = "<4.67.14" },
|
|
1249
1289
|
]
|
|
1250
1290
|
typing = [
|
|
1251
1291
|
{ name = "mypy", specifier = "<=2.1.0" },
|
|
@@ -1447,25 +1487,55 @@ wheels = [
|
|
|
1447
1487
|
|
|
1448
1488
|
[[package]]
|
|
1449
1489
|
name = "tox"
|
|
1450
|
-
version = "4.
|
|
1490
|
+
version = "4.65.0"
|
|
1451
1491
|
source = { registry = "https://pypi.org/simple" }
|
|
1492
|
+
resolution-markers = [
|
|
1493
|
+
"python_full_version < '3.11'",
|
|
1494
|
+
]
|
|
1452
1495
|
dependencies = [
|
|
1453
1496
|
{ name = "cachetools" },
|
|
1454
1497
|
{ name = "colorama" },
|
|
1455
|
-
{ name = "filelock" },
|
|
1498
|
+
{ name = "filelock", version = "4.1.0", source = { registry = "https://pypi.org/simple" } },
|
|
1456
1499
|
{ name = "packaging" },
|
|
1457
1500
|
{ name = "platformdirs" },
|
|
1458
1501
|
{ name = "pluggy" },
|
|
1459
1502
|
{ name = "pyproject-api" },
|
|
1460
|
-
{ name = "python-discovery" },
|
|
1461
|
-
{ name = "tomli"
|
|
1503
|
+
{ name = "python-discovery", version = "1.6.1", source = { registry = "https://pypi.org/simple" } },
|
|
1504
|
+
{ name = "tomli" },
|
|
1462
1505
|
{ name = "tomli-w" },
|
|
1463
|
-
{ name = "typing-extensions", version = "4.16.0", source = { registry = "https://pypi.org/simple" }
|
|
1506
|
+
{ name = "typing-extensions", version = "4.16.0", source = { registry = "https://pypi.org/simple" } },
|
|
1507
|
+
{ name = "virtualenv" },
|
|
1508
|
+
]
|
|
1509
|
+
sdist = { url = "https://files.pythonhosted.org/packages/41/05/a79f2c293f5b5b2188978b4e8b60d12c64277662de1254184769f3e96571/tox-4.65.0.tar.gz", hash = "sha256:582c4adba07b8fbeca1454b528a512dfc66c19635154289c7032555dbc72d56c", size = 333143, upload-time = "2026-10-09T20:33:09.306Z" }
|
|
1510
|
+
wheels = [
|
|
1511
|
+
{ url = "https://files.pythonhosted.org/packages/e0/1a/3408ad74ac353c519f7a38fbe35fe107b5fbeaa55539f189c19d0726f14c/tox-4.65.0-py3-none-any.whl", hash = "sha256:823ea3df020d7ede8f5df6ba4f374585063b39aa86140c098fbb97833543844e", size = 238074, upload-time = "2026-10-09T20:33:07.366Z" },
|
|
1512
|
+
]
|
|
1513
|
+
|
|
1514
|
+
[[package]]
|
|
1515
|
+
name = "tox"
|
|
1516
|
+
version = "4.67.13"
|
|
1517
|
+
source = { registry = "https://pypi.org/simple" }
|
|
1518
|
+
resolution-markers = [
|
|
1519
|
+
"python_full_version >= '3.15'",
|
|
1520
|
+
"python_full_version >= '3.12' and python_full_version < '3.15'",
|
|
1521
|
+
"python_full_version == '3.11.*'",
|
|
1522
|
+
]
|
|
1523
|
+
dependencies = [
|
|
1524
|
+
{ name = "cachetools" },
|
|
1525
|
+
{ name = "colorama" },
|
|
1526
|
+
{ name = "filelock", version = "4.3.1", source = { registry = "https://pypi.org/simple" } },
|
|
1527
|
+
{ name = "packaging" },
|
|
1528
|
+
{ name = "platformdirs" },
|
|
1529
|
+
{ name = "pluggy" },
|
|
1530
|
+
{ name = "pyproject-api" },
|
|
1531
|
+
{ name = "python-discovery", version = "1.9.6", source = { registry = "https://pypi.org/simple" } },
|
|
1532
|
+
{ name = "tomli-w" },
|
|
1533
|
+
{ name = "typing-extensions", version = "4.15.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.13'" },
|
|
1464
1534
|
{ name = "virtualenv" },
|
|
1465
1535
|
]
|
|
1466
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
1536
|
+
sdist = { url = "https://files.pythonhosted.org/packages/da/4e/703160b580afbecef60e764708adbbf37f102aadfcbce9bb122e924e994d/tox-4.67.13.tar.gz", hash = "sha256:9f70b44ca2e31d91d8fe2e2917f505554950adc3961c0ee70bb42db16d903f62", size = 425618, upload-time = "2026-11-06T15:33:01.95Z" }
|
|
1467
1537
|
wheels = [
|
|
1468
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
1538
|
+
{ url = "https://files.pythonhosted.org/packages/d2/f0/f32e73acb872b67b97b51d67d7241838136f58127d763afcde7762832655/tox-4.67.13-py3-none-any.whl", hash = "sha256:4d6fa08dbe5e841f2abfee1dd4f5cdf31af30d68a3d78b85a7bf57eced5f3c6c", size = 263353, upload-time = "2026-11-06T15:33:00.306Z" },
|
|
1469
1539
|
]
|
|
1470
1540
|
|
|
1471
1541
|
[[package]]
|
|
@@ -1473,7 +1543,8 @@ name = "tox-gh-actions"
|
|
|
1473
1543
|
version = "3.5.0"
|
|
1474
1544
|
source = { registry = "https://pypi.org/simple" }
|
|
1475
1545
|
dependencies = [
|
|
1476
|
-
{ name = "tox" },
|
|
1546
|
+
{ name = "tox", version = "4.65.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },
|
|
1547
|
+
{ name = "tox", version = "4.67.13", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
|
|
1477
1548
|
]
|
|
1478
1549
|
sdist = { url = "https://files.pythonhosted.org/packages/9c/11/6c3f818887c37a144a4b48bfc440150f006bdac7a68d92de1046680f578f/tox_gh_actions-3.5.0.tar.gz", hash = "sha256:cc8e148c4513042e5019973e5672594c3df241b035e7fb550f6f778588110051", size = 18815, upload-time = "2025-10-22T14:12:24.846Z" }
|
|
1479
1550
|
wheels = [
|
|
@@ -1541,10 +1612,12 @@ version = "21.14.13"
|
|
|
1541
1612
|
source = { registry = "https://pypi.org/simple" }
|
|
1542
1613
|
dependencies = [
|
|
1543
1614
|
{ name = "distlib" },
|
|
1544
|
-
{ name = "filelock" },
|
|
1615
|
+
{ name = "filelock", version = "4.1.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },
|
|
1616
|
+
{ name = "filelock", version = "4.3.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
|
|
1545
1617
|
{ name = "packaging" },
|
|
1546
1618
|
{ name = "platformdirs" },
|
|
1547
|
-
{ name = "python-discovery" },
|
|
1619
|
+
{ name = "python-discovery", version = "1.6.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },
|
|
1620
|
+
{ name = "python-discovery", version = "1.9.6", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
|
|
1548
1621
|
{ name = "typing-extensions", version = "4.16.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },
|
|
1549
1622
|
]
|
|
1550
1623
|
sdist = { url = "https://files.pythonhosted.org/packages/70/aa/bff50daee0488e16d611258a9b6c5a1d0c9e128f8ca424e9f4e1c0444ef2/virtualenv-21.14.13.tar.gz", hash = "sha256:de5307ba4b9a0001d9c8ea02832d38f63ca432880f416c1bface61c4323fd905", size = 5570301, upload-time = "2026-10-22T20:10:16.952Z" }
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|