@gnost-cli/darwin-arm64 0.5.1 → 0.5.2-rc.2
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.
- package/bundle/_internal/base_library.zip +0 -0
- package/bundle/_internal/gnost/__init__.py +1 -1
- package/bundle/_internal/gnost/cli/app.py +3 -1
- package/bundle/_internal/gnost/utils/progress.py +16 -0
- package/bundle/_internal/{gnost-0.5.1.dist-info → gnost-0.5.2rc2.dist-info}/METADATA +1 -1
- package/bundle/_internal/{gnost-0.5.1.dist-info → gnost-0.5.2rc2.dist-info}/RECORD +12 -12
- package/bundle/gnost +0 -0
- package/package.json +1 -1
- /package/bundle/_internal/{gnost-0.5.1.dist-info → gnost-0.5.2rc2.dist-info}/INSTALLER +0 -0
- /package/bundle/_internal/{gnost-0.5.1.dist-info → gnost-0.5.2rc2.dist-info}/REQUESTED +0 -0
- /package/bundle/_internal/{gnost-0.5.1.dist-info → gnost-0.5.2rc2.dist-info}/WHEEL +0 -0
- /package/bundle/_internal/{gnost-0.5.1.dist-info → gnost-0.5.2rc2.dist-info}/direct_url.json +0 -0
- /package/bundle/_internal/{gnost-0.5.1.dist-info → gnost-0.5.2rc2.dist-info}/entry_points.txt +0 -0
- /package/bundle/_internal/{gnost-0.5.1.dist-info → gnost-0.5.2rc2.dist-info}/licenses/LICENSE +0 -0
- /package/bundle/_internal/{gnost-0.5.1.dist-info → gnost-0.5.2rc2.dist-info}/top_level.txt +0 -0
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.5.
|
|
1
|
+
__version__ = "0.5.2rc2"
|
|
@@ -104,9 +104,11 @@ def _risk_to_score(risk_score: float) -> float:
|
|
|
104
104
|
|
|
105
105
|
|
|
106
106
|
def _resolve_repo_root(path: str) -> str:
|
|
107
|
+
"""Nearest parent with .git or pyproject.toml; the project folder if none."""
|
|
107
108
|
current = os.path.abspath(path)
|
|
108
109
|
if os.path.isfile(current):
|
|
109
110
|
current = os.path.dirname(current)
|
|
111
|
+
start = current
|
|
110
112
|
|
|
111
113
|
while True:
|
|
112
114
|
if os.path.isdir(os.path.join(current, ".git")) or os.path.isfile(
|
|
@@ -116,7 +118,7 @@ def _resolve_repo_root(path: str) -> str:
|
|
|
116
118
|
|
|
117
119
|
parent = os.path.dirname(current)
|
|
118
120
|
if parent == current:
|
|
119
|
-
return
|
|
121
|
+
return start
|
|
120
122
|
current = parent
|
|
121
123
|
|
|
122
124
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import threading
|
|
1
2
|
from contextlib import contextmanager
|
|
2
3
|
|
|
3
4
|
|
|
@@ -6,6 +7,20 @@ try:
|
|
|
6
7
|
except Exception:
|
|
7
8
|
tqdm = None
|
|
8
9
|
|
|
10
|
+
_lock_ready = False
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _use_thread_lock() -> None:
|
|
14
|
+
"""Keep tqdm from creating a multiprocessing lock.
|
|
15
|
+
|
|
16
|
+
That lock starts Python's resource tracker, which relaunches sys.executable.
|
|
17
|
+
In the standalone binary that is gnost itself, and it fails on the arguments.
|
|
18
|
+
"""
|
|
19
|
+
global _lock_ready
|
|
20
|
+
if not _lock_ready:
|
|
21
|
+
tqdm.set_lock(threading.RLock())
|
|
22
|
+
_lock_ready = True
|
|
23
|
+
|
|
9
24
|
|
|
10
25
|
@contextmanager
|
|
11
26
|
def progress_bar(enabled=False, total=None, desc=None):
|
|
@@ -13,6 +28,7 @@ def progress_bar(enabled=False, total=None, desc=None):
|
|
|
13
28
|
yield None
|
|
14
29
|
return
|
|
15
30
|
|
|
31
|
+
_use_thread_lock()
|
|
16
32
|
bar = tqdm(total=total, desc=desc)
|
|
17
33
|
try:
|
|
18
34
|
yield bar
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
../../../bin/gnost,sha256=p7RTDNcaheWadRtZ7EtW_BElkh_SkS2KgiiBeIZQs-M,201
|
|
2
|
-
gnost-0.5.
|
|
3
|
-
gnost-0.5.
|
|
4
|
-
gnost-0.5.
|
|
5
|
-
gnost-0.5.
|
|
6
|
-
gnost-0.5.
|
|
7
|
-
gnost-0.5.
|
|
8
|
-
gnost-0.5.
|
|
9
|
-
gnost-0.5.
|
|
10
|
-
gnost-0.5.
|
|
11
|
-
gnost/__init__.py,sha256=
|
|
2
|
+
gnost-0.5.2rc2.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
|
3
|
+
gnost-0.5.2rc2.dist-info/METADATA,sha256=GNzdemLrWgmxB3hTkX4bzQLA4WOOHkPcaSfewbou2Fg,5556
|
|
4
|
+
gnost-0.5.2rc2.dist-info/RECORD,,
|
|
5
|
+
gnost-0.5.2rc2.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
|
+
gnost-0.5.2rc2.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
7
|
+
gnost-0.5.2rc2.dist-info/direct_url.json,sha256=sdS4lLlEK3BXuZZ5mGuHUsgOlY50fNVlHD9NmMVASSc,64
|
|
8
|
+
gnost-0.5.2rc2.dist-info/entry_points.txt,sha256=6hH5dxCq1FF8sPT7gTwZ3xLBZr8UxCLTa7I6DpLvLSA,41
|
|
9
|
+
gnost-0.5.2rc2.dist-info/licenses/LICENSE,sha256=jSxVi5s4A9DSR8ur6XCzThpnbpaDxDP0_UN6hbJ156c,1066
|
|
10
|
+
gnost-0.5.2rc2.dist-info/top_level.txt,sha256=UExzNRqfi7WIWspHyv4lAZqhY9y4n46VRkVcZE5ael4,6
|
|
11
|
+
gnost/__init__.py,sha256=HtG3pxmhM9RrybwJX4CHS2qdHTEHVYggcuJtZGJa478,25
|
|
12
12
|
gnost/__pycache__/__init__.cpython-312.pyc,,
|
|
13
13
|
gnost/analysis/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
14
|
gnost/analysis/__pycache__/__init__.cpython-312.pyc,,
|
|
@@ -56,7 +56,7 @@ gnost/analysis/utils/tool_command.py,sha256=ulpYsAxySELDS5L-BIfJxS09GNXasldydSy3
|
|
|
56
56
|
gnost/cli/__init__.py,sha256=UnZHq0-yKSNcM2twPuY8J9c1H1FFBahz_37XwwHBQ4U,51
|
|
57
57
|
gnost/cli/__pycache__/__init__.cpython-312.pyc,,
|
|
58
58
|
gnost/cli/__pycache__/app.cpython-312.pyc,,
|
|
59
|
-
gnost/cli/app.py,sha256=
|
|
59
|
+
gnost/cli/app.py,sha256=f5vzabJswzSD06q0qBaTsLfVTX6Zr9Of5_jmj2R5vQg,24798
|
|
60
60
|
gnost/cli/commands/__init__.py,sha256=QZrdP00N-JGSlK4V5h-t5yz3VXFKgFcsMGoJmrAi-vM,77
|
|
61
61
|
gnost/cli/commands/__pycache__/__init__.cpython-312.pyc,,
|
|
62
62
|
gnost/cli/commands/__pycache__/analysis.cpython-312.pyc,,
|
|
@@ -175,4 +175,4 @@ gnost/utils/__pycache__/progress.cpython-312.pyc,,
|
|
|
175
175
|
gnost/utils/logger.py,sha256=zFT6xVRIiIKEnRn9ISqzVDHrXBXWlUQQX1YqU48kYgY,3107
|
|
176
176
|
gnost/utils/paths.py,sha256=3l8xisRpfM-dOWmh6L5yswFQmYFafO9MNQDnBwJwlb4,897
|
|
177
177
|
gnost/utils/printer.py,sha256=8VNObTx1brRlCYOzwozxuviqvfPIIKmBfu6S0YK6LBs,1169
|
|
178
|
-
gnost/utils/progress.py,sha256=
|
|
178
|
+
gnost/utils/progress.py,sha256=XdipbdPmC4U490Bd1DM5r52VGNGGCrue5fSKMoAqwCc,786
|
package/bundle/gnost
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/bundle/_internal/{gnost-0.5.1.dist-info → gnost-0.5.2rc2.dist-info}/direct_url.json
RENAMED
|
File without changes
|
/package/bundle/_internal/{gnost-0.5.1.dist-info → gnost-0.5.2rc2.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
/package/bundle/_internal/{gnost-0.5.1.dist-info → gnost-0.5.2rc2.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|