v440 2.0.0.dev151__tar.gz → 2.0.0.dev152__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.dev151/src/v440.egg-info → v440-2.0.0.dev152}/PKG-INFO +2 -2
- {v440-2.0.0.dev151 → v440-2.0.0.dev152}/pyproject.toml +2 -2
- {v440-2.0.0.dev151 → v440-2.0.0.dev152}/src/v440/_utils/ListStringer.py +2 -2
- {v440-2.0.0.dev151 → v440-2.0.0.dev152}/src/v440/core/Release.py +26 -0
- {v440-2.0.0.dev151 → v440-2.0.0.dev152/src/v440.egg-info}/PKG-INFO +2 -2
- {v440-2.0.0.dev151 → v440-2.0.0.dev152}/src/v440.egg-info/requires.txt +1 -1
- {v440-2.0.0.dev151 → v440-2.0.0.dev152}/LICENSE.txt +0 -0
- {v440-2.0.0.dev151 → v440-2.0.0.dev152}/MANIFEST.in +0 -0
- {v440-2.0.0.dev151 → v440-2.0.0.dev152}/README.rst +0 -0
- {v440-2.0.0.dev151 → v440-2.0.0.dev152}/setup.cfg +0 -0
- {v440-2.0.0.dev151 → v440-2.0.0.dev152}/src/v440/__init__.py +0 -0
- {v440-2.0.0.dev151 → v440-2.0.0.dev152}/src/v440/_utils/BaseStringer.py +0 -0
- {v440-2.0.0.dev151 → v440-2.0.0.dev152}/src/v440/_utils/Cfg.py +0 -0
- {v440-2.0.0.dev151 → v440-2.0.0.dev152}/src/v440/_utils/Pattern.py +0 -0
- {v440-2.0.0.dev151 → v440-2.0.0.dev152}/src/v440/_utils/SlotStringer.py +0 -0
- {v440-2.0.0.dev151 → v440-2.0.0.dev152}/src/v440/_utils/__init__.py +0 -0
- {v440-2.0.0.dev151 → v440-2.0.0.dev152}/src/v440/_utils/cfg.toml +0 -0
- {v440-2.0.0.dev151 → v440-2.0.0.dev152}/src/v440/_utils/guarding.py +0 -0
- {v440-2.0.0.dev151 → v440-2.0.0.dev152}/src/v440/_utils/releaseparse/__init__.py +0 -0
- {v440-2.0.0.dev151 → v440-2.0.0.dev152}/src/v440/_utils/releaseparse/deleting.py +0 -0
- {v440-2.0.0.dev151 → v440-2.0.0.dev152}/src/v440/_utils/releaseparse/getting.py +0 -0
- {v440-2.0.0.dev151 → v440-2.0.0.dev152}/src/v440/_utils/releaseparse/listing.py +0 -0
- {v440-2.0.0.dev151 → v440-2.0.0.dev152}/src/v440/_utils/releaseparse/numerals.py +0 -0
- {v440-2.0.0.dev151 → v440-2.0.0.dev152}/src/v440/_utils/releaseparse/ranging.py +0 -0
- {v440-2.0.0.dev151 → v440-2.0.0.dev152}/src/v440/_utils/releaseparse/setting.py +0 -0
- {v440-2.0.0.dev151 → v440-2.0.0.dev152}/src/v440/core/Base.py +0 -0
- {v440-2.0.0.dev151 → v440-2.0.0.dev152}/src/v440/core/Local.py +0 -0
- {v440-2.0.0.dev151 → v440-2.0.0.dev152}/src/v440/core/Public.py +0 -0
- {v440-2.0.0.dev151 → v440-2.0.0.dev152}/src/v440/core/Qual.py +0 -0
- {v440-2.0.0.dev151 → v440-2.0.0.dev152}/src/v440/core/Version.py +0 -0
- {v440-2.0.0.dev151 → v440-2.0.0.dev152}/src/v440/core/VersionError.py +0 -0
- {v440-2.0.0.dev151 → v440-2.0.0.dev152}/src/v440/core/__init__.py +0 -0
- {v440-2.0.0.dev151 → v440-2.0.0.dev152}/src/v440/tests/__init__.py +0 -0
- {v440-2.0.0.dev151 → v440-2.0.0.dev152}/src/v440/tests/test_testdata.py +0 -0
- {v440-2.0.0.dev151 → v440-2.0.0.dev152}/src/v440/tests/test_version.py +0 -0
- {v440-2.0.0.dev151 → v440-2.0.0.dev152}/src/v440/tests/testdata.toml +0 -0
- {v440-2.0.0.dev151 → v440-2.0.0.dev152}/src/v440.egg-info/SOURCES.txt +0 -0
- {v440-2.0.0.dev151 → v440-2.0.0.dev152}/src/v440.egg-info/dependency_links.txt +0 -0
- {v440-2.0.0.dev151 → v440-2.0.0.dev152}/src/v440.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: v440
|
|
3
|
-
Version: 2.0.0.
|
|
3
|
+
Version: 2.0.0.dev152
|
|
4
4
|
Summary: This project provides mutable version objects in accordance with PEP440.
|
|
5
5
|
Author-email: Johannes <johannes.programming@gmail.com>
|
|
6
6
|
License: The MIT License (MIT)
|
|
@@ -47,7 +47,7 @@ Requires-Dist: keyalias<2.0,>=1.0.3
|
|
|
47
47
|
Requires-Dist: overloadable<2.0,>=1.0.5
|
|
48
48
|
Requires-Dist: packaging>=23.2
|
|
49
49
|
Requires-Dist: scaevola<2.0,>=1.1
|
|
50
|
-
Requires-Dist: setdoc<2,>=1.2
|
|
50
|
+
Requires-Dist: setdoc<2,>=1.2.6
|
|
51
51
|
Requires-Dist: tofunc<2,>=1.0.0
|
|
52
52
|
Requires-Dist: unhash<2,>=1.0.1
|
|
53
53
|
Dynamic: license-file
|
|
@@ -27,7 +27,7 @@ dependencies = [
|
|
|
27
27
|
"overloadable>=1.0.5,<2.0",
|
|
28
28
|
"packaging>=23.2",
|
|
29
29
|
"scaevola>=1.1,<2.0",
|
|
30
|
-
"setdoc>=1.2,<2",
|
|
30
|
+
"setdoc>=1.2.6,<2",
|
|
31
31
|
"tofunc>=1.0.0,<2",
|
|
32
32
|
"unhash>=1.0.1,<2",
|
|
33
33
|
]
|
|
@@ -36,7 +36,7 @@ keywords = []
|
|
|
36
36
|
name = "v440"
|
|
37
37
|
readme = "README.rst"
|
|
38
38
|
requires-python = ">=3.11"
|
|
39
|
-
version = "2.0.0.
|
|
39
|
+
version = "2.0.0.dev152"
|
|
40
40
|
|
|
41
41
|
[project.license]
|
|
42
42
|
file = "LICENSE.txt"
|
|
@@ -146,17 +146,17 @@ class ListStringer(BaseStringer, collections.abc.MutableSequence):
|
|
|
146
146
|
data.extend(value)
|
|
147
147
|
self.data = data
|
|
148
148
|
|
|
149
|
+
@setdoc.basic
|
|
149
150
|
def index(self: Self, *args: Any) -> None:
|
|
150
|
-
"This method returns the index of the first occurence."
|
|
151
151
|
return self.data.index(*args)
|
|
152
152
|
|
|
153
|
+
@setdoc.basic
|
|
153
154
|
def insert(
|
|
154
155
|
self: Self,
|
|
155
156
|
index: SupportsIndex,
|
|
156
157
|
value: Any,
|
|
157
158
|
/,
|
|
158
159
|
) -> None:
|
|
159
|
-
"This method inserts value at index."
|
|
160
160
|
data: list = list(self.data)
|
|
161
161
|
data.insert(index, value)
|
|
162
162
|
self.data = data
|
|
@@ -123,3 +123,29 @@ class Release(ListStringer):
|
|
|
123
123
|
self._data = setting.setitem_int(self.data, i, x)
|
|
124
124
|
if i != -1:
|
|
125
125
|
self.data = self.data[: i + 1]
|
|
126
|
+
|
|
127
|
+
@setdoc.basic
|
|
128
|
+
def index(self: Self, value: Any, *args: Any) -> None:
|
|
129
|
+
i: Optional[int]
|
|
130
|
+
try:
|
|
131
|
+
i = operator.index(value)
|
|
132
|
+
except Exception:
|
|
133
|
+
i = 1
|
|
134
|
+
try:
|
|
135
|
+
return self.data.index(value, *args)
|
|
136
|
+
except Exception:
|
|
137
|
+
if i:
|
|
138
|
+
raise
|
|
139
|
+
else:
|
|
140
|
+
return len(self)
|
|
141
|
+
|
|
142
|
+
@setdoc.basic
|
|
143
|
+
def insert(
|
|
144
|
+
self: Self,
|
|
145
|
+
index: SupportsIndex,
|
|
146
|
+
value: Any,
|
|
147
|
+
/,
|
|
148
|
+
) -> None:
|
|
149
|
+
data: list = list(self.data)
|
|
150
|
+
data.insert(index, value)
|
|
151
|
+
self.data = data
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: v440
|
|
3
|
-
Version: 2.0.0.
|
|
3
|
+
Version: 2.0.0.dev152
|
|
4
4
|
Summary: This project provides mutable version objects in accordance with PEP440.
|
|
5
5
|
Author-email: Johannes <johannes.programming@gmail.com>
|
|
6
6
|
License: The MIT License (MIT)
|
|
@@ -47,7 +47,7 @@ Requires-Dist: keyalias<2.0,>=1.0.3
|
|
|
47
47
|
Requires-Dist: overloadable<2.0,>=1.0.5
|
|
48
48
|
Requires-Dist: packaging>=23.2
|
|
49
49
|
Requires-Dist: scaevola<2.0,>=1.1
|
|
50
|
-
Requires-Dist: setdoc<2,>=1.2
|
|
50
|
+
Requires-Dist: setdoc<2,>=1.2.6
|
|
51
51
|
Requires-Dist: tofunc<2,>=1.0.0
|
|
52
52
|
Requires-Dist: unhash<2,>=1.0.1
|
|
53
53
|
Dynamic: license-file
|
|
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
|