omdev 0.0.0.dev427__py3-none-any.whl → 0.0.0.dev429__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/.omlish-manifests.json +2 -2
- omdev/amalg/cli/main.py +1 -2
- omdev/cache/data/cache.py +2 -2
- omdev/cexts/_distutils/build_ext.py +5 -2
- omdev/cexts/_distutils/compilers/ccompiler.py +5 -2
- omdev/cexts/_distutils/compilers/options.py +3 -0
- omdev/cexts/_distutils/compilers/unixccompiler.py +6 -2
- omdev/cexts/_distutils/dir_util.py +6 -2
- omdev/cexts/_distutils/errors.py +3 -0
- omdev/cexts/_distutils/extension.py +3 -0
- omdev/cexts/_distutils/file_util.py +6 -2
- omdev/cexts/_distutils/modified.py +3 -0
- omdev/cexts/_distutils/spawn.py +6 -2
- omdev/cexts/_distutils/sysconfig.py +3 -0
- omdev/cexts/_distutils/util.py +6 -2
- omdev/cexts/_distutils/version.py +3 -0
- omdev/cexts/cmake.py +1 -2
- omdev/cexts/scan.py +1 -2
- omdev/ci/docker/dataserver.py +2 -2
- omdev/dataclasses/codegen.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/precheck/lite.py +2 -2
- omdev/precheck/main.py +1 -2
- omdev/py/tools/mkrelimp.py +1 -2
- omdev/scripts/ci.py +4682 -3578
- omdev/scripts/interp.py +111 -9
- omdev/scripts/pyproject.py +1350 -144
- omdev/tools/git/cli.py +1 -2
- {omdev-0.0.0.dev427.dist-info → omdev-0.0.0.dev429.dist-info}/METADATA +2 -2
- {omdev-0.0.0.dev427.dist-info → omdev-0.0.0.dev429.dist-info}/RECORD +39 -39
- {omdev-0.0.0.dev427.dist-info → omdev-0.0.0.dev429.dist-info}/WHEEL +0 -0
- {omdev-0.0.0.dev427.dist-info → omdev-0.0.0.dev429.dist-info}/entry_points.txt +0 -0
- {omdev-0.0.0.dev427.dist-info → omdev-0.0.0.dev429.dist-info}/licenses/LICENSE +0 -0
- {omdev-0.0.0.dev427.dist-info → omdev-0.0.0.dev429.dist-info}/top_level.txt +0 -0
omdev/.omlish-manifests.json
CHANGED
@@ -27,7 +27,7 @@
|
|
27
27
|
"module": ".cexts.cmake",
|
28
28
|
"attr": "_CLI_MODULE",
|
29
29
|
"file": "omdev/cexts/cmake.py",
|
30
|
-
"line":
|
30
|
+
"line": 332,
|
31
31
|
"value": {
|
32
32
|
"!.cli.types.CliModule": {
|
33
33
|
"name": "cmake",
|
@@ -284,7 +284,7 @@
|
|
284
284
|
"module": ".py.tools.mkrelimp",
|
285
285
|
"attr": "_CLI_MODULE",
|
286
286
|
"file": "omdev/py/tools/mkrelimp.py",
|
287
|
-
"line":
|
287
|
+
"line": 148,
|
288
288
|
"value": {
|
289
289
|
"!.cli.types.CliModule": {
|
290
290
|
"name": "py/mkrelimp",
|
omdev/amalg/cli/main.py
CHANGED
@@ -26,7 +26,6 @@ Targets:
|
|
26
26
|
- supervisor?
|
27
27
|
"""
|
28
28
|
import argparse
|
29
|
-
import logging
|
30
29
|
import os.path
|
31
30
|
import stat
|
32
31
|
import typing as ta
|
@@ -38,7 +37,7 @@ from ..gen.gen import SCAN_COMMENT
|
|
38
37
|
from ..gen.gen import AmalgGenerator
|
39
38
|
|
40
39
|
|
41
|
-
log =
|
40
|
+
log = logs.get_module_logger(globals())
|
42
41
|
|
43
42
|
|
44
43
|
##
|
omdev/cache/data/cache.py
CHANGED
@@ -11,7 +11,6 @@ TODO:
|
|
11
11
|
- download resume ala hf_hub
|
12
12
|
"""
|
13
13
|
import contextlib
|
14
|
-
import logging
|
15
14
|
import os.path
|
16
15
|
import shutil
|
17
16
|
import subprocess
|
@@ -25,6 +24,7 @@ from omlish import check
|
|
25
24
|
from omlish import lang
|
26
25
|
from omlish import marshal as msh
|
27
26
|
from omlish.formats import json
|
27
|
+
from omlish.logs import all as logs
|
28
28
|
from omlish.os.files import touch
|
29
29
|
|
30
30
|
from ...git.shallow import git_shallow_clone
|
@@ -37,7 +37,7 @@ from .specs import Spec
|
|
37
37
|
from .specs import UrlSpec
|
38
38
|
|
39
39
|
|
40
|
-
log =
|
40
|
+
log = logs.get_module_logger(globals())
|
41
41
|
|
42
42
|
|
43
43
|
##
|
@@ -37,7 +37,6 @@ License Agreement.
|
|
37
37
|
"""
|
38
38
|
import contextlib
|
39
39
|
import dataclasses as dc
|
40
|
-
import logging
|
41
40
|
import os
|
42
41
|
import site
|
43
42
|
import sys
|
@@ -46,6 +45,7 @@ import typing as ta
|
|
46
45
|
from omlish import cached
|
47
46
|
from omlish import check
|
48
47
|
from omlish import lang
|
48
|
+
from omlish.logs import all as logs
|
49
49
|
|
50
50
|
from . import compilers
|
51
51
|
from . import errors
|
@@ -55,7 +55,10 @@ from . import sysconfig
|
|
55
55
|
from . import util
|
56
56
|
|
57
57
|
|
58
|
-
log =
|
58
|
+
log = logs.get_module_logger(globals())
|
59
|
+
|
60
|
+
|
61
|
+
##
|
59
62
|
|
60
63
|
|
61
64
|
def _get_str_config_var(name: str) -> str:
|
@@ -1,7 +1,6 @@
|
|
1
1
|
"""
|
2
2
|
Contains CCompiler, an abstract base class that defines the interface for the Distutils compiler abstraction model.
|
3
3
|
"""
|
4
|
-
import logging
|
5
4
|
import os
|
6
5
|
import re
|
7
6
|
import sys
|
@@ -9,6 +8,7 @@ import typing as ta
|
|
9
8
|
import warnings
|
10
9
|
|
11
10
|
from omlish import check
|
11
|
+
from omlish.logs import all as logs
|
12
12
|
|
13
13
|
from ..dir_util import mkpath
|
14
14
|
from ..errors import CompileError
|
@@ -25,7 +25,10 @@ from .options import Macro
|
|
25
25
|
from .options import gen_preprocess_options
|
26
26
|
|
27
27
|
|
28
|
-
log =
|
28
|
+
log = logs.get_module_logger(globals())
|
29
|
+
|
30
|
+
|
31
|
+
##
|
29
32
|
|
30
33
|
|
31
34
|
class CCompiler:
|
@@ -14,13 +14,14 @@ from __future__ import annotations
|
|
14
14
|
|
15
15
|
import importlib
|
16
16
|
import itertools
|
17
|
-
import logging
|
18
17
|
import os
|
19
18
|
import re
|
20
19
|
import shlex
|
21
20
|
import sys
|
22
21
|
import typing as ta
|
23
22
|
|
23
|
+
from omlish.logs import all as logs
|
24
|
+
|
24
25
|
from .. import sysconfig
|
25
26
|
from ..errors import CompileError
|
26
27
|
from ..errors import DistutilsExecError
|
@@ -32,7 +33,10 @@ from .options import gen_lib_options
|
|
32
33
|
from .options import gen_preprocess_options
|
33
34
|
|
34
35
|
|
35
|
-
log =
|
36
|
+
log = logs.get_module_logger(globals())
|
37
|
+
|
38
|
+
|
39
|
+
##
|
36
40
|
|
37
41
|
|
38
42
|
def bypass_compiler_fixup(cmd, args):
|
@@ -1,13 +1,17 @@
|
|
1
1
|
"""Utility functions for manipulating directories and directory trees."""
|
2
2
|
import errno
|
3
|
-
import logging
|
4
3
|
import os
|
5
4
|
|
5
|
+
from omlish.logs import all as logs
|
6
|
+
|
6
7
|
from .errors import DistutilsFileError
|
7
8
|
from .errors import DistutilsInternalError
|
8
9
|
|
9
10
|
|
10
|
-
log =
|
11
|
+
log = logs.get_module_logger(globals())
|
12
|
+
|
13
|
+
|
14
|
+
##
|
11
15
|
|
12
16
|
|
13
17
|
# cache for by mkpath() -- in addition to cheapening redundant calls, eliminates redundant "creating /foo/bar/baz"
|
omdev/cexts/_distutils/errors.py
CHANGED
@@ -1,12 +1,16 @@
|
|
1
1
|
"""Utility functions for operating on single files."""
|
2
2
|
import contextlib
|
3
|
-
import logging
|
4
3
|
import os
|
5
4
|
|
5
|
+
from omlish.logs import all as logs
|
6
|
+
|
6
7
|
from .errors import DistutilsFileError
|
7
8
|
|
8
9
|
|
9
|
-
log =
|
10
|
+
log = logs.get_module_logger(globals())
|
11
|
+
|
12
|
+
|
13
|
+
##
|
10
14
|
|
11
15
|
|
12
16
|
# for generating verbose output in 'copy_file()'
|
omdev/cexts/_distutils/spawn.py
CHANGED
@@ -4,15 +4,19 @@ specific functions for launching another program in a sub-process.
|
|
4
4
|
Also provides the 'find_executable()' to search the path for a given
|
5
5
|
executable name.
|
6
6
|
"""
|
7
|
-
import logging
|
8
7
|
import os
|
9
8
|
import subprocess
|
10
9
|
import sys
|
11
10
|
|
11
|
+
from omlish.logs import all as logs
|
12
|
+
|
12
13
|
from .errors import DistutilsExecError
|
13
14
|
|
14
15
|
|
15
|
-
log =
|
16
|
+
log = logs.get_module_logger(globals())
|
17
|
+
|
18
|
+
|
19
|
+
##
|
16
20
|
|
17
21
|
|
18
22
|
def spawn(cmd, search_path=1, verbose=0, dry_run=False, env=None, debug=False): # noqa: C901
|
omdev/cexts/_distutils/util.py
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
"""Miscellaneous utility functions -- anything that doesn't fit into one of the other *util.py modules."""
|
2
2
|
import functools
|
3
|
-
import logging
|
4
3
|
import os
|
5
4
|
import re
|
6
5
|
import string
|
@@ -8,10 +7,15 @@ import sys
|
|
8
7
|
import sysconfig
|
9
8
|
import typing as ta
|
10
9
|
|
10
|
+
from omlish.logs import all as logs
|
11
|
+
|
11
12
|
from .errors import DistutilsPlatformError
|
12
13
|
|
13
14
|
|
14
|
-
log =
|
15
|
+
log = logs.get_module_logger(globals())
|
16
|
+
|
17
|
+
|
18
|
+
##
|
15
19
|
|
16
20
|
|
17
21
|
def pass_none(func):
|
omdev/cexts/cmake.py
CHANGED
@@ -33,7 +33,6 @@ Done:
|
|
33
33
|
import argparse
|
34
34
|
import dataclasses as dc
|
35
35
|
import io
|
36
|
-
import logging
|
37
36
|
import os.path
|
38
37
|
import shutil
|
39
38
|
import sys
|
@@ -50,7 +49,7 @@ from ..cli import CliModule
|
|
50
49
|
from .magic import CextMagic
|
51
50
|
|
52
51
|
|
53
|
-
log =
|
52
|
+
log = logs.get_module_logger(globals())
|
54
53
|
|
55
54
|
|
56
55
|
##
|
omdev/cexts/scan.py
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
import argparse
|
2
|
-
import logging
|
3
2
|
import os.path
|
4
3
|
import typing as ta
|
5
4
|
|
@@ -8,7 +7,7 @@ from omlish.logs import all as logs
|
|
8
7
|
from .magic import CextMagic
|
9
8
|
|
10
9
|
|
11
|
-
log =
|
10
|
+
log = logs.get_module_logger(globals())
|
12
11
|
|
13
12
|
|
14
13
|
##
|
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/dataclasses/codegen.py
CHANGED
@@ -8,7 +8,6 @@ TODO:
|
|
8
8
|
- more sparse / diffuse intent, not package-level
|
9
9
|
"""
|
10
10
|
import importlib
|
11
|
-
import logging
|
12
11
|
import os.path
|
13
12
|
import typing as ta
|
14
13
|
|
@@ -21,9 +20,10 @@ from omlish.dataclasses.impl.generation.processor import Codegen as CodegenProce
|
|
21
20
|
from omlish.dataclasses.impl.generation.processor import GeneratorProcessor
|
22
21
|
from omlish.dataclasses.impl.processing.base import ProcessingContext
|
23
22
|
from omlish.dataclasses.impl.processing.driving import processing_options_context
|
23
|
+
from omlish.logs import all as logs
|
24
24
|
|
25
25
|
|
26
|
-
log =
|
26
|
+
log = logs.get_module_logger(globals())
|
27
27
|
|
28
28
|
|
29
29
|
##
|
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
|
|
omdev/precheck/lite.py
CHANGED
@@ -2,13 +2,13 @@ import asyncio
|
|
2
2
|
import dataclasses as dc
|
3
3
|
import glob
|
4
4
|
import inspect
|
5
|
-
import logging
|
6
5
|
import os.path
|
7
6
|
import subprocess
|
8
7
|
import textwrap
|
9
8
|
import typing as ta
|
10
9
|
|
11
10
|
from omlish import cached
|
11
|
+
from omlish.logs import all as logs
|
12
12
|
from omlish.subprocesses.wrap import subprocess_maybe_shell_wrap_exec
|
13
13
|
|
14
14
|
from .. import magic
|
@@ -16,7 +16,7 @@ from .base import Precheck
|
|
16
16
|
from .base import PrecheckContext
|
17
17
|
|
18
18
|
|
19
|
-
log =
|
19
|
+
log = logs.get_module_logger(globals())
|
20
20
|
|
21
21
|
|
22
22
|
##
|
omdev/precheck/main.py
CHANGED
@@ -20,7 +20,6 @@ TODO:
|
|
20
20
|
"""
|
21
21
|
import argparse
|
22
22
|
import asyncio
|
23
|
-
import logging
|
24
23
|
import os.path
|
25
24
|
import sys
|
26
25
|
import typing as ta
|
@@ -43,7 +42,7 @@ from .scripts import ScriptDepsPrecheck
|
|
43
42
|
from .unicode import UnicodePrecheck
|
44
43
|
|
45
44
|
|
46
|
-
log =
|
45
|
+
log = logs.get_module_logger(globals())
|
47
46
|
|
48
47
|
|
49
48
|
##
|
omdev/py/tools/mkrelimp.py
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
import argparse
|
2
2
|
import itertools
|
3
|
-
import logging
|
4
3
|
import os.path
|
5
4
|
import typing as ta
|
6
5
|
|
@@ -13,7 +12,7 @@ from ...tokens import all as tks
|
|
13
12
|
T = ta.TypeVar('T')
|
14
13
|
|
15
14
|
|
16
|
-
log =
|
15
|
+
log = logs.get_module_logger(globals())
|
17
16
|
|
18
17
|
|
19
18
|
##
|