omlish 0.0.0.dev458__py3-none-any.whl → 0.0.0.dev460__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 +3 -3
- omlish/diag/pydevd.py +23 -1
- omlish/lang/imports/_capture.cc +5 -4
- omlish/lang/imports/capture.py +361 -170
- omlish/lang/imports/proxy.py +445 -152
- omlish/lang/lazyglobals.py +22 -9
- omlish/term/vt100/terminal.py +0 -3
- {omlish-0.0.0.dev458.dist-info → omlish-0.0.0.dev460.dist-info}/METADATA +3 -3
- {omlish-0.0.0.dev458.dist-info → omlish-0.0.0.dev460.dist-info}/RECORD +13 -13
- {omlish-0.0.0.dev458.dist-info → omlish-0.0.0.dev460.dist-info}/WHEEL +0 -0
- {omlish-0.0.0.dev458.dist-info → omlish-0.0.0.dev460.dist-info}/entry_points.txt +0 -0
- {omlish-0.0.0.dev458.dist-info → omlish-0.0.0.dev460.dist-info}/licenses/LICENSE +0 -0
- {omlish-0.0.0.dev458.dist-info → omlish-0.0.0.dev460.dist-info}/top_level.txt +0 -0
omlish/__about__.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
__version__ = '0.0.0.
|
2
|
-
__revision__ = '
|
1
|
+
__version__ = '0.0.0.dev460'
|
2
|
+
__revision__ = 'e37de6bf186be6d30e6b4de285fa5b4350e2f84e'
|
3
3
|
|
4
4
|
|
5
5
|
#
|
@@ -83,7 +83,7 @@ class Project(ProjectBase):
|
|
83
83
|
],
|
84
84
|
|
85
85
|
'secrets': [
|
86
|
-
'cryptography ~=
|
86
|
+
'cryptography ~= 46.0',
|
87
87
|
],
|
88
88
|
|
89
89
|
'sqlalchemy': [
|
omlish/diag/pydevd.py
CHANGED
@@ -6,7 +6,7 @@ an already-debugging PyCharm instance to debug PySpark jobs.
|
|
6
6
|
TODO:
|
7
7
|
- https://www.jetbrains.com/help/pycharm/remote-debugging-with-product.html#
|
8
8
|
|
9
|
-
|
9
|
+
====
|
10
10
|
|
11
11
|
https://www.jetbrains.com/help/pycharm/remote-debugging-with-product.html#remote-debug-config ->
|
12
12
|
|
@@ -25,6 +25,28 @@ buf = textwrap.dedent(f'''
|
|
25
25
|
stderrToServer=True,
|
26
26
|
)
|
27
27
|
''') + '\n' * 2 + buf
|
28
|
+
|
29
|
+
====
|
30
|
+
|
31
|
+
TODO: monkeypatch:
|
32
|
+
|
33
|
+
/Applications/PyCharm.app/Contents/plugins/python-ce/helpers/pydev/_pydev_bundle/pydev_monkey.py ::
|
34
|
+
|
35
|
+
def starts_with_python_shebang(path):
|
36
|
+
try:
|
37
|
+
with open(path) as f:
|
38
|
+
for line in f:
|
39
|
+
line = line.strip()
|
40
|
+
if line:
|
41
|
+
for name in PYTHON_NAMES:
|
42
|
+
if line.startswith('#!/usr/bin/env %s' % name):
|
43
|
+
return True
|
44
|
+
return False
|
45
|
+
except (UnicodeDecodeError, IsADirectoryError): # <-- Add catch for `IsADirectoryError`
|
46
|
+
return False
|
47
|
+
except:
|
48
|
+
traceback.print_exc()
|
49
|
+
return False
|
28
50
|
"""
|
29
51
|
import json
|
30
52
|
import os
|
omlish/lang/imports/_capture.cc
CHANGED
@@ -5,6 +5,9 @@
|
|
5
5
|
#define Py_BUILD_CORE 1
|
6
6
|
#include "Python.h"
|
7
7
|
#include "internal/pycore_frame.h"
|
8
|
+
#if PY_VERSION_HEX >= 0x030E0000
|
9
|
+
#include "internal/pycore_interpframe.h"
|
10
|
+
#endif
|
8
11
|
#undef Py_BUILD_CORE
|
9
12
|
|
10
13
|
#if PY_VERSION_HEX < 0x030D0000
|
@@ -50,14 +53,12 @@ _set_frame_builtins(PyObject *self, PyObject *args)
|
|
50
53
|
|
51
54
|
std::atomic_ref<PyObject*> builtins_ref(iframe->f_builtins);
|
52
55
|
PyObject* expected = old_builtins;
|
53
|
-
|
56
|
+
if (builtins_ref.compare_exchange_strong(
|
54
57
|
expected,
|
55
58
|
new_builtins,
|
56
59
|
std::memory_order_acq_rel,
|
57
60
|
std::memory_order_acquire
|
58
|
-
)
|
59
|
-
|
60
|
-
if (success) {
|
61
|
+
)) {
|
61
62
|
Py_RETURN_TRUE;
|
62
63
|
} else {
|
63
64
|
Py_RETURN_FALSE;
|