v440 2.0.0.dev1__tar.gz → 2.0.0.dev3__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.dev1/src/v440.egg-info → v440-2.0.0.dev3}/PKG-INFO +1 -1
- {v440-2.0.0.dev1 → v440-2.0.0.dev3}/pyproject.toml +1 -1
- v440-2.0.0.dev1/src/v440/_utils/Base.py → v440-2.0.0.dev3/src/v440/_utils/VList.py +21 -9
- {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440/core/Public_.py +1 -1
- {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440/core/Version.py +1 -2
- {v440-2.0.0.dev1 → v440-2.0.0.dev3/src/v440.egg-info}/PKG-INFO +1 -1
- {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440.egg-info/SOURCES.txt +1 -2
- v440-2.0.0.dev1/src/v440/_utils/VList.py +0 -27
- {v440-2.0.0.dev1 → v440-2.0.0.dev3}/LICENSE.txt +0 -0
- {v440-2.0.0.dev1 → v440-2.0.0.dev3}/MANIFEST.in +0 -0
- {v440-2.0.0.dev1 → v440-2.0.0.dev3}/README.rst +0 -0
- {v440-2.0.0.dev1 → v440-2.0.0.dev3}/setup.cfg +0 -0
- {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440/__init__.py +0 -0
- {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440/_utils/Digest.py +0 -0
- {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440/_utils/Pattern.py +0 -0
- {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440/_utils/PhasedQualifierParser.py +0 -0
- {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440/_utils/SimpleQualifierParser.py +0 -0
- {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440/_utils/WList.py +0 -0
- {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440/_utils/__init__.py +0 -0
- {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440/_utils/utils.py +0 -0
- /v440-2.0.0.dev1/src/v440/core/Base_.py → /v440-2.0.0.dev3/src/v440/core/Base.py +0 -0
- {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440/core/Local.py +0 -0
- {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440/core/Pre.py +0 -0
- {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440/core/Qualification.py +0 -0
- {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440/core/Release.py +0 -0
- {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440/core/VersionError.py +0 -0
- {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440/core/__init__.py +0 -0
- {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440/tests/__init__.py +0 -0
- {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440/tests/test_testdata.py +0 -0
- {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440/tests/test_version.py +0 -0
- {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440/tests/testdata.toml +0 -0
- {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440.egg-info/dependency_links.txt +0 -0
- {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440.egg-info/requires.txt +0 -0
- {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440.egg-info/top_level.txt +0 -0
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
from typing import *
|
|
2
2
|
|
|
3
|
-
from datahold import
|
|
3
|
+
from datahold import OkayList
|
|
4
4
|
|
|
5
5
|
from v440.core.VersionError import VersionError
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
class
|
|
9
|
-
|
|
8
|
+
class VList(OkayList):
|
|
10
9
|
def __eq__(self: Self, other: Any) -> bool:
|
|
11
10
|
"This magic method implements self==other."
|
|
12
11
|
ans: bool
|
|
@@ -29,8 +28,19 @@ class Base:
|
|
|
29
28
|
ans = alt <= self
|
|
30
29
|
return ans
|
|
31
30
|
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
def __iadd__(self: Self, other: Any, /) -> Self:
|
|
32
|
+
"This magic method implements self+=other."
|
|
33
|
+
self.data += type(self)(other).data
|
|
34
|
+
return self
|
|
35
|
+
|
|
36
|
+
def __imul__(self: Self, other: Any, /) -> Self:
|
|
37
|
+
"This magic method implements self*=other."
|
|
38
|
+
self.data = self.data * other
|
|
39
|
+
return self
|
|
40
|
+
|
|
41
|
+
def __init__(self: Any, data: Any = None) -> None:
|
|
42
|
+
"This magic method initializes self."
|
|
43
|
+
self.data = data
|
|
34
44
|
|
|
35
45
|
def __le__(self: Self, other: Any, /) -> bool:
|
|
36
46
|
"This magic method implements self<=other."
|
|
@@ -43,10 +53,6 @@ class Base:
|
|
|
43
53
|
ans = self._data <= alt._data
|
|
44
54
|
return ans
|
|
45
55
|
|
|
46
|
-
__lt__ = OkayList.__lt__
|
|
47
|
-
__ne__ = OkayABC.__ne__
|
|
48
|
-
__repr__ = OkayABC.__repr__
|
|
49
|
-
|
|
50
56
|
def __setattr__(self: Self, name: str, value: Any) -> None:
|
|
51
57
|
"This magic method implements setattr(self, name, value)."
|
|
52
58
|
if name.startswith("_"):
|
|
@@ -66,3 +72,9 @@ class Base:
|
|
|
66
72
|
msg: str = "%r is an invalid value for %r"
|
|
67
73
|
msg %= (value, cls.__name__ + "." + name)
|
|
68
74
|
raise VersionError(msg)
|
|
75
|
+
|
|
76
|
+
def __sorted__(self: Any, /, **kwargs: Any) -> Self:
|
|
77
|
+
"This magic method implements sorted(self, **kwargs)."
|
|
78
|
+
ans: Any = self.copy()
|
|
79
|
+
ans.sort(**kwargs)
|
|
80
|
+
return ans
|
|
@@ -5,7 +5,7 @@ from typing import *
|
|
|
5
5
|
from v440._utils.Digest import Digest
|
|
6
6
|
from v440._utils.Pattern import Pattern
|
|
7
7
|
from v440._utils.WList import WList
|
|
8
|
-
from v440.core.
|
|
8
|
+
from v440.core.Base import Base_
|
|
9
9
|
from v440.core.Qualification import Qualification
|
|
10
10
|
|
|
11
11
|
__all__ = ["Public_"]
|
|
@@ -6,10 +6,9 @@ from typing import *
|
|
|
6
6
|
import packaging.version
|
|
7
7
|
from catchlib import Catcher
|
|
8
8
|
|
|
9
|
-
from v440._utils.Base import Base
|
|
10
9
|
from v440._utils.Digest import Digest
|
|
11
10
|
from v440._utils.WList import WList
|
|
12
|
-
from v440.core.
|
|
11
|
+
from v440.core.Base import Base_
|
|
13
12
|
from v440.core.Local import Local
|
|
14
13
|
from v440.core.Pre import Pre
|
|
15
14
|
from v440.core.Public_ import Public_
|
|
@@ -9,7 +9,6 @@ src/v440.egg-info/SOURCES.txt
|
|
|
9
9
|
src/v440.egg-info/dependency_links.txt
|
|
10
10
|
src/v440.egg-info/requires.txt
|
|
11
11
|
src/v440.egg-info/top_level.txt
|
|
12
|
-
src/v440/_utils/Base.py
|
|
13
12
|
src/v440/_utils/Digest.py
|
|
14
13
|
src/v440/_utils/Pattern.py
|
|
15
14
|
src/v440/_utils/PhasedQualifierParser.py
|
|
@@ -18,7 +17,7 @@ src/v440/_utils/VList.py
|
|
|
18
17
|
src/v440/_utils/WList.py
|
|
19
18
|
src/v440/_utils/__init__.py
|
|
20
19
|
src/v440/_utils/utils.py
|
|
21
|
-
src/v440/core/
|
|
20
|
+
src/v440/core/Base.py
|
|
22
21
|
src/v440/core/Local.py
|
|
23
22
|
src/v440/core/Pre.py
|
|
24
23
|
src/v440/core/Public_.py
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
from typing import *
|
|
2
|
-
|
|
3
|
-
from datahold import OkayList
|
|
4
|
-
|
|
5
|
-
from v440._utils.Base import Base
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class VList(Base, OkayList):
|
|
9
|
-
def __iadd__(self: Self, other: Any, /) -> Self:
|
|
10
|
-
"This magic method implements self+=other."
|
|
11
|
-
self.data += type(self)(other).data
|
|
12
|
-
return self
|
|
13
|
-
|
|
14
|
-
def __imul__(self: Self, other: Any, /) -> Self:
|
|
15
|
-
"This magic method implements self*=other."
|
|
16
|
-
self.data = self.data * other
|
|
17
|
-
return self
|
|
18
|
-
|
|
19
|
-
def __init__(self: Any, data: Any = None) -> None:
|
|
20
|
-
"This magic method initializes self."
|
|
21
|
-
self.data = data
|
|
22
|
-
|
|
23
|
-
def __sorted__(self: Any, /, **kwargs: Any) -> Self:
|
|
24
|
-
"This magic method implements sorted(self, **kwargs)."
|
|
25
|
-
ans: Any = self.copy()
|
|
26
|
-
ans.sort(**kwargs)
|
|
27
|
-
return ans
|
|
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
|