omdev 0.0.0.dev393__py3-none-any.whl → 0.0.0.dev395__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.
- omdev/cache/data/manifests.py +3 -2
- omdev/cli/main.py +5 -2
- omdev/imgur.py +1 -1
- omdev/intellij/ides.py +1 -1
- omdev/manifests/_dumping.py +1586 -0
- omdev/manifests/building.py +15 -17
- omdev/manifests/dumping.py +98 -75
- omdev/manifests/main.py +0 -2
- omdev/precheck/manifests.py +1 -1
- omdev/tools/git/messages.py +2 -2
- {omdev-0.0.0.dev393.dist-info → omdev-0.0.0.dev395.dist-info}/METADATA +2 -2
- {omdev-0.0.0.dev393.dist-info → omdev-0.0.0.dev395.dist-info}/RECORD +16 -15
- {omdev-0.0.0.dev393.dist-info → omdev-0.0.0.dev395.dist-info}/WHEEL +0 -0
- {omdev-0.0.0.dev393.dist-info → omdev-0.0.0.dev395.dist-info}/entry_points.txt +0 -0
- {omdev-0.0.0.dev393.dist-info → omdev-0.0.0.dev395.dist-info}/licenses/LICENSE +0 -0
- {omdev-0.0.0.dev393.dist-info → omdev-0.0.0.dev395.dist-info}/top_level.txt +0 -0
omdev/cache/data/manifests.py
CHANGED
@@ -2,6 +2,7 @@ import datetime
|
|
2
2
|
|
3
3
|
from omlish import __about__ as about
|
4
4
|
from omlish import cached
|
5
|
+
from omlish import check
|
5
6
|
from omlish import dataclasses as dc
|
6
7
|
|
7
8
|
from ...git.revisions import get_git_revision
|
@@ -13,11 +14,11 @@ from .specs import Spec
|
|
13
14
|
|
14
15
|
|
15
16
|
@cached.function
|
16
|
-
def _lib_revision() -> str
|
17
|
+
def _lib_revision() -> str:
|
17
18
|
if (rev := about.__revision__) is not None:
|
18
19
|
return rev # type: ignore
|
19
20
|
|
20
|
-
return get_git_revision()
|
21
|
+
return check.not_none(get_git_revision())
|
21
22
|
|
22
23
|
|
23
24
|
##
|
omdev/cli/main.py
CHANGED
@@ -13,7 +13,7 @@ import typing as ta
|
|
13
13
|
|
14
14
|
from omlish import check
|
15
15
|
from omlish.lite.cached import cached_nullary
|
16
|
-
from omlish.manifests.
|
16
|
+
from omlish.manifests.globals import MANIFEST_LOADER
|
17
17
|
|
18
18
|
from .types import CliCmd
|
19
19
|
from .types import CliFunc
|
@@ -183,7 +183,10 @@ def _build_arg_parser() -> argparse.ArgumentParser:
|
|
183
183
|
|
184
184
|
|
185
185
|
def _build_cmd_set(args: ta.Any) -> CliCmdSet:
|
186
|
-
ldr =
|
186
|
+
ldr = MANIFEST_LOADER.from_entry_point(
|
187
|
+
globals(),
|
188
|
+
cls_instantiator=MANIFEST_LOADER.instantiate_cls,
|
189
|
+
)
|
187
190
|
|
188
191
|
#
|
189
192
|
|
omdev/imgur.py
CHANGED
@@ -97,7 +97,7 @@ def upload_image(
|
|
97
97
|
|
98
98
|
resp = hu.request(
|
99
99
|
url,
|
100
|
-
headers={
|
100
|
+
headers={ # type: ignore[arg-type]
|
101
101
|
hu.consts.HEADER_AUTH: hu.consts.format_bearer_auth_header(Secret.of(auth_key).reveal()),
|
102
102
|
hu.consts.HEADER_CONTENT_TYPE: me.content_type().decode(),
|
103
103
|
},
|