omdev 0.0.0.dev427__py3-none-any.whl → 0.0.0.dev428__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/ci/docker/dataserver.py +2 -2
- omdev/interp/inspect.py +2 -1
- omdev/interp/providers/system.py +2 -2
- omdev/interp/pyenv/provider.py +2 -2
- omdev/interp/uv/provider.py +3 -2
- omdev/interp/uv/uv.py +2 -2
- omdev/interp/venvs.py +2 -2
- omdev/scripts/ci.py +4338 -3240
- omdev/scripts/interp.py +111 -9
- omdev/scripts/pyproject.py +1346 -146
- {omdev-0.0.0.dev427.dist-info → omdev-0.0.0.dev428.dist-info}/METADATA +2 -2
- {omdev-0.0.0.dev427.dist-info → omdev-0.0.0.dev428.dist-info}/RECORD +16 -16
- {omdev-0.0.0.dev427.dist-info → omdev-0.0.0.dev428.dist-info}/WHEEL +0 -0
- {omdev-0.0.0.dev427.dist-info → omdev-0.0.0.dev428.dist-info}/entry_points.txt +0 -0
- {omdev-0.0.0.dev427.dist-info → omdev-0.0.0.dev428.dist-info}/licenses/LICENSE +0 -0
- {omdev-0.0.0.dev427.dist-info → omdev-0.0.0.dev428.dist-info}/top_level.txt +0 -0
omdev/ci/docker/dataserver.py
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# ruff: noqa: UP006 UP007 UP043 UP045
|
2
2
|
import asyncio
|
3
3
|
import contextlib
|
4
|
-
import logging
|
5
4
|
import ssl
|
6
5
|
import sys
|
7
6
|
import threading
|
@@ -14,6 +13,7 @@ from omlish.http.handlers import LoggingHttpHandler
|
|
14
13
|
from omlish.lite.cached import cached_nullary
|
15
14
|
from omlish.lite.check import check
|
16
15
|
from omlish.lite.contextmanagers import AsyncExitStacked
|
16
|
+
from omlish.logs.protocols import LoggerLike
|
17
17
|
from omlish.secrets.tempssl import generate_temp_localhost_ssl_cert
|
18
18
|
from omlish.sockets.server.server import SocketServer
|
19
19
|
|
@@ -145,7 +145,7 @@ class DockerDataServer(AsyncExitStacked):
|
|
145
145
|
port: int,
|
146
146
|
data_server: DataServer,
|
147
147
|
*,
|
148
|
-
handler_log: ta.Optional[
|
148
|
+
handler_log: ta.Optional[LoggerLike] = None,
|
149
149
|
stop_event: ta.Optional[asyncio.Event] = None,
|
150
150
|
) -> None:
|
151
151
|
super().__init__()
|
omdev/interp/inspect.py
CHANGED
@@ -6,6 +6,7 @@ import sys
|
|
6
6
|
import typing as ta
|
7
7
|
|
8
8
|
from omlish.asyncs.asyncio.subprocesses import asyncio_subprocesses
|
9
|
+
from omlish.logs.protocols import LoggerLike
|
9
10
|
|
10
11
|
from ..packaging.versions import Version
|
11
12
|
from .types import InterpOpts
|
@@ -48,7 +49,7 @@ class InterpInspector:
|
|
48
49
|
def __init__(
|
49
50
|
self,
|
50
51
|
*,
|
51
|
-
log: ta.Optional[
|
52
|
+
log: ta.Optional[LoggerLike] = None,
|
52
53
|
) -> None:
|
53
54
|
super().__init__()
|
54
55
|
|
omdev/interp/providers/system.py
CHANGED
@@ -5,13 +5,13 @@ TODO:
|
|
5
5
|
- check if path py's are venvs: sys.prefix != sys.base_prefix
|
6
6
|
"""
|
7
7
|
import dataclasses as dc
|
8
|
-
import logging
|
9
8
|
import os
|
10
9
|
import re
|
11
10
|
import typing as ta
|
12
11
|
|
13
12
|
from omlish.lite.cached import cached_nullary
|
14
13
|
from omlish.lite.check import check
|
14
|
+
from omlish.logs.protocols import LoggerLike
|
15
15
|
|
16
16
|
from ...packaging.versions import InvalidVersion
|
17
17
|
from ..inspect import InterpInspector
|
@@ -37,7 +37,7 @@ class SystemInterpProvider(InterpProvider):
|
|
37
37
|
options: Options = Options(),
|
38
38
|
*,
|
39
39
|
inspector: ta.Optional[InterpInspector] = None,
|
40
|
-
log: ta.Optional[
|
40
|
+
log: ta.Optional[LoggerLike] = None,
|
41
41
|
) -> None:
|
42
42
|
super().__init__()
|
43
43
|
|
omdev/interp/pyenv/provider.py
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# ruff: noqa: UP006 UP007 UP045
|
2
2
|
import dataclasses as dc
|
3
|
-
import logging
|
4
3
|
import typing as ta
|
5
4
|
|
6
5
|
from omlish.lite.check import check
|
6
|
+
from omlish.logs.protocols import LoggerLike
|
7
7
|
|
8
8
|
from ...packaging.versions import InvalidVersion
|
9
9
|
from ...packaging.versions import Version
|
@@ -33,7 +33,7 @@ class PyenvInterpProvider(InterpProvider):
|
|
33
33
|
*,
|
34
34
|
pyenv: Pyenv,
|
35
35
|
inspector: InterpInspector,
|
36
|
-
log: ta.Optional[
|
36
|
+
log: ta.Optional[LoggerLike] = None,
|
37
37
|
) -> None:
|
38
38
|
super().__init__()
|
39
39
|
|
omdev/interp/uv/provider.py
CHANGED
@@ -5,9 +5,10 @@ uv run --python 3.11.6 pip
|
|
5
5
|
uv venv --python 3.11.6 --seed barf
|
6
6
|
python3 -m venv barf && barf/bin/pip install uv && barf/bin/uv venv --python 3.11.6 --seed barf2
|
7
7
|
"""
|
8
|
-
import logging
|
9
8
|
import typing as ta
|
10
9
|
|
10
|
+
from omlish.logs.protocols import LoggerLike
|
11
|
+
|
11
12
|
from ..inspect import InterpInspector
|
12
13
|
from ..providers.base import InterpProvider
|
13
14
|
from ..types import Interp
|
@@ -25,7 +26,7 @@ class UvInterpProvider(InterpProvider):
|
|
25
26
|
*,
|
26
27
|
pyenv: Uv,
|
27
28
|
inspector: InterpInspector,
|
28
|
-
log: ta.Optional[
|
29
|
+
log: ta.Optional[LoggerLike] = None,
|
29
30
|
) -> None:
|
30
31
|
super().__init__()
|
31
32
|
|
omdev/interp/uv/uv.py
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
# ruff: noqa: UP006 UP007 UP045
|
2
2
|
import dataclasses as dc
|
3
|
-
import logging
|
4
3
|
import os.path
|
5
4
|
import shutil
|
6
5
|
import sys
|
@@ -10,6 +9,7 @@ import typing as ta
|
|
10
9
|
from omlish.asyncs.asyncio.subprocesses import asyncio_subprocesses
|
11
10
|
from omlish.lite.cached import async_cached_nullary
|
12
11
|
from omlish.lite.check import check
|
12
|
+
from omlish.logs.protocols import LoggerLike
|
13
13
|
|
14
14
|
|
15
15
|
##
|
@@ -26,7 +26,7 @@ class Uv:
|
|
26
26
|
self,
|
27
27
|
config: UvConfig = UvConfig(),
|
28
28
|
*,
|
29
|
-
log: ta.Optional[
|
29
|
+
log: ta.Optional[LoggerLike] = None,
|
30
30
|
) -> None:
|
31
31
|
super().__init__()
|
32
32
|
|
omdev/interp/venvs.py
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
# ruff: noqa: UP006 UP007 UP045
|
2
2
|
import dataclasses as dc
|
3
|
-
import logging
|
4
3
|
import os.path
|
5
4
|
import typing as ta
|
6
5
|
|
@@ -9,6 +8,7 @@ from omlish.lite.cached import async_cached_nullary
|
|
9
8
|
from omlish.lite.cached import cached_nullary
|
10
9
|
from omlish.lite.check import check
|
11
10
|
from omlish.lite.typing import Func2
|
11
|
+
from omlish.logs.protocols import LoggerLike
|
12
12
|
|
13
13
|
from .default import get_default_interp_resolver
|
14
14
|
from .types import InterpSpecifier
|
@@ -35,7 +35,7 @@ class InterpVenv:
|
|
35
35
|
cfg: InterpVenvConfig,
|
36
36
|
*,
|
37
37
|
requirements_processor: ta.Optional[InterpVenvRequirementsProcessor] = None,
|
38
|
-
log: ta.Optional[
|
38
|
+
log: ta.Optional[LoggerLike] = None,
|
39
39
|
) -> None:
|
40
40
|
super().__init__()
|
41
41
|
|