omdev 0.0.0.dev35__py3-none-any.whl → 0.0.0.dev37__py3-none-any.whl
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.
Potentially problematic release.
This version of omdev might be problematic. Click here for more details.
- omdev/.manifests.json +1 -1
- omdev/amalg/amalg.py +3 -1
- omdev/cli/main.py +12 -17
- omdev/interp/inspect.py +1 -1
- omdev/interp/pyenv.py +2 -2
- omdev/interp/system.py +1 -1
- omdev/interp/types.py +3 -3
- omdev/manifests/build.py +2 -1
- omdev/packaging/names.py +44 -0
- omdev/packaging/requires.py +484 -0
- omdev/scripts/interp.py +9 -4
- omdev/scripts/pyproject.py +1175 -1170
- omdev/tools/piptools.py +34 -0
- {omdev-0.0.0.dev35.dist-info → omdev-0.0.0.dev37.dist-info}/METADATA +2 -2
- {omdev-0.0.0.dev35.dist-info → omdev-0.0.0.dev37.dist-info}/RECORD +22 -20
- /omdev/{versioning → packaging}/__init__.py +0 -0
- /omdev/{versioning → packaging}/specifiers.py +0 -0
- /omdev/{versioning → packaging}/versions.py +0 -0
- {omdev-0.0.0.dev35.dist-info → omdev-0.0.0.dev37.dist-info}/LICENSE +0 -0
- {omdev-0.0.0.dev35.dist-info → omdev-0.0.0.dev37.dist-info}/WHEEL +0 -0
- {omdev-0.0.0.dev35.dist-info → omdev-0.0.0.dev37.dist-info}/entry_points.txt +0 -0
- {omdev-0.0.0.dev35.dist-info → omdev-0.0.0.dev37.dist-info}/top_level.txt +0 -0
omdev/scripts/interp.py
CHANGED
|
@@ -43,7 +43,7 @@ if sys.version_info < (3, 8):
|
|
|
43
43
|
########################################
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
# ../../
|
|
46
|
+
# ../../packaging/versions.py
|
|
47
47
|
VersionLocalType = ta.Tuple[ta.Union[int, str], ...]
|
|
48
48
|
VersionCmpPrePostDevType = ta.Union['InfinityVersionType', 'NegativeInfinityVersionType', ta.Tuple[str, int]]
|
|
49
49
|
_VersionCmpLocalType0 = ta.Tuple[ta.Union[ta.Tuple[int, str], ta.Tuple['NegativeInfinityVersionType', ta.Union[int, str]]], ...] # noqa
|
|
@@ -54,14 +54,14 @@ VersionComparisonMethod = ta.Callable[[VersionCmpKey, VersionCmpKey], bool]
|
|
|
54
54
|
# ../../../omlish/lite/check.py
|
|
55
55
|
T = ta.TypeVar('T')
|
|
56
56
|
|
|
57
|
-
# ../../
|
|
57
|
+
# ../../packaging/specifiers.py
|
|
58
58
|
UnparsedVersion = ta.Union['Version', str]
|
|
59
59
|
UnparsedVersionVar = ta.TypeVar('UnparsedVersionVar', bound=UnparsedVersion)
|
|
60
60
|
CallableVersionOperator = ta.Callable[['Version', str], bool]
|
|
61
61
|
|
|
62
62
|
|
|
63
63
|
########################################
|
|
64
|
-
# ../../
|
|
64
|
+
# ../../packaging/versions.py
|
|
65
65
|
# Copyright (c) Donald Stufft and individual contributors.
|
|
66
66
|
# All rights reserved.
|
|
67
67
|
#
|
|
@@ -522,6 +522,11 @@ def check_non_empty_str(v: ta.Optional[str]) -> str:
|
|
|
522
522
|
return v
|
|
523
523
|
|
|
524
524
|
|
|
525
|
+
def check_state(v: bool, msg: str = 'Illegal state') -> None:
|
|
526
|
+
if not v:
|
|
527
|
+
raise ValueError(msg)
|
|
528
|
+
|
|
529
|
+
|
|
525
530
|
########################################
|
|
526
531
|
# ../../../omlish/lite/json.py
|
|
527
532
|
|
|
@@ -632,7 +637,7 @@ def is_sunder(name: str) -> bool:
|
|
|
632
637
|
|
|
633
638
|
|
|
634
639
|
########################################
|
|
635
|
-
# ../../
|
|
640
|
+
# ../../packaging/specifiers.py
|
|
636
641
|
# Copyright (c) Donald Stufft and individual contributors.
|
|
637
642
|
# All rights reserved.
|
|
638
643
|
#
|