v440 2.0.0.dev154__tar.gz → 2.0.0.dev156__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 (39) hide show
  1. {v440-2.0.0.dev154/src/v440.egg-info → v440-2.0.0.dev156}/PKG-INFO +1 -1
  2. {v440-2.0.0.dev154 → v440-2.0.0.dev156}/pyproject.toml +1 -1
  3. {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/core/Release.py +11 -4
  4. {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/tests/testdata.toml +0 -24
  5. {v440-2.0.0.dev154 → v440-2.0.0.dev156/src/v440.egg-info}/PKG-INFO +1 -1
  6. {v440-2.0.0.dev154 → v440-2.0.0.dev156}/LICENSE.txt +0 -0
  7. {v440-2.0.0.dev154 → v440-2.0.0.dev156}/MANIFEST.in +0 -0
  8. {v440-2.0.0.dev154 → v440-2.0.0.dev156}/README.rst +0 -0
  9. {v440-2.0.0.dev154 → v440-2.0.0.dev156}/setup.cfg +0 -0
  10. {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/__init__.py +0 -0
  11. {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/_utils/BaseStringer.py +0 -0
  12. {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/_utils/Cfg.py +0 -0
  13. {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/_utils/ListStringer.py +0 -0
  14. {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/_utils/Pattern.py +0 -0
  15. {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/_utils/SlotStringer.py +0 -0
  16. {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/_utils/__init__.py +0 -0
  17. {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/_utils/cfg.toml +0 -0
  18. {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/_utils/guarding.py +0 -0
  19. {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/_utils/releaseparse/__init__.py +0 -0
  20. {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/_utils/releaseparse/deleting.py +0 -0
  21. {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/_utils/releaseparse/getting.py +0 -0
  22. {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/_utils/releaseparse/listing.py +0 -0
  23. {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/_utils/releaseparse/numerals.py +0 -0
  24. {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/_utils/releaseparse/ranging.py +0 -0
  25. {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/_utils/releaseparse/setting.py +0 -0
  26. {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/core/Base.py +0 -0
  27. {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/core/Local.py +0 -0
  28. {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/core/Public.py +0 -0
  29. {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/core/Qual.py +0 -0
  30. {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/core/Version.py +0 -0
  31. {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/core/VersionError.py +0 -0
  32. {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/core/__init__.py +0 -0
  33. {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/tests/__init__.py +0 -0
  34. {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/tests/test_testdata.py +0 -0
  35. {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440/tests/test_version.py +0 -0
  36. {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440.egg-info/SOURCES.txt +0 -0
  37. {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440.egg-info/dependency_links.txt +0 -0
  38. {v440-2.0.0.dev154 → v440-2.0.0.dev156}/src/v440.egg-info/requires.txt +0 -0
  39. {v440-2.0.0.dev154 → v440-2.0.0.dev156}/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.dev154
3
+ Version: 2.0.0.dev156
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.dev154"
39
+ version = "2.0.0.dev156"
40
40
 
41
41
  [project.license]
42
42
  file = "LICENSE.txt"
@@ -8,7 +8,7 @@ from keyalias import keyalias
8
8
  from overloadable import Overloadable
9
9
 
10
10
  from v440._utils.ListStringer import ListStringer
11
- from v440._utils.releaseparse import deleting, getting, listing, setting
11
+ from v440._utils.releaseparse import deleting, getting, setting
12
12
 
13
13
  __all__ = ["Release"]
14
14
 
@@ -82,7 +82,7 @@ class Release(ListStringer):
82
82
 
83
83
  @classmethod
84
84
  def _data_parse(cls: type, value: list) -> Iterable:
85
- v: list = listing.tolist(value, slicing="always")
85
+ v: list = list(map(cls._item_parse, value))
86
86
  while v and v[-1] == 0:
87
87
  v.pop()
88
88
  return v
@@ -103,6 +103,13 @@ class Release(ListStringer):
103
103
  def _init_setup(self: Self) -> None:
104
104
  self._data = ()
105
105
 
106
+ @classmethod
107
+ def _item_parse(cls: type, value: SupportsIndex) -> int:
108
+ ans: int = operator.index(value)
109
+ if ans < 0:
110
+ raise ValueError
111
+ return ans
112
+
106
113
  @classmethod
107
114
  def _sort(cls: type, value: int) -> int:
108
115
  return value
@@ -114,7 +121,7 @@ class Release(ListStringer):
114
121
  v: str = value
115
122
  v = v.replace("_", ".")
116
123
  v = v.replace("-", ".")
117
- self.data = v.split(".")
124
+ self.data = map(int, v.split("."))
118
125
 
119
126
  def bump(self: Self, index: SupportsIndex = -1, amount: SupportsIndex = 1) -> None:
120
127
  i: int = operator.index(index)
@@ -126,7 +133,7 @@ class Release(ListStringer):
126
133
 
127
134
  @setdoc.basic
128
135
  def index(self: Self, value: Any, *args: Any) -> None:
129
- i: Optional[int]
136
+ i: int
130
137
  try:
131
138
  i = operator.index(value)
132
139
  except Exception:
@@ -916,30 +916,6 @@ solution = []
916
916
  query = []
917
917
  solution = []
918
918
 
919
- [release.test_release_conversion_string]
920
- query = [
921
- "1",
922
- "2",
923
- "3",
924
- ]
925
- solution = [
926
- 1,
927
- 2,
928
- 3,
929
- ]
930
-
931
- [release.test_release_conversion_mixed]
932
- query = [
933
- "1",
934
- 2,
935
- "3",
936
- ]
937
- solution = [
938
- 1,
939
- 2,
940
- 3,
941
- ]
942
-
943
919
  [data-property.local]
944
920
  query = "42!1.2.3.dev1337+5.nov"
945
921
  solution = "42!1.2.3.dev1337+5.nov"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: v440
3
- Version: 2.0.0.dev154
3
+ Version: 2.0.0.dev156
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