python-discovery 1.1.0__py3-none-any.whl → 1.1.1__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.
- python_discovery/_cached_py_info.py +5 -2
- {python_discovery-1.1.0.dist-info → python_discovery-1.1.1.dist-info}/METADATA +2 -2
- {python_discovery-1.1.0.dist-info → python_discovery-1.1.1.dist-info}/RECORD +5 -5
- {python_discovery-1.1.0.dist-info → python_discovery-1.1.1.dist-info}/WHEEL +0 -0
- {python_discovery-1.1.0.dist-info → python_discovery-1.1.1.dist-info}/licenses/LICENSE +0 -0
|
@@ -15,7 +15,7 @@ from collections import OrderedDict
|
|
|
15
15
|
from contextlib import contextmanager
|
|
16
16
|
from pathlib import Path
|
|
17
17
|
from shlex import quote
|
|
18
|
-
from subprocess import Popen # noqa: S404
|
|
18
|
+
from subprocess import Popen, TimeoutExpired # noqa: S404
|
|
19
19
|
from typing import TYPE_CHECKING, Final
|
|
20
20
|
|
|
21
21
|
from ._cache import NoOpCache
|
|
@@ -206,8 +206,11 @@ def _run_subprocess(
|
|
|
206
206
|
encoding="utf-8",
|
|
207
207
|
errors="backslashreplace",
|
|
208
208
|
)
|
|
209
|
-
out, err = process.communicate()
|
|
209
|
+
out, err = process.communicate(timeout=5)
|
|
210
210
|
code = process.returncode
|
|
211
|
+
except TimeoutExpired:
|
|
212
|
+
process.kill()
|
|
213
|
+
out, err, code = "", "timed out", -1
|
|
211
214
|
except OSError as os_error:
|
|
212
215
|
out, err, code = "", os_error.strerror, os_error.errno
|
|
213
216
|
if code != 0:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-discovery
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.1
|
|
4
4
|
Summary: Python interpreter discovery
|
|
5
5
|
Project-URL: Changelog, https://github.com/tox-dev/python-discovery/releases
|
|
6
6
|
Project-URL: Documentation, https://python-discovery.readthedocs.io
|
|
@@ -67,5 +67,5 @@ Description-Content-Type: text/markdown
|
|
|
67
67
|
[](https://pypi.org/project/python-discovery/)
|
|
69
69
|
[](https://pepy.tech/project/python-discovery)
|
|
70
|
-
[](https://github.com/tox-dev/python-discovery/actions/workflows/check.yaml)
|
|
71
71
|
[](https://python-discovery.readthedocs.io/en/latest/?badge=latest)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
python_discovery/__init__.py,sha256=Omg3KoCm1ETlMYb9UPsxDJ7ygtFyopJUk-_ln2xrmhs,628
|
|
2
2
|
python_discovery/_cache.py,sha256=bG4fD-h2pdPmb4v9BldbXmJ5Tlt1boiH1Qrz8kp9Dds,5063
|
|
3
|
-
python_discovery/_cached_py_info.py,sha256=
|
|
3
|
+
python_discovery/_cached_py_info.py,sha256=3C41bIxq9bgrVV2XEZzn2BsOdauDaHKlMxRjwEUU1Yc,8441
|
|
4
4
|
python_discovery/_compat.py,sha256=iqxGuhK9rPaiui80G1H1KrweoMJ16gyLYEmUrSXrp5c,709
|
|
5
5
|
python_discovery/_discovery.py,sha256=yccO7GNtNuxHtmDHsyqtaASmNHFgKIeEX6Me3jX-GFs,12822
|
|
6
6
|
python_discovery/_py_info.py,sha256=KtlIMi8CT_B4G3cyXgN2uXf-ve16nqt08WApnDQK3ac,33080
|
|
@@ -10,7 +10,7 @@ python_discovery/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
10
10
|
python_discovery/_windows/__init__.py,sha256=qthcyGh36b3WkeSbZ4ECRRYLbCOCaQu5X_DRZ98tXfk,315
|
|
11
11
|
python_discovery/_windows/_pep514.py,sha256=JYSQ5tOYbSMOKtVVfOEkyYskBhEoTsImNr3DJcv7XNE,7658
|
|
12
12
|
python_discovery/_windows/_propose.py,sha256=iMJf6l0TU4SvuV8UsCHHINAe9L5dUT949xyeyMVdong,1565
|
|
13
|
-
python_discovery-1.1.
|
|
14
|
-
python_discovery-1.1.
|
|
15
|
-
python_discovery-1.1.
|
|
16
|
-
python_discovery-1.1.
|
|
13
|
+
python_discovery-1.1.1.dist-info/METADATA,sha256=1ai_-_BpIWorroopADBL99vytMc_AlfLxmh0ba_ShzE,4024
|
|
14
|
+
python_discovery-1.1.1.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
|
|
15
|
+
python_discovery-1.1.1.dist-info/licenses/LICENSE,sha256=kOJeH68qSq6o2V7o5_VziwUqGswMnFgGgQH5Mahr1Yg,1023
|
|
16
|
+
python_discovery-1.1.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|