omdev 0.0.0.dev76__py3-none-any.whl → 0.0.0.dev78__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/__about__.py +1 -1
- omdev/cli/_pathhack.py +1 -1
- omdev/scripts/interp.py +28 -2
- omdev/scripts/pyproject.py +28 -2
- {omdev-0.0.0.dev76.dist-info → omdev-0.0.0.dev78.dist-info}/METADATA +4 -4
- {omdev-0.0.0.dev76.dist-info → omdev-0.0.0.dev78.dist-info}/RECORD +10 -10
- {omdev-0.0.0.dev76.dist-info → omdev-0.0.0.dev78.dist-info}/LICENSE +0 -0
- {omdev-0.0.0.dev76.dist-info → omdev-0.0.0.dev78.dist-info}/WHEEL +0 -0
- {omdev-0.0.0.dev76.dist-info → omdev-0.0.0.dev78.dist-info}/entry_points.txt +0 -0
- {omdev-0.0.0.dev76.dist-info → omdev-0.0.0.dev78.dist-info}/top_level.txt +0 -0
omdev/__about__.py
CHANGED
omdev/cli/_pathhack.py
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Python is insistent on prepending sys.path with an empty string (translating to the current working directory), which
|
|
3
3
|
leads to problems when using the cli in directories containing python packages (such as within this very source tree).
|
|
4
4
|
This can't be done in cli main as the code frequently spawns other sys.executable processes which wouldn't know to do
|
|
5
|
-
that, so a .pth file hack is used. Cleaning sys.path solely there is also insufficient as that code runs before
|
|
5
|
+
that, so a .pth file hack is used. Cleaning sys.path solely there is also insufficient as that code runs before the
|
|
6
6
|
problematic empty string is added, so a sys.meta_path hook is prepended.
|
|
7
7
|
|
|
8
8
|
See:
|
omdev/scripts/interp.py
CHANGED
|
@@ -527,6 +527,23 @@ def check_state(v: bool, msg: str = 'Illegal state') -> None:
|
|
|
527
527
|
raise ValueError(msg)
|
|
528
528
|
|
|
529
529
|
|
|
530
|
+
def check_equal(l: T, r: T) -> T:
|
|
531
|
+
if l != r:
|
|
532
|
+
raise ValueError(l, r)
|
|
533
|
+
return l
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
def check_not_equal(l: T, r: T) -> T:
|
|
537
|
+
if l == r:
|
|
538
|
+
raise ValueError(l, r)
|
|
539
|
+
return l
|
|
540
|
+
|
|
541
|
+
|
|
542
|
+
def check_single(vs: ta.Iterable[T]) -> T:
|
|
543
|
+
[v] = vs
|
|
544
|
+
return v
|
|
545
|
+
|
|
546
|
+
|
|
530
547
|
########################################
|
|
531
548
|
# ../../../omlish/lite/json.py
|
|
532
549
|
|
|
@@ -609,8 +626,13 @@ def deep_subclasses(cls: ta.Type[T]) -> ta.Iterator[ta.Type[T]]:
|
|
|
609
626
|
# ../../../omlish/lite/strings.py
|
|
610
627
|
|
|
611
628
|
|
|
612
|
-
def camel_case(name: str) -> str:
|
|
613
|
-
|
|
629
|
+
def camel_case(name: str, lower: bool = False) -> str:
|
|
630
|
+
if not name:
|
|
631
|
+
return ''
|
|
632
|
+
s = ''.join(map(str.capitalize, name.split('_'))) # noqa
|
|
633
|
+
if lower:
|
|
634
|
+
s = s[0].lower() + s[1:]
|
|
635
|
+
return s
|
|
614
636
|
|
|
615
637
|
|
|
616
638
|
def snake_case(name: str) -> str:
|
|
@@ -636,6 +658,10 @@ def is_sunder(name: str) -> bool:
|
|
|
636
658
|
)
|
|
637
659
|
|
|
638
660
|
|
|
661
|
+
def attr_repr(obj: ta.Any, *attrs: str) -> str:
|
|
662
|
+
return f'{type(obj).__name__}({", ".join(f"{attr}={getattr(obj, attr)!r}" for attr in attrs)})'
|
|
663
|
+
|
|
664
|
+
|
|
639
665
|
########################################
|
|
640
666
|
# ../../packaging/specifiers.py
|
|
641
667
|
# Copyright (c) Donald Stufft and individual contributors.
|
omdev/scripts/pyproject.py
CHANGED
|
@@ -1908,6 +1908,23 @@ def check_state(v: bool, msg: str = 'Illegal state') -> None:
|
|
|
1908
1908
|
raise ValueError(msg)
|
|
1909
1909
|
|
|
1910
1910
|
|
|
1911
|
+
def check_equal(l: T, r: T) -> T:
|
|
1912
|
+
if l != r:
|
|
1913
|
+
raise ValueError(l, r)
|
|
1914
|
+
return l
|
|
1915
|
+
|
|
1916
|
+
|
|
1917
|
+
def check_not_equal(l: T, r: T) -> T:
|
|
1918
|
+
if l == r:
|
|
1919
|
+
raise ValueError(l, r)
|
|
1920
|
+
return l
|
|
1921
|
+
|
|
1922
|
+
|
|
1923
|
+
def check_single(vs: ta.Iterable[T]) -> T:
|
|
1924
|
+
[v] = vs
|
|
1925
|
+
return v
|
|
1926
|
+
|
|
1927
|
+
|
|
1911
1928
|
########################################
|
|
1912
1929
|
# ../../../omlish/lite/json.py
|
|
1913
1930
|
|
|
@@ -1990,8 +2007,13 @@ def deep_subclasses(cls: ta.Type[T]) -> ta.Iterator[ta.Type[T]]:
|
|
|
1990
2007
|
# ../../../omlish/lite/strings.py
|
|
1991
2008
|
|
|
1992
2009
|
|
|
1993
|
-
def camel_case(name: str) -> str:
|
|
1994
|
-
|
|
2010
|
+
def camel_case(name: str, lower: bool = False) -> str:
|
|
2011
|
+
if not name:
|
|
2012
|
+
return ''
|
|
2013
|
+
s = ''.join(map(str.capitalize, name.split('_'))) # noqa
|
|
2014
|
+
if lower:
|
|
2015
|
+
s = s[0].lower() + s[1:]
|
|
2016
|
+
return s
|
|
1995
2017
|
|
|
1996
2018
|
|
|
1997
2019
|
def snake_case(name: str) -> str:
|
|
@@ -2017,6 +2039,10 @@ def is_sunder(name: str) -> bool:
|
|
|
2017
2039
|
)
|
|
2018
2040
|
|
|
2019
2041
|
|
|
2042
|
+
def attr_repr(obj: ta.Any, *attrs: str) -> str:
|
|
2043
|
+
return f'{type(obj).__name__}({", ".join(f"{attr}={getattr(obj, attr)!r}" for attr in attrs)})'
|
|
2044
|
+
|
|
2045
|
+
|
|
2020
2046
|
########################################
|
|
2021
2047
|
# ../../packaging/specifiers.py
|
|
2022
2048
|
# Copyright (c) Donald Stufft and individual contributors.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: omdev
|
|
3
|
-
Version: 0.0.0.
|
|
3
|
+
Version: 0.0.0.dev78
|
|
4
4
|
Summary: omdev
|
|
5
5
|
Author: wrmsr
|
|
6
6
|
License: BSD-3-Clause
|
|
@@ -12,7 +12,7 @@ Classifier: Operating System :: OS Independent
|
|
|
12
12
|
Classifier: Operating System :: POSIX
|
|
13
13
|
Requires-Python: ~=3.12
|
|
14
14
|
License-File: LICENSE
|
|
15
|
-
Requires-Dist: omlish ==0.0.0.
|
|
15
|
+
Requires-Dist: omlish ==0.0.0.dev78
|
|
16
16
|
Provides-Extra: all
|
|
17
17
|
Requires-Dist: black ~=24.10 ; extra == 'all'
|
|
18
18
|
Requires-Dist: pycparser ~=2.22 ; extra == 'all'
|
|
@@ -21,7 +21,7 @@ Requires-Dist: pcpp ~=1.30 ; extra == 'all'
|
|
|
21
21
|
Requires-Dist: docutils ~=0.21 ; extra == 'all'
|
|
22
22
|
Requires-Dist: mypy ~=1.11 ; extra == 'all'
|
|
23
23
|
Requires-Dist: gprof2dot ~=2024.6 ; extra == 'all'
|
|
24
|
-
Requires-Dist: tokenize-rt ~=6.
|
|
24
|
+
Requires-Dist: tokenize-rt ~=6.1 ; extra == 'all'
|
|
25
25
|
Requires-Dist: wheel ~=0.44 ; extra == 'all'
|
|
26
26
|
Provides-Extra: black
|
|
27
27
|
Requires-Dist: black ~=24.10 ; extra == 'black'
|
|
@@ -36,7 +36,7 @@ Requires-Dist: mypy ~=1.11 ; extra == 'mypy'
|
|
|
36
36
|
Provides-Extra: prof
|
|
37
37
|
Requires-Dist: gprof2dot ~=2024.6 ; extra == 'prof'
|
|
38
38
|
Provides-Extra: tokens
|
|
39
|
-
Requires-Dist: tokenize-rt ~=6.
|
|
39
|
+
Requires-Dist: tokenize-rt ~=6.1 ; extra == 'tokens'
|
|
40
40
|
Provides-Extra: wheel
|
|
41
41
|
Requires-Dist: wheel ~=0.44 ; extra == 'wheel'
|
|
42
42
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
omdev/.manifests.json,sha256=qqGdjl5ipGAzn3N24XuhpvfczMlYD__3pV1gFHXw4AY,5228
|
|
2
|
-
omdev/__about__.py,sha256=
|
|
2
|
+
omdev/__about__.py,sha256=do_MjpnIpB_DX4GL4VV9gFQzs6bkoyDIYu29yB3rYxw,1131
|
|
3
3
|
omdev/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
omdev/bracepy.py,sha256=HwBK5XmlOsF_juTel25fRLJK9vHSJCWXuCc-OZlevRQ,2619
|
|
5
5
|
omdev/classdot.py,sha256=K0YMTngaC6uuEKhDb95tFzW33Re_YEdgIWBBeze4PTI,1628
|
|
@@ -60,7 +60,7 @@ omdev/cexts/_distutils/compilers/options.py,sha256=H7r5IcLvga5Fs3jjXWIT-6ap3JBdu
|
|
|
60
60
|
omdev/cexts/_distutils/compilers/unixccompiler.py,sha256=o1h8QuyupLntv4F21_XjzAZmCiwwxJuTmOirvBSL-Qw,15419
|
|
61
61
|
omdev/cli/__init__.py,sha256=V_l6VP1SZMlJbO-8CJwSuO9TThOy2S_oaPepNYgIrbE,37
|
|
62
62
|
omdev/cli/__main__.py,sha256=mOJpgc07o0r5luQ1DlX4tk2PqZkgmbwPbdzJ3KmtjgQ,138
|
|
63
|
-
omdev/cli/_pathhack.py,sha256=
|
|
63
|
+
omdev/cli/_pathhack.py,sha256=MCkajFbzP55Nak4DAy2s-4WH_ol15ejyTatvhLfne90,1478
|
|
64
64
|
omdev/cli/clicli.py,sha256=ShTlK2vjFPqnyF9SPTwXd4nRyb6XjCVPQIT4PTGdTL4,2879
|
|
65
65
|
omdev/cli/install.py,sha256=C-W171YlIHt4Cfok-nWSMbHwWhqF_PFqq2HixFttYx8,4460
|
|
66
66
|
omdev/cli/main.py,sha256=fQL-KdKZDmw00d8vtgxGmUc9Pp3dnhW1BW-Pzu6JPX0,4172
|
|
@@ -106,8 +106,8 @@ omdev/scripts/bumpversion.py,sha256=Kn7fo73Hs8uJh3Hi3EIyLOlzLPWAC6dwuD_lZ3cIzuY,
|
|
|
106
106
|
omdev/scripts/execrss.py,sha256=d6purJqU99OkMcNxCS1kG2CMfSsw7wjnvBQW7SjyJ70,448
|
|
107
107
|
omdev/scripts/exectime.py,sha256=LRVIJsnvGYUqH-zfCdFnrQCZv1KLXJPtWBWplXMDwhI,407
|
|
108
108
|
omdev/scripts/importtrace.py,sha256=4ozdphT4VuP8L0kE0HmGMyWaWHnXg1KEukbET4pFgJU,14064
|
|
109
|
-
omdev/scripts/interp.py,sha256=
|
|
110
|
-
omdev/scripts/pyproject.py,sha256=
|
|
109
|
+
omdev/scripts/interp.py,sha256=2poCQ_45tO0-X16KeoxiAyuTfltSjnPETejlYEm9VY4,71527
|
|
110
|
+
omdev/scripts/pyproject.py,sha256=nWbnMyGwrfzcTcnvUFGP9wxIu3rlUyxQYhkq64UXIrA,158084
|
|
111
111
|
omdev/toml/__init__.py,sha256=Y3l4WY4JRi2uLG6kgbGp93fuGfkxkKwZDvhsa0Rwgtk,15
|
|
112
112
|
omdev/toml/parser.py,sha256=84bn09uhYHwQGyfww6Rw6y1RxPAE_HDltODOSakcqDM,29186
|
|
113
113
|
omdev/toml/writer.py,sha256=lk3on3YXVbWuLJa-xsOzOhs1bBAT1vXqw4mBbluZl_w,3040
|
|
@@ -121,9 +121,9 @@ omdev/tools/piptools.py,sha256=-jR5q3w4sHqntxCLExFCBNIARB788FUsAbJ62PK2sBU,2774
|
|
|
121
121
|
omdev/tools/proftools.py,sha256=8ZU9x_Dq8eT2ZFwU9sJpDIvxcIn9qBc8y2ELKPb5e5M,1382
|
|
122
122
|
omdev/tools/rsttool.py,sha256=suwsfseUf8GH8rYmYygTUdif-Jk_bX1g9fYRLXaKkmM,1340
|
|
123
123
|
omdev/tools/sqlrepl.py,sha256=tmFZh80-xsGM62dyQ7_UGLebChrj7IHbIPYBWDJMgVk,5741
|
|
124
|
-
omdev-0.0.0.
|
|
125
|
-
omdev-0.0.0.
|
|
126
|
-
omdev-0.0.0.
|
|
127
|
-
omdev-0.0.0.
|
|
128
|
-
omdev-0.0.0.
|
|
129
|
-
omdev-0.0.0.
|
|
124
|
+
omdev-0.0.0.dev78.dist-info/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
|
|
125
|
+
omdev-0.0.0.dev78.dist-info/METADATA,sha256=98R5viqCGLx0896u-4zH3LyIN55taK5qAQNgv2XGoQg,1492
|
|
126
|
+
omdev-0.0.0.dev78.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
|
|
127
|
+
omdev-0.0.0.dev78.dist-info/entry_points.txt,sha256=dHLXFmq5D9B8qUyhRtFqTGWGxlbx3t5ejedjrnXNYLU,33
|
|
128
|
+
omdev-0.0.0.dev78.dist-info/top_level.txt,sha256=1nr7j30fEWgLYHW3lGR9pkdHkb7knv1U1ES1XRNVQ6k,6
|
|
129
|
+
omdev-0.0.0.dev78.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|