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.
Files changed (34) hide show
  1. {v440-2.0.0.dev1/src/v440.egg-info → v440-2.0.0.dev3}/PKG-INFO +1 -1
  2. {v440-2.0.0.dev1 → v440-2.0.0.dev3}/pyproject.toml +1 -1
  3. v440-2.0.0.dev1/src/v440/_utils/Base.py → v440-2.0.0.dev3/src/v440/_utils/VList.py +21 -9
  4. {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440/core/Public_.py +1 -1
  5. {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440/core/Version.py +1 -2
  6. {v440-2.0.0.dev1 → v440-2.0.0.dev3/src/v440.egg-info}/PKG-INFO +1 -1
  7. {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440.egg-info/SOURCES.txt +1 -2
  8. v440-2.0.0.dev1/src/v440/_utils/VList.py +0 -27
  9. {v440-2.0.0.dev1 → v440-2.0.0.dev3}/LICENSE.txt +0 -0
  10. {v440-2.0.0.dev1 → v440-2.0.0.dev3}/MANIFEST.in +0 -0
  11. {v440-2.0.0.dev1 → v440-2.0.0.dev3}/README.rst +0 -0
  12. {v440-2.0.0.dev1 → v440-2.0.0.dev3}/setup.cfg +0 -0
  13. {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440/__init__.py +0 -0
  14. {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440/_utils/Digest.py +0 -0
  15. {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440/_utils/Pattern.py +0 -0
  16. {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440/_utils/PhasedQualifierParser.py +0 -0
  17. {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440/_utils/SimpleQualifierParser.py +0 -0
  18. {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440/_utils/WList.py +0 -0
  19. {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440/_utils/__init__.py +0 -0
  20. {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440/_utils/utils.py +0 -0
  21. /v440-2.0.0.dev1/src/v440/core/Base_.py → /v440-2.0.0.dev3/src/v440/core/Base.py +0 -0
  22. {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440/core/Local.py +0 -0
  23. {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440/core/Pre.py +0 -0
  24. {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440/core/Qualification.py +0 -0
  25. {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440/core/Release.py +0 -0
  26. {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440/core/VersionError.py +0 -0
  27. {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440/core/__init__.py +0 -0
  28. {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440/tests/__init__.py +0 -0
  29. {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440/tests/test_testdata.py +0 -0
  30. {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440/tests/test_version.py +0 -0
  31. {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440/tests/testdata.toml +0 -0
  32. {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440.egg-info/dependency_links.txt +0 -0
  33. {v440-2.0.0.dev1 → v440-2.0.0.dev3}/src/v440.egg-info/requires.txt +0 -0
  34. {v440-2.0.0.dev1 → v440-2.0.0.dev3}/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.dev1
3
+ Version: 2.0.0.dev3
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)
@@ -34,7 +34,7 @@ keywords = []
34
34
  name = "v440"
35
35
  readme = "README.rst"
36
36
  requires-python = ">=3.11"
37
- version = "2.0.0.dev1"
37
+ version = "2.0.0.dev3"
38
38
 
39
39
  [project.license]
40
40
  file = "LICENSE.txt"
@@ -1,12 +1,11 @@
1
1
  from typing import *
2
2
 
3
- from datahold import OkayABC, OkayList
3
+ from datahold import OkayList
4
4
 
5
5
  from v440.core.VersionError import VersionError
6
6
 
7
7
 
8
- class Base:
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
- __gt__ = OkayList.__gt__
33
- __hash__ = OkayABC.__hash__
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.Base_ import Base_
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.Base_ import Base_
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_
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: v440
3
- Version: 2.0.0.dev1
3
+ Version: 2.0.0.dev3
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)
@@ -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/Base_.py
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