v440 2.0.0.dev25__tar.gz → 2.0.0.dev27__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.dev25/src/v440.egg-info → v440-2.0.0.dev27}/PKG-INFO +1 -1
- {v440-2.0.0.dev25 → v440-2.0.0.dev27}/pyproject.toml +1 -1
- {v440-2.0.0.dev25 → v440-2.0.0.dev27}/src/v440/core/Version.py +1 -25
- {v440-2.0.0.dev25 → v440-2.0.0.dev27}/src/v440/tests/test_testdata.py +9 -3
- {v440-2.0.0.dev25 → v440-2.0.0.dev27/src/v440.egg-info}/PKG-INFO +1 -1
- {v440-2.0.0.dev25 → v440-2.0.0.dev27}/LICENSE.txt +0 -0
- {v440-2.0.0.dev25 → v440-2.0.0.dev27}/MANIFEST.in +0 -0
- {v440-2.0.0.dev25 → v440-2.0.0.dev27}/README.rst +0 -0
- {v440-2.0.0.dev25 → v440-2.0.0.dev27}/setup.cfg +0 -0
- {v440-2.0.0.dev25 → v440-2.0.0.dev27}/src/v440/__init__.py +0 -0
- {v440-2.0.0.dev25 → v440-2.0.0.dev27}/src/v440/_utils/BaseList.py +0 -0
- {v440-2.0.0.dev25 → v440-2.0.0.dev27}/src/v440/_utils/Cfg.py +0 -0
- {v440-2.0.0.dev25 → v440-2.0.0.dev27}/src/v440/_utils/Digest.py +0 -0
- {v440-2.0.0.dev25 → v440-2.0.0.dev27}/src/v440/_utils/Pattern.py +0 -0
- {v440-2.0.0.dev25 → v440-2.0.0.dev27}/src/v440/_utils/SimpleQualifierParser.py +0 -0
- {v440-2.0.0.dev25 → v440-2.0.0.dev27}/src/v440/_utils/SlotList.py +0 -0
- {v440-2.0.0.dev25 → v440-2.0.0.dev27}/src/v440/_utils/VList.py +0 -0
- {v440-2.0.0.dev25 → v440-2.0.0.dev27}/src/v440/_utils/__init__.py +0 -0
- {v440-2.0.0.dev25 → v440-2.0.0.dev27}/src/v440/_utils/cfg.toml +0 -0
- {v440-2.0.0.dev25 → v440-2.0.0.dev27}/src/v440/_utils/utils.py +0 -0
- {v440-2.0.0.dev25 → v440-2.0.0.dev27}/src/v440/core/Base.py +0 -0
- {v440-2.0.0.dev25 → v440-2.0.0.dev27}/src/v440/core/Local.py +0 -0
- {v440-2.0.0.dev25 → v440-2.0.0.dev27}/src/v440/core/Public.py +0 -0
- {v440-2.0.0.dev25 → v440-2.0.0.dev27}/src/v440/core/Qualification.py +0 -0
- {v440-2.0.0.dev25 → v440-2.0.0.dev27}/src/v440/core/Release.py +0 -0
- {v440-2.0.0.dev25 → v440-2.0.0.dev27}/src/v440/core/VersionError.py +0 -0
- {v440-2.0.0.dev25 → v440-2.0.0.dev27}/src/v440/core/__init__.py +0 -0
- {v440-2.0.0.dev25 → v440-2.0.0.dev27}/src/v440/tests/__init__.py +0 -0
- {v440-2.0.0.dev25 → v440-2.0.0.dev27}/src/v440/tests/test_version.py +0 -0
- {v440-2.0.0.dev25 → v440-2.0.0.dev27}/src/v440/tests/testdata.toml +0 -0
- {v440-2.0.0.dev25 → v440-2.0.0.dev27}/src/v440.egg-info/SOURCES.txt +0 -0
- {v440-2.0.0.dev25 → v440-2.0.0.dev27}/src/v440.egg-info/dependency_links.txt +0 -0
- {v440-2.0.0.dev25 → v440-2.0.0.dev27}/src/v440.egg-info/requires.txt +0 -0
- {v440-2.0.0.dev25 → v440-2.0.0.dev27}/src/v440.egg-info/top_level.txt +0 -0
|
@@ -51,11 +51,10 @@ class Version(SlotList):
|
|
|
51
51
|
qualification: Qualification
|
|
52
52
|
release: Release
|
|
53
53
|
|
|
54
|
-
def __init__(self: Self, data: Any = "0"
|
|
54
|
+
def __init__(self: Self, data: Any = "0") -> None:
|
|
55
55
|
self._public = Public()
|
|
56
56
|
self._local = Local()
|
|
57
57
|
self.data = data
|
|
58
|
-
self.update(**kwargs)
|
|
59
58
|
|
|
60
59
|
def __str__(self: Self) -> str:
|
|
61
60
|
return self.format()
|
|
@@ -99,15 +98,6 @@ class Version(SlotList):
|
|
|
99
98
|
ans += "+%s" % self.local
|
|
100
99
|
return ans
|
|
101
100
|
|
|
102
|
-
def isdevrelease(self: Self) -> bool:
|
|
103
|
-
return self.qualification.isdevrelease()
|
|
104
|
-
|
|
105
|
-
def isprerelease(self: Self) -> bool:
|
|
106
|
-
return self.qualification.isprerelease()
|
|
107
|
-
|
|
108
|
-
def ispostrelease(self: Self) -> bool:
|
|
109
|
-
return self.qualification.ispostrelease()
|
|
110
|
-
|
|
111
101
|
@property
|
|
112
102
|
def local(self: Self) -> Local:
|
|
113
103
|
return self._local
|
|
@@ -160,17 +150,3 @@ class Version(SlotList):
|
|
|
160
150
|
@release.setter
|
|
161
151
|
def release(self: Self, value: Any) -> None:
|
|
162
152
|
self.base.release = value
|
|
163
|
-
|
|
164
|
-
def update(self: Self, **kwargs: Any) -> None:
|
|
165
|
-
a: Any
|
|
166
|
-
m: str
|
|
167
|
-
x: Any
|
|
168
|
-
y: Any
|
|
169
|
-
for x, y in kwargs.items():
|
|
170
|
-
a = getattr(type(self), x)
|
|
171
|
-
if isinstance(a, property):
|
|
172
|
-
setattr(self, x, y)
|
|
173
|
-
continue
|
|
174
|
-
m: str = "%r is not a property"
|
|
175
|
-
m %= x
|
|
176
|
-
raise AttributeError(m)
|
|
@@ -347,9 +347,15 @@ class TestPackaging(unittest.TestCase):
|
|
|
347
347
|
x: str
|
|
348
348
|
for x in versionable:
|
|
349
349
|
v = Version(x)
|
|
350
|
-
self.assertEqual(
|
|
351
|
-
|
|
352
|
-
|
|
350
|
+
self.assertEqual(
|
|
351
|
+
v.qualification.isdevrelease(), v.packaging().is_devrelease
|
|
352
|
+
)
|
|
353
|
+
self.assertEqual(
|
|
354
|
+
v.qualification.isprerelease(), v.packaging().is_prerelease
|
|
355
|
+
)
|
|
356
|
+
self.assertEqual(
|
|
357
|
+
v.qualification.ispostrelease(), v.packaging().is_postrelease
|
|
358
|
+
)
|
|
353
359
|
self.assertEqual(str(v.base), v.packaging().base_version)
|
|
354
360
|
self.assertEqual(str(v.public), v.packaging().public)
|
|
355
361
|
version_obj.local = v.packaging().local
|
|
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
|