omlish 0.0.0.dev403__py3-none-any.whl → 0.0.0.dev404__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.
- omlish/__about__.py +2 -2
- omlish/codecs/registry.py +1 -1
- omlish/manifests/loading.py +10 -7
- omlish/testing/pytest/skip.py +20 -5
- {omlish-0.0.0.dev403.dist-info → omlish-0.0.0.dev404.dist-info}/METADATA +1 -1
- {omlish-0.0.0.dev403.dist-info → omlish-0.0.0.dev404.dist-info}/RECORD +10 -10
- {omlish-0.0.0.dev403.dist-info → omlish-0.0.0.dev404.dist-info}/WHEEL +0 -0
- {omlish-0.0.0.dev403.dist-info → omlish-0.0.0.dev404.dist-info}/entry_points.txt +0 -0
- {omlish-0.0.0.dev403.dist-info → omlish-0.0.0.dev404.dist-info}/licenses/LICENSE +0 -0
- {omlish-0.0.0.dev403.dist-info → omlish-0.0.0.dev404.dist-info}/top_level.txt +0 -0
omlish/__about__.py
CHANGED
omlish/codecs/registry.py
CHANGED
@@ -107,7 +107,7 @@ def _install_standard_codecs(registry: CodecRegistry) -> None:
|
|
107
107
|
@cached.function
|
108
108
|
def _build_manifest_lazy_loaded_codecs() -> ta.Sequence[LazyLoadedCodec]:
|
109
109
|
ldr = manifest_globals.GlobalManifestLoader.instance()
|
110
|
-
pkgs = {__package__.split('.')[0], *ldr.discover_packages()}
|
110
|
+
pkgs = {__package__.split('.')[0], *ldr.discover_packages()} # FIXME
|
111
111
|
mns = ldr.load(*pkgs, only=[LazyLoadedCodec])
|
112
112
|
return [m.value() for m in mns]
|
113
113
|
|
omlish/manifests/loading.py
CHANGED
@@ -324,29 +324,32 @@ class ManifestLoader:
|
|
324
324
|
only=only,
|
325
325
|
)
|
326
326
|
|
327
|
-
|
327
|
+
##
|
328
328
|
|
329
329
|
ENTRY_POINT_GROUP: ta.ClassVar[str] = 'omlish.manifests'
|
330
330
|
|
331
331
|
_discovered_packages: ta.ClassVar[ta.Optional[ta.Sequence[str]]] = None
|
332
332
|
|
333
333
|
@classmethod
|
334
|
-
def
|
335
|
-
if (x := cls._discovered_packages) is not None:
|
336
|
-
return x
|
337
|
-
|
334
|
+
def _discover_packages_uncached(cls) -> ta.Sequence[str]:
|
338
335
|
# This is a fat dep so do it late.
|
339
336
|
from importlib import metadata as importlib_metadata # noqa
|
340
337
|
|
341
|
-
|
338
|
+
return [
|
342
339
|
ep.value
|
343
340
|
for ep in importlib_metadata.entry_points(group=cls.ENTRY_POINT_GROUP)
|
344
341
|
]
|
345
342
|
|
343
|
+
@classmethod
|
344
|
+
def discover_packages(cls) -> ta.Sequence[str]:
|
345
|
+
if (x := cls._discovered_packages) is not None:
|
346
|
+
return x
|
347
|
+
|
348
|
+
x = cls._discover_packages_uncached()
|
346
349
|
cls._discovered_packages = x
|
347
350
|
return x
|
348
351
|
|
349
|
-
|
352
|
+
##
|
350
353
|
|
351
354
|
def _scan_package_root_dir_uncached(
|
352
355
|
self,
|
omlish/testing/pytest/skip.py
CHANGED
@@ -17,20 +17,35 @@ from ... import lang
|
|
17
17
|
|
18
18
|
def if_cant_import(*modules: str, **kwargs):
|
19
19
|
missing = [m for m in modules if not lang.can_import(m, **kwargs)]
|
20
|
-
return pytest.mark.skipif(
|
20
|
+
return pytest.mark.skipif(
|
21
|
+
bool(missing),
|
22
|
+
reason=f'requires import {", ".join(missing)}',
|
23
|
+
)
|
21
24
|
|
22
25
|
|
23
26
|
def if_not_on_path(exe: str):
|
24
|
-
return pytest.mark.skipif(
|
27
|
+
return pytest.mark.skipif(
|
28
|
+
shutil.which(exe) is None,
|
29
|
+
reason=f'requires exe on path {exe}',
|
30
|
+
)
|
25
31
|
|
26
32
|
|
27
33
|
def if_python_version_less_than(num: ta.Sequence[int]):
|
28
|
-
return pytest.mark.skipif(
|
34
|
+
return pytest.mark.skipif(
|
35
|
+
sys.version_info < tuple(num),
|
36
|
+
reason=f'python version {tuple(sys.version_info)} < {tuple(num)}',
|
37
|
+
)
|
29
38
|
|
30
39
|
|
31
40
|
def if_not_platform(*platforms: str):
|
32
|
-
return pytest.mark.skipif(
|
41
|
+
return pytest.mark.skipif(
|
42
|
+
sys.platform not in platforms,
|
43
|
+
reason=f'requires platform in {platforms}',
|
44
|
+
)
|
33
45
|
|
34
46
|
|
35
47
|
def if_nogil():
|
36
|
-
return pytest.mark.skipif(
|
48
|
+
return pytest.mark.skipif(
|
49
|
+
sysconfig.get_config_var('Py_GIL_DISABLED'),
|
50
|
+
reason='requires gil build',
|
51
|
+
)
|
@@ -1,5 +1,5 @@
|
|
1
1
|
omlish/.manifests.json,sha256=ftpXGlXqsqDmBh0eWXtndZBLj8Y6QVhS5g5lKgEAf3U,8587
|
2
|
-
omlish/__about__.py,sha256=
|
2
|
+
omlish/__about__.py,sha256=OB2DoZkdbC_vknS_3Bckg3xD9-Cehj4NWNxrqX2WQjY,3601
|
3
3
|
omlish/__init__.py,sha256=SsyiITTuK0v74XpKV8dqNaCmjOlan1JZKrHQv5rWKPA,253
|
4
4
|
omlish/c3.py,sha256=rer-TPOFDU6fYq_AWio_AmA-ckZ8JDY5shIzQ_yXfzA,8414
|
5
5
|
omlish/cached.py,sha256=MLap_p0rdGoDIMVhXVHm1tsbcWobJF0OanoodV03Ju8,542
|
@@ -73,7 +73,7 @@ omlish/codecs/base.py,sha256=IVnJlduvhiH1imul4DPhl2gHBWS76774AV5h86dX0ls,2214
|
|
73
73
|
omlish/codecs/bytes.py,sha256=3DxyQQCvFcP3mQ5G93f_mygXEb-7I8buM8EyzUcx2Is,2155
|
74
74
|
omlish/codecs/chain.py,sha256=nbkL2nz0ZqT2lxYwSXktHh1YFTQ4Iii1Hp-fWjis6rc,532
|
75
75
|
omlish/codecs/funcs.py,sha256=or0Jogczuzk7csDTRl-HURMEjl8LXXqxxXYK45xcM5w,855
|
76
|
-
omlish/codecs/registry.py,sha256=
|
76
|
+
omlish/codecs/registry.py,sha256=v51TQlwRAa4b79qOj8VdJsNsTlaJj5Q02L95lskZoL4,4141
|
77
77
|
omlish/codecs/standard.py,sha256=eiZ4u9ep0XrA4Z_D1zJI0vmWyuN8HLrX4Se_r_Cq_ZM,60
|
78
78
|
omlish/codecs/text.py,sha256=uHhV8jBgH0iZgcrV0nl4-0a_9ofln4iFH4OXoVm2CW4,5709
|
79
79
|
omlish/collections/__init__.py,sha256=BIc806ri5Eq-kR03Ya2YfYTRI0g1rn_0haQPUqxXqys,2816
|
@@ -519,7 +519,7 @@ omlish/logs/utils.py,sha256=OkFWf1exmWImmT7BaSiIC7c0Fk9tAis-PRqo8H4ny3c,398
|
|
519
519
|
omlish/manifests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
520
520
|
omlish/manifests/base.py,sha256=Z5afzBJgI0tyTS8mPbYY4pYvoZu_xtdhRBOtZ3IIwzA,929
|
521
521
|
omlish/manifests/globals.py,sha256=nrA85o8zFTEYv440Y1wgr7SmtW6AE_3jF_Dls6RB_nE,1661
|
522
|
-
omlish/manifests/loading.py,sha256=
|
522
|
+
omlish/manifests/loading.py,sha256=fb_kfJnjLPVZcYWINjf9sZS1VFFWLmugHnhH-M--ORc,12114
|
523
523
|
omlish/manifests/static.py,sha256=7YwOVh_Ek9_aTrWsWNO8kWS10_j4K7yv3TpXZSHsvDY,501
|
524
524
|
omlish/manifests/types.py,sha256=5hQuY-WZ9VMqHZXr-9Dayg380JsnX2vJzXyw6vC6UDs,317
|
525
525
|
omlish/marshal/.dataclasses.json,sha256=wXWUy_IR8AolAa2RQnqn_mo2QnmVcvUJmayIykdVl0I,22
|
@@ -783,7 +783,7 @@ omlish/testing/testing.py,sha256=tlBeqVmzGhjRbWygJt3mZljq662qR4nAaGNE2VoAey4,361
|
|
783
783
|
omlish/testing/pytest/__init__.py,sha256=i4ti6Q2rVYJ-XBk9UYDfUUagCrEDTC5jOeSykBjYYZQ,234
|
784
784
|
omlish/testing/pytest/helpers.py,sha256=HxiKvpJQ4b6WCiQXOqQTqKbmr7CMAgCF6hViT6pfIuw,202
|
785
785
|
omlish/testing/pytest/marks.py,sha256=g0RgdvFAd3xog3kKYyb9QtiUVPrEG3JX_abhDNrHJy0,285
|
786
|
-
omlish/testing/pytest/skip.py,sha256=
|
786
|
+
omlish/testing/pytest/skip.py,sha256=d4ivXMnnCXVxiRfIN17RzweodExTeWY0qeFf8gmEJhM,1061
|
787
787
|
omlish/testing/pytest/inject/__init__.py,sha256=pdRKv1HcDmJ_yArKJbYITPXXZthRSGgBJWqITr0Er38,117
|
788
788
|
omlish/testing/pytest/inject/harness.py,sha256=uaFDli1ovhue-kfXV5WXyLn6cVOWNQf_2vFD13r-JyQ,5700
|
789
789
|
omlish/testing/pytest/plugins/__init__.py,sha256=ys1zXrYrNm7Uo6YOIVJ6Bd3dQo6kv387k7MbTYlqZSI,467
|
@@ -908,9 +908,9 @@ omlish/typedvalues/marshal.py,sha256=AtBz7Jq-BfW8vwM7HSxSpR85JAXmxK2T0xDblmm1HI0
|
|
908
908
|
omlish/typedvalues/of_.py,sha256=UXkxSj504WI2UrFlqdZJbu2hyDwBhL7XVrc2qdR02GQ,1309
|
909
909
|
omlish/typedvalues/reflect.py,sha256=PAvKW6T4cW7u--iX80w3HWwZUS3SmIZ2_lQjT65uAyk,1026
|
910
910
|
omlish/typedvalues/values.py,sha256=ym46I-q2QJ_6l4UlERqv3yj87R-kp8nCKMRph0xQ3UA,1307
|
911
|
-
omlish-0.0.0.
|
912
|
-
omlish-0.0.0.
|
913
|
-
omlish-0.0.0.
|
914
|
-
omlish-0.0.0.
|
915
|
-
omlish-0.0.0.
|
916
|
-
omlish-0.0.0.
|
911
|
+
omlish-0.0.0.dev404.dist-info/licenses/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
|
912
|
+
omlish-0.0.0.dev404.dist-info/METADATA,sha256=vyoFICI3BH21W8ZUiFMpGvbyhOkOu9JQ5QWL6Z918ak,18881
|
913
|
+
omlish-0.0.0.dev404.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
914
|
+
omlish-0.0.0.dev404.dist-info/entry_points.txt,sha256=Lt84WvRZJskWCAS7xnQGZIeVWksprtUHj0llrvVmod8,35
|
915
|
+
omlish-0.0.0.dev404.dist-info/top_level.txt,sha256=pePsKdLu7DvtUiecdYXJ78iO80uDNmBlqe-8hOzOmfs,7
|
916
|
+
omlish-0.0.0.dev404.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|