@gnost-cli/darwin-arm64 0.5.1 → 0.5.2-rc.1

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.
Binary file
@@ -1 +1 @@
1
- __version__ = "0.5.1"
1
+ __version__ = "0.5.2rc1"
@@ -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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gnost
3
- Version: 0.5.1
3
+ Version: 0.5.2rc1
4
4
  Summary: GNOST — Codebase Knowledge
5
5
  Author-email: Mohd Zain <zainmohd1998@gmail.com>
6
6
  License: MIT License
@@ -1,14 +1,14 @@
1
1
  ../../../bin/gnost,sha256=p7RTDNcaheWadRtZ7EtW_BElkh_SkS2KgiiBeIZQs-M,201
2
- gnost-0.5.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
3
- gnost-0.5.1.dist-info/METADATA,sha256=Y-IjskZL0c0CNVQnG_JKtRSKGcFGdN4rRp7T80bYUHE,5553
4
- gnost-0.5.1.dist-info/RECORD,,
5
- gnost-0.5.1.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- gnost-0.5.1.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
7
- gnost-0.5.1.dist-info/direct_url.json,sha256=sdS4lLlEK3BXuZZ5mGuHUsgOlY50fNVlHD9NmMVASSc,64
8
- gnost-0.5.1.dist-info/entry_points.txt,sha256=6hH5dxCq1FF8sPT7gTwZ3xLBZr8UxCLTa7I6DpLvLSA,41
9
- gnost-0.5.1.dist-info/licenses/LICENSE,sha256=jSxVi5s4A9DSR8ur6XCzThpnbpaDxDP0_UN6hbJ156c,1066
10
- gnost-0.5.1.dist-info/top_level.txt,sha256=UExzNRqfi7WIWspHyv4lAZqhY9y4n46VRkVcZE5ael4,6
11
- gnost/__init__.py,sha256=eZ1bOun1DDVV0YLOBW4wj2FP1ajReLjbIrGmzN7ASBw,22
2
+ gnost-0.5.2rc1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
3
+ gnost-0.5.2rc1.dist-info/METADATA,sha256=yae5HhysGOx3B6-fDCrkERgDvc7FhDFKEXf5pUesvbI,5556
4
+ gnost-0.5.2rc1.dist-info/RECORD,,
5
+ gnost-0.5.2rc1.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ gnost-0.5.2rc1.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
7
+ gnost-0.5.2rc1.dist-info/direct_url.json,sha256=sdS4lLlEK3BXuZZ5mGuHUsgOlY50fNVlHD9NmMVASSc,64
8
+ gnost-0.5.2rc1.dist-info/entry_points.txt,sha256=6hH5dxCq1FF8sPT7gTwZ3xLBZr8UxCLTa7I6DpLvLSA,41
9
+ gnost-0.5.2rc1.dist-info/licenses/LICENSE,sha256=jSxVi5s4A9DSR8ur6XCzThpnbpaDxDP0_UN6hbJ156c,1066
10
+ gnost-0.5.2rc1.dist-info/top_level.txt,sha256=UExzNRqfi7WIWspHyv4lAZqhY9y4n46VRkVcZE5ael4,6
11
+ gnost/__init__.py,sha256=Yk9OPhzYNwVtFzj5deHSdkGtcxF0FXLnKJ9OFFikW9M,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,,
@@ -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=UAgnYVU7a9Fov_yotcVI4CgsEBnLC9UtBpyg8U2jJKo,349
178
+ gnost/utils/progress.py,sha256=XdipbdPmC4U490Bd1DM5r52VGNGGCrue5fSKMoAqwCc,786
package/bundle/gnost CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gnost-cli/darwin-arm64",
3
- "version": "0.5.1",
3
+ "version": "0.5.2-rc.1",
4
4
  "description": "Internal binary for gnost-cli. Do not install directly.",
5
5
  "license": "MIT",
6
6
  "os": [