v440 2.0.0.dev154__tar.gz → 2.0.0.dev155__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.
- {v440-2.0.0.dev154/src/v440.egg-info → v440-2.0.0.dev155}/PKG-INFO +1 -1
- {v440-2.0.0.dev154 → v440-2.0.0.dev155}/pyproject.toml +1 -1
- {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/core/Release.py +10 -2
- {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/tests/testdata.toml +0 -24
- {v440-2.0.0.dev154 → v440-2.0.0.dev155/src/v440.egg-info}/PKG-INFO +1 -1
- {v440-2.0.0.dev154 → v440-2.0.0.dev155}/LICENSE.txt +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev155}/MANIFEST.in +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev155}/README.rst +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev155}/setup.cfg +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/__init__.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/_utils/BaseStringer.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/_utils/Cfg.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/_utils/ListStringer.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/_utils/Pattern.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/_utils/SlotStringer.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/_utils/__init__.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/_utils/cfg.toml +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/_utils/guarding.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/_utils/releaseparse/__init__.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/_utils/releaseparse/deleting.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/_utils/releaseparse/getting.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/_utils/releaseparse/listing.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/_utils/releaseparse/numerals.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/_utils/releaseparse/ranging.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/_utils/releaseparse/setting.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/core/Base.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/core/Local.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/core/Public.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/core/Qual.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/core/Version.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/core/VersionError.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/core/__init__.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/tests/__init__.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/tests/test_testdata.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/tests/test_version.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440.egg-info/SOURCES.txt +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440.egg-info/dependency_links.txt +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440.egg-info/requires.txt +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
3
|
import operator
|
|
4
|
+
import sys
|
|
4
5
|
from typing import *
|
|
5
6
|
|
|
6
7
|
import setdoc
|
|
@@ -82,7 +83,7 @@ class Release(ListStringer):
|
|
|
82
83
|
|
|
83
84
|
@classmethod
|
|
84
85
|
def _data_parse(cls: type, value: list) -> Iterable:
|
|
85
|
-
v: list =
|
|
86
|
+
v: list = list(map(cls._item_parse, value))
|
|
86
87
|
while v and v[-1] == 0:
|
|
87
88
|
v.pop()
|
|
88
89
|
return v
|
|
@@ -103,6 +104,13 @@ class Release(ListStringer):
|
|
|
103
104
|
def _init_setup(self: Self) -> None:
|
|
104
105
|
self._data = ()
|
|
105
106
|
|
|
107
|
+
@classmethod
|
|
108
|
+
def _item_parse(cls: type, value: SupportsIndex) -> int:
|
|
109
|
+
ans: int = operator.index(value)
|
|
110
|
+
if ans < 0:
|
|
111
|
+
raise ValueError
|
|
112
|
+
return ans
|
|
113
|
+
|
|
106
114
|
@classmethod
|
|
107
115
|
def _sort(cls: type, value: int) -> int:
|
|
108
116
|
return value
|
|
@@ -114,7 +122,7 @@ class Release(ListStringer):
|
|
|
114
122
|
v: str = value
|
|
115
123
|
v = v.replace("_", ".")
|
|
116
124
|
v = v.replace("-", ".")
|
|
117
|
-
self.data = v.split(".")
|
|
125
|
+
self.data = map(int, v.split("."))
|
|
118
126
|
|
|
119
127
|
def bump(self: Self, index: SupportsIndex = -1, amount: SupportsIndex = 1) -> None:
|
|
120
128
|
i: int = operator.index(index)
|
|
@@ -916,30 +916,6 @@ solution = []
|
|
|
916
916
|
query = []
|
|
917
917
|
solution = []
|
|
918
918
|
|
|
919
|
-
[release.test_release_conversion_string]
|
|
920
|
-
query = [
|
|
921
|
-
"1",
|
|
922
|
-
"2",
|
|
923
|
-
"3",
|
|
924
|
-
]
|
|
925
|
-
solution = [
|
|
926
|
-
1,
|
|
927
|
-
2,
|
|
928
|
-
3,
|
|
929
|
-
]
|
|
930
|
-
|
|
931
|
-
[release.test_release_conversion_mixed]
|
|
932
|
-
query = [
|
|
933
|
-
"1",
|
|
934
|
-
2,
|
|
935
|
-
"3",
|
|
936
|
-
]
|
|
937
|
-
solution = [
|
|
938
|
-
1,
|
|
939
|
-
2,
|
|
940
|
-
3,
|
|
941
|
-
]
|
|
942
|
-
|
|
943
919
|
[data-property.local]
|
|
944
920
|
query = "42!1.2.3.dev1337+5.nov"
|
|
945
921
|
solution = "42!1.2.3.dev1337+5.nov"
|
|
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
|