v440 2.0.0.dev23__tar.gz → 2.0.0.dev25__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.dev23/src/v440.egg-info → v440-2.0.0.dev25}/PKG-INFO +1 -1
- {v440-2.0.0.dev23 → v440-2.0.0.dev25}/pyproject.toml +1 -1
- {v440-2.0.0.dev23 → v440-2.0.0.dev25}/src/v440/core/Qualification.py +5 -5
- {v440-2.0.0.dev23 → v440-2.0.0.dev25}/src/v440/core/Version.py +0 -1
- {v440-2.0.0.dev23 → v440-2.0.0.dev25}/src/v440/tests/test_version.py +2 -1
- {v440-2.0.0.dev23 → v440-2.0.0.dev25/src/v440.egg-info}/PKG-INFO +1 -1
- {v440-2.0.0.dev23 → v440-2.0.0.dev25}/LICENSE.txt +0 -0
- {v440-2.0.0.dev23 → v440-2.0.0.dev25}/MANIFEST.in +0 -0
- {v440-2.0.0.dev23 → v440-2.0.0.dev25}/README.rst +0 -0
- {v440-2.0.0.dev23 → v440-2.0.0.dev25}/setup.cfg +0 -0
- {v440-2.0.0.dev23 → v440-2.0.0.dev25}/src/v440/__init__.py +0 -0
- {v440-2.0.0.dev23 → v440-2.0.0.dev25}/src/v440/_utils/BaseList.py +0 -0
- {v440-2.0.0.dev23 → v440-2.0.0.dev25}/src/v440/_utils/Cfg.py +0 -0
- {v440-2.0.0.dev23 → v440-2.0.0.dev25}/src/v440/_utils/Digest.py +0 -0
- {v440-2.0.0.dev23 → v440-2.0.0.dev25}/src/v440/_utils/Pattern.py +0 -0
- {v440-2.0.0.dev23 → v440-2.0.0.dev25}/src/v440/_utils/SimpleQualifierParser.py +0 -0
- {v440-2.0.0.dev23 → v440-2.0.0.dev25}/src/v440/_utils/SlotList.py +0 -0
- {v440-2.0.0.dev23 → v440-2.0.0.dev25}/src/v440/_utils/VList.py +0 -0
- {v440-2.0.0.dev23 → v440-2.0.0.dev25}/src/v440/_utils/__init__.py +0 -0
- {v440-2.0.0.dev23 → v440-2.0.0.dev25}/src/v440/_utils/cfg.toml +0 -0
- {v440-2.0.0.dev23 → v440-2.0.0.dev25}/src/v440/_utils/utils.py +0 -0
- {v440-2.0.0.dev23 → v440-2.0.0.dev25}/src/v440/core/Base.py +0 -0
- {v440-2.0.0.dev23 → v440-2.0.0.dev25}/src/v440/core/Local.py +0 -0
- {v440-2.0.0.dev23 → v440-2.0.0.dev25}/src/v440/core/Public.py +0 -0
- {v440-2.0.0.dev23 → v440-2.0.0.dev25}/src/v440/core/Release.py +0 -0
- {v440-2.0.0.dev23 → v440-2.0.0.dev25}/src/v440/core/VersionError.py +0 -0
- {v440-2.0.0.dev23 → v440-2.0.0.dev25}/src/v440/core/__init__.py +0 -0
- {v440-2.0.0.dev23 → v440-2.0.0.dev25}/src/v440/tests/__init__.py +0 -0
- {v440-2.0.0.dev23 → v440-2.0.0.dev25}/src/v440/tests/test_testdata.py +0 -0
- {v440-2.0.0.dev23 → v440-2.0.0.dev25}/src/v440/tests/testdata.toml +0 -0
- {v440-2.0.0.dev23 → v440-2.0.0.dev25}/src/v440.egg-info/SOURCES.txt +0 -0
- {v440-2.0.0.dev23 → v440-2.0.0.dev25}/src/v440.egg-info/dependency_links.txt +0 -0
- {v440-2.0.0.dev23 → v440-2.0.0.dev25}/src/v440.egg-info/requires.txt +0 -0
- {v440-2.0.0.dev23 → v440-2.0.0.dev25}/src/v440.egg-info/top_level.txt +0 -0
|
@@ -142,7 +142,7 @@ class Qualification(SlotList):
|
|
|
142
142
|
|
|
143
143
|
@property
|
|
144
144
|
def data(self: Self) -> list:
|
|
145
|
-
return self.
|
|
145
|
+
return [self.prephase, self.presubphase, self.post, self.dev]
|
|
146
146
|
|
|
147
147
|
@data.setter
|
|
148
148
|
@guard
|
|
@@ -180,8 +180,8 @@ class Qualification(SlotList):
|
|
|
180
180
|
self._post = SimpleQualifierParser.POST(value)
|
|
181
181
|
|
|
182
182
|
@property
|
|
183
|
-
def pre(self: Self) ->
|
|
184
|
-
return
|
|
183
|
+
def pre(self: Self) -> tuple:
|
|
184
|
+
return (self._prephase, self._presubphase)
|
|
185
185
|
|
|
186
186
|
@pre.setter
|
|
187
187
|
@guard
|
|
@@ -194,7 +194,7 @@ class Qualification(SlotList):
|
|
|
194
194
|
|
|
195
195
|
@prephase.setter
|
|
196
196
|
def prephase(self: Self, value: Any) -> None:
|
|
197
|
-
self
|
|
197
|
+
self.pre = value, self.presubphase
|
|
198
198
|
|
|
199
199
|
@property
|
|
200
200
|
def presubphase(self: Self) -> Optional[int]:
|
|
@@ -202,4 +202,4 @@ class Qualification(SlotList):
|
|
|
202
202
|
|
|
203
203
|
@presubphase.setter
|
|
204
204
|
def presubphase(self: Self, value: Any) -> None:
|
|
205
|
-
self
|
|
205
|
+
self.pre = self.prephase, value
|
|
@@ -151,7 +151,8 @@ class TestExample(unittest.TestCase):
|
|
|
151
151
|
self.assertEqual(str(v), "2a1") # Pre-release version
|
|
152
152
|
v.pre = "beta.2"
|
|
153
153
|
self.assertEqual(str(v), "2b2") # Modified pre-release version
|
|
154
|
-
|
|
154
|
+
with self.assertRaises(Exception):
|
|
155
|
+
v.qualification.pre[1] = 4
|
|
155
156
|
self.assertEqual(str(v), "2b2") # Further modified pre-release version
|
|
156
157
|
v.qualification.prephase = "PrEvIeW"
|
|
157
158
|
self.assertEqual(str(v), "2rc2") # Even further modified pre-release version
|
|
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
|