v440 2.0.0.dev61__tar.gz → 2.0.0.dev63__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.dev61/src/v440.egg-info → v440-2.0.0.dev63}/PKG-INFO +1 -1
  2. {v440-2.0.0.dev61 → v440-2.0.0.dev63}/pyproject.toml +1 -1
  3. {v440-2.0.0.dev61 → v440-2.0.0.dev63}/src/v440/_utils/BaseList.py +1 -4
  4. {v440-2.0.0.dev61 → v440-2.0.0.dev63}/src/v440/_utils/utils.py +0 -9
  5. {v440-2.0.0.dev61 → v440-2.0.0.dev63}/src/v440/core/Public.py +0 -2
  6. {v440-2.0.0.dev61 → v440-2.0.0.dev63}/src/v440/core/Qual.py +1 -1
  7. {v440-2.0.0.dev61 → v440-2.0.0.dev63}/src/v440/tests/test_testdata.py +4 -3
  8. {v440-2.0.0.dev61 → v440-2.0.0.dev63}/src/v440/tests/testdata.toml +7 -3
  9. {v440-2.0.0.dev61 → v440-2.0.0.dev63/src/v440.egg-info}/PKG-INFO +1 -1
  10. {v440-2.0.0.dev61 → v440-2.0.0.dev63}/LICENSE.txt +0 -0
  11. {v440-2.0.0.dev61 → v440-2.0.0.dev63}/MANIFEST.in +0 -0
  12. {v440-2.0.0.dev61 → v440-2.0.0.dev63}/README.rst +0 -0
  13. {v440-2.0.0.dev61 → v440-2.0.0.dev63}/setup.cfg +0 -0
  14. {v440-2.0.0.dev61 → v440-2.0.0.dev63}/src/v440/__init__.py +0 -0
  15. {v440-2.0.0.dev61 → v440-2.0.0.dev63}/src/v440/_utils/Cfg.py +0 -0
  16. {v440-2.0.0.dev61 → v440-2.0.0.dev63}/src/v440/_utils/Digest.py +0 -0
  17. {v440-2.0.0.dev61 → v440-2.0.0.dev63}/src/v440/_utils/Pattern.py +0 -0
  18. {v440-2.0.0.dev61 → v440-2.0.0.dev63}/src/v440/_utils/SlotList.py +0 -0
  19. {v440-2.0.0.dev61 → v440-2.0.0.dev63}/src/v440/_utils/VList.py +0 -0
  20. {v440-2.0.0.dev61 → v440-2.0.0.dev63}/src/v440/_utils/__init__.py +0 -0
  21. {v440-2.0.0.dev61 → v440-2.0.0.dev63}/src/v440/_utils/cfg.toml +0 -0
  22. {v440-2.0.0.dev61 → v440-2.0.0.dev63}/src/v440/_utils/qualparse.py +0 -0
  23. {v440-2.0.0.dev61 → v440-2.0.0.dev63}/src/v440/core/Base.py +0 -0
  24. {v440-2.0.0.dev61 → v440-2.0.0.dev63}/src/v440/core/Local.py +1 -1
  25. {v440-2.0.0.dev61 → v440-2.0.0.dev63}/src/v440/core/Release.py +1 -1
  26. {v440-2.0.0.dev61 → v440-2.0.0.dev63}/src/v440/core/Version.py +0 -0
  27. {v440-2.0.0.dev61 → v440-2.0.0.dev63}/src/v440/core/VersionError.py +0 -0
  28. {v440-2.0.0.dev61 → v440-2.0.0.dev63}/src/v440/core/__init__.py +0 -0
  29. {v440-2.0.0.dev61 → v440-2.0.0.dev63}/src/v440/tests/__init__.py +0 -0
  30. {v440-2.0.0.dev61 → v440-2.0.0.dev63}/src/v440/tests/test_version.py +0 -0
  31. {v440-2.0.0.dev61 → v440-2.0.0.dev63}/src/v440.egg-info/SOURCES.txt +0 -0
  32. {v440-2.0.0.dev61 → v440-2.0.0.dev63}/src/v440.egg-info/dependency_links.txt +0 -0
  33. {v440-2.0.0.dev61 → v440-2.0.0.dev63}/src/v440.egg-info/requires.txt +0 -0
  34. {v440-2.0.0.dev61 → v440-2.0.0.dev63}/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.dev61
3
+ Version: 2.0.0.dev63
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)
@@ -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.dev61"
39
+ version = "2.0.0.dev63"
40
40
 
41
41
  [project.license]
42
42
  file = "LICENSE.txt"
@@ -122,7 +122,4 @@ class BaseList(metaclass=ABCMeta):
122
122
  @string.setter
123
123
  @guard
124
124
  def string(self: Self, value: Any) -> None:
125
- if value is None:
126
- self._string_fset("")
127
- else:
128
- self._string_fset(str(value))
125
+ self._string_fset(str(value))
@@ -62,15 +62,6 @@ def _segment(value: Any, /) -> int | str:
62
62
  return int(value)
63
63
 
64
64
 
65
- def ishashable(value: Any) -> bool:
66
- try:
67
- hash(value)
68
- except Exception:
69
- return False
70
- else:
71
- return True
72
-
73
-
74
65
  def guard(old: Any) -> Any:
75
66
  @functools.wraps(old)
76
67
  def new(self: Self, value: Any) -> None:
@@ -5,10 +5,8 @@ from typing import *
5
5
  import setdoc
6
6
  from overloadable import Overloadable
7
7
 
8
- from v440._utils.Digest import Digest
9
8
  from v440._utils.Pattern import Pattern
10
9
  from v440._utils.SlotList import SlotList
11
- from v440._utils.utils import guard
12
10
  from v440.core.Base import Base
13
11
  from v440.core.Qual import Qual
14
12
 
@@ -5,7 +5,7 @@ from typing import *
5
5
  import setdoc
6
6
  from overloadable import Overloadable
7
7
 
8
- from v440._utils import qualparse, utils
8
+ from v440._utils import qualparse
9
9
  from v440._utils.Pattern import Pattern
10
10
  from v440._utils.SlotList import SlotList
11
11
  from v440._utils.utils import guard
@@ -167,7 +167,8 @@ class TestSlicingGo(unittest.TestCase):
167
167
  class TestDataProperty(unittest.TestCase):
168
168
  def test_data(self: Self) -> None:
169
169
  for k, v in Util.util.data["data-property"].items():
170
- self.go(**v, key=k)
170
+ with self.subTest(key=k):
171
+ self.go(**v, key=k)
171
172
 
172
173
  def go(
173
174
  self: Self,
@@ -384,7 +385,7 @@ class TestSlots(unittest.TestCase):
384
385
  clsname: str,
385
386
  attrname: str,
386
387
  attrvalue: Any,
387
- data: Any = None,
388
+ string: Any = None,
388
389
  isimported: Optional[bool] = False,
389
390
  ) -> None:
390
391
  cls: type
@@ -392,7 +393,7 @@ class TestSlots(unittest.TestCase):
392
393
  cls = getattr(core, clsname)
393
394
  else:
394
395
  cls = getattr(getattr(core, clsname), clsname)
395
- obj: Any = cls(data)
396
+ obj: Any = cls(string=string)
396
397
  with self.assertRaises(AttributeError):
397
398
  setattr(obj, attrname, attrvalue)
398
399
 
@@ -961,9 +961,6 @@ solution = "9001"
961
961
  query = "1701!4.5.6.rc255+reset"
962
962
  solution = "1701!4.5.6rc255+reset"
963
963
 
964
- [data-property.none]
965
- solution = "0"
966
-
967
964
  [slicingmethod.test_slicing_1]
968
965
  query = "1.2.3.4.5.6.7.8.9.10"
969
966
  start = -8
@@ -1030,36 +1027,43 @@ full = "1.2.3"
1030
1027
  part = 0
1031
1028
 
1032
1029
  [core-non-attributes.test-0000]
1030
+ string = ""
1033
1031
  clsname = "Base"
1034
1032
  attrname = "fdsfvdsff"
1035
1033
  attrvalue = 42
1036
1034
 
1037
1035
  [core-non-attributes.test-0100]
1036
+ string = ""
1038
1037
  clsname = "Local"
1039
1038
  attrname = "fdsfvdsff"
1040
1039
  attrvalue = 42
1041
1040
 
1042
1041
  [core-non-attributes.test-0200]
1042
+ string = ""
1043
1043
  clsname = "Public"
1044
1044
  attrname = "fdsfvdsff"
1045
1045
  attrvalue = 42
1046
1046
 
1047
1047
  [core-non-attributes.test-0300]
1048
+ string = ""
1048
1049
  clsname = "Qual"
1049
1050
  attrname = "fdsfvdsff"
1050
1051
  attrvalue = 42
1051
1052
 
1052
1053
  [core-non-attributes.test-0400]
1054
+ string = ""
1053
1055
  clsname = "Release"
1054
1056
  attrname = "fdsfvdsff"
1055
1057
  attrvalue = 42
1056
1058
 
1057
1059
  [core-non-attributes.test-0500]
1060
+ string = ""
1058
1061
  clsname = "Public"
1059
1062
  attrname = "fdsfvdsff"
1060
1063
  attrvalue = 42
1061
1064
 
1062
1065
  [core-non-attributes.test-0600]
1066
+ string = ""
1063
1067
  clsname = "Version"
1064
1068
  attrname = "fdsfvdsff"
1065
1069
  attrvalue = 42
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: v440
3
- Version: 2.0.0.dev61
3
+ Version: 2.0.0.dev63
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)
File without changes
File without changes
File without changes
File without changes
@@ -15,8 +15,8 @@ __all__ = ["Local"]
15
15
  class Local(VList):
16
16
  __slots__ = ()
17
17
 
18
- data: tuple[int | str]
19
18
  string: str
19
+ data: tuple[int | str]
20
20
 
21
21
  @classmethod
22
22
  def _data_parse(cls: type, value: list) -> Iterable:
@@ -103,8 +103,8 @@ def torange(key: Any, length: Any) -> range:
103
103
  class Release(VList):
104
104
  __slots__ = ()
105
105
 
106
- data: tuple[int]
107
106
  string: str
107
+ data: tuple[int]
108
108
  major: int
109
109
  minor: int
110
110
  micro: int