v440 2.0.0.dev154__tar.gz → 2.0.0.dev155__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.dev155}/PKG-INFO +1 -1
  2. {v440-2.0.0.dev154 → v440-2.0.0.dev155}/pyproject.toml +1 -1
  3. {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/core/Release.py +10 -2
  4. {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/tests/testdata.toml +0 -24
  5. {v440-2.0.0.dev154 → v440-2.0.0.dev155/src/v440.egg-info}/PKG-INFO +1 -1
  6. {v440-2.0.0.dev154 → v440-2.0.0.dev155}/LICENSE.txt +0 -0
  7. {v440-2.0.0.dev154 → v440-2.0.0.dev155}/MANIFEST.in +0 -0
  8. {v440-2.0.0.dev154 → v440-2.0.0.dev155}/README.rst +0 -0
  9. {v440-2.0.0.dev154 → v440-2.0.0.dev155}/setup.cfg +0 -0
  10. {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/__init__.py +0 -0
  11. {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/_utils/BaseStringer.py +0 -0
  12. {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/_utils/Cfg.py +0 -0
  13. {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/_utils/ListStringer.py +0 -0
  14. {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/_utils/Pattern.py +0 -0
  15. {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/_utils/SlotStringer.py +0 -0
  16. {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/_utils/__init__.py +0 -0
  17. {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/_utils/cfg.toml +0 -0
  18. {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/_utils/guarding.py +0 -0
  19. {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/_utils/releaseparse/__init__.py +0 -0
  20. {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/_utils/releaseparse/deleting.py +0 -0
  21. {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/_utils/releaseparse/getting.py +0 -0
  22. {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/_utils/releaseparse/listing.py +0 -0
  23. {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/_utils/releaseparse/numerals.py +0 -0
  24. {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/_utils/releaseparse/ranging.py +0 -0
  25. {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/_utils/releaseparse/setting.py +0 -0
  26. {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/core/Base.py +0 -0
  27. {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/core/Local.py +0 -0
  28. {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/core/Public.py +0 -0
  29. {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/core/Qual.py +0 -0
  30. {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/core/Version.py +0 -0
  31. {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/core/VersionError.py +0 -0
  32. {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/core/__init__.py +0 -0
  33. {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/tests/__init__.py +0 -0
  34. {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/tests/test_testdata.py +0 -0
  35. {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440/tests/test_version.py +0 -0
  36. {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440.egg-info/SOURCES.txt +0 -0
  37. {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440.egg-info/dependency_links.txt +0 -0
  38. {v440-2.0.0.dev154 → v440-2.0.0.dev155}/src/v440.egg-info/requires.txt +0 -0
  39. {v440-2.0.0.dev154 → v440-2.0.0.dev155}/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.dev155
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.dev155"
40
40
 
41
41
  [project.license]
42
42
  file = "LICENSE.txt"
@@ -1,6 +1,7 @@
1
1
  from __future__ import annotations
2
2
 
3
3
  import operator
4
+ import sys
4
5
  from typing import *
5
6
 
6
7
  import setdoc
@@ -82,7 +83,7 @@ class Release(ListStringer):
82
83
 
83
84
  @classmethod
84
85
  def _data_parse(cls: type, value: list) -> Iterable:
85
- v: list = listing.tolist(value, slicing="always")
86
+ v: list = list(map(cls._item_parse, value))
86
87
  while v and v[-1] == 0:
87
88
  v.pop()
88
89
  return v
@@ -103,6 +104,13 @@ class Release(ListStringer):
103
104
  def _init_setup(self: Self) -> None:
104
105
  self._data = ()
105
106
 
107
+ @classmethod
108
+ def _item_parse(cls: type, value: SupportsIndex) -> int:
109
+ ans: int = operator.index(value)
110
+ if ans < 0:
111
+ raise ValueError
112
+ return ans
113
+
106
114
  @classmethod
107
115
  def _sort(cls: type, value: int) -> int:
108
116
  return value
@@ -114,7 +122,7 @@ class Release(ListStringer):
114
122
  v: str = value
115
123
  v = v.replace("_", ".")
116
124
  v = v.replace("-", ".")
117
- self.data = v.split(".")
125
+ self.data = map(int, v.split("."))
118
126
 
119
127
  def bump(self: Self, index: SupportsIndex = -1, amount: SupportsIndex = 1) -> None:
120
128
  i: int = operator.index(index)
@@ -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.dev155
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