v440 2.0.0.dev154__tar.gz → 2.0.0.dev156__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.dev156}/PKG-INFO +1 -1
- {v440-2.0.0.dev154 → v440-2.0.0.dev156}/pyproject.toml +1 -1
- {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/core/Release.py +11 -4
- {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/tests/testdata.toml +0 -24
- {v440-2.0.0.dev154 → v440-2.0.0.dev156/src/v440.egg-info}/PKG-INFO +1 -1
- {v440-2.0.0.dev154 → v440-2.0.0.dev156}/LICENSE.txt +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev156}/MANIFEST.in +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev156}/README.rst +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev156}/setup.cfg +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/__init__.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/_utils/BaseStringer.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/_utils/Cfg.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/_utils/ListStringer.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/_utils/Pattern.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/_utils/SlotStringer.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/_utils/__init__.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/_utils/cfg.toml +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/_utils/guarding.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/_utils/releaseparse/__init__.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/_utils/releaseparse/deleting.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/_utils/releaseparse/getting.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/_utils/releaseparse/listing.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/_utils/releaseparse/numerals.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/_utils/releaseparse/ranging.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/_utils/releaseparse/setting.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/core/Base.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/core/Local.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/core/Public.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/core/Qual.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/core/Version.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/core/VersionError.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/core/__init__.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/tests/__init__.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/tests/test_testdata.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/tests/test_version.py +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440.egg-info/SOURCES.txt +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440.egg-info/dependency_links.txt +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440.egg-info/requires.txt +0 -0
- {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440.egg-info/top_level.txt +0 -0
|
@@ -8,7 +8,7 @@ from keyalias import keyalias
|
|
|
8
8
|
from overloadable import Overloadable
|
|
9
9
|
|
|
10
10
|
from v440._utils.ListStringer import ListStringer
|
|
11
|
-
from v440._utils.releaseparse import deleting, getting,
|
|
11
|
+
from v440._utils.releaseparse import deleting, getting, setting
|
|
12
12
|
|
|
13
13
|
__all__ = ["Release"]
|
|
14
14
|
|
|
@@ -82,7 +82,7 @@ class Release(ListStringer):
|
|
|
82
82
|
|
|
83
83
|
@classmethod
|
|
84
84
|
def _data_parse(cls: type, value: list) -> Iterable:
|
|
85
|
-
v: list =
|
|
85
|
+
v: list = list(map(cls._item_parse, value))
|
|
86
86
|
while v and v[-1] == 0:
|
|
87
87
|
v.pop()
|
|
88
88
|
return v
|
|
@@ -103,6 +103,13 @@ class Release(ListStringer):
|
|
|
103
103
|
def _init_setup(self: Self) -> None:
|
|
104
104
|
self._data = ()
|
|
105
105
|
|
|
106
|
+
@classmethod
|
|
107
|
+
def _item_parse(cls: type, value: SupportsIndex) -> int:
|
|
108
|
+
ans: int = operator.index(value)
|
|
109
|
+
if ans < 0:
|
|
110
|
+
raise ValueError
|
|
111
|
+
return ans
|
|
112
|
+
|
|
106
113
|
@classmethod
|
|
107
114
|
def _sort(cls: type, value: int) -> int:
|
|
108
115
|
return value
|
|
@@ -114,7 +121,7 @@ class Release(ListStringer):
|
|
|
114
121
|
v: str = value
|
|
115
122
|
v = v.replace("_", ".")
|
|
116
123
|
v = v.replace("-", ".")
|
|
117
|
-
self.data = v.split(".")
|
|
124
|
+
self.data = map(int, v.split("."))
|
|
118
125
|
|
|
119
126
|
def bump(self: Self, index: SupportsIndex = -1, amount: SupportsIndex = 1) -> None:
|
|
120
127
|
i: int = operator.index(index)
|
|
@@ -126,7 +133,7 @@ class Release(ListStringer):
|
|
|
126
133
|
|
|
127
134
|
@setdoc.basic
|
|
128
135
|
def index(self: Self, value: Any, *args: Any) -> None:
|
|
129
|
-
i:
|
|
136
|
+
i: int
|
|
130
137
|
try:
|
|
131
138
|
i = operator.index(value)
|
|
132
139
|
except Exception:
|
|
@@ -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
|