python-discovery 1.3.0__py3-none-any.whl → 1.3.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.
@@ -59,6 +59,8 @@ class PythonInfo: # noqa: PLR0904
59
59
  def _init_identity(self) -> None:
60
60
  self.platform = sys.platform
61
61
  self.implementation = platform.python_implementation()
62
+ if self.implementation == "GraalVM":
63
+ self.implementation = "GraalPy"
62
64
  if self.implementation == "PyPy":
63
65
  self.pypy_version_info = tuple(sys.pypy_version_info) # ty: ignore[unresolved-attribute] # pypy only
64
66
 
@@ -77,6 +77,8 @@ def _parse_spec_pattern(string_spec: str) -> PythonSpec | None:
77
77
  impl = groups["impl"]
78
78
  if impl in {"py", "python"}:
79
79
  impl = None
80
+ if impl == "graalvm":
81
+ impl = "graalpy"
80
82
  arch = _int_or_none(groups["arch"])
81
83
  machine = groups.get("machine")
82
84
  if machine is not None:
@@ -97,6 +99,8 @@ def _parse_specifier(string_spec: str) -> PythonSpec | None:
97
99
  return None
98
100
  if impl in {"py", "python"}:
99
101
  impl = None
102
+ if impl == "graalvm":
103
+ impl = "graalpy"
100
104
  return PythonSpec(string_spec, impl, None, None, None, None, None, version_specifier=version_specifier)
101
105
 
102
106
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-discovery
3
- Version: 1.3.0
3
+ Version: 1.3.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
@@ -53,6 +53,8 @@ Requires-Dist: furo>=2025.12.19; extra == 'docs'
53
53
  Requires-Dist: sphinx-autodoc-typehints>=3.6.3; extra == 'docs'
54
54
  Requires-Dist: sphinx>=9.1; extra == 'docs'
55
55
  Requires-Dist: sphinxcontrib-mermaid>=2; extra == 'docs'
56
+ Requires-Dist: sphinxcontrib-towncrier>=0.4; extra == 'docs'
57
+ Requires-Dist: towncrier>=25.8; extra == 'docs'
56
58
  Provides-Extra: testing
57
59
  Requires-Dist: covdefaults>=2.3; extra == 'testing'
58
60
  Requires-Dist: coverage>=7.5.4; extra == 'testing'
@@ -3,14 +3,14 @@ python_discovery/_cache.py,sha256=bG4fD-h2pdPmb4v9BldbXmJ5Tlt1boiH1Qrz8kp9Dds,50
3
3
  python_discovery/_cached_py_info.py,sha256=1AFEoc_-OaCi1PXmaFz9Iy_bEuqOhJdFSDFHljzD-EE,8540
4
4
  python_discovery/_compat.py,sha256=iqxGuhK9rPaiui80G1H1KrweoMJ16gyLYEmUrSXrp5c,709
5
5
  python_discovery/_discovery.py,sha256=tlcmGDsOL8zitSSQSws9cXYt6MKT6ENiVtfAjQBzBtw,16820
6
- python_discovery/_py_info.py,sha256=MLDQJbqamOdVev9_OH1b-DcQqTJR0h3RA3dHyB-bAgM,34446
7
- python_discovery/_py_spec.py,sha256=rmABAbCh0oZ48uLT-2TfOj8GDQu5rmNBIa5dq5vaNCc,10305
6
+ python_discovery/_py_info.py,sha256=Z6wFPjiQTxiAWMxguWKw-iP7oTurGcT3pKDpL8I3imc,34535
7
+ python_discovery/_py_spec.py,sha256=apFN9Eux4BPMLE2LWd9WBCS3XbM7zu7H9V1-iIBpa6I,10407
8
8
  python_discovery/_specifier.py,sha256=PTh6suNTC0hMnFSxFYF_vggdciFLnwxoh1YflSbgCXA,10368
9
9
  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.3.0.dist-info/METADATA,sha256=0an9XeuI3H011i75sO0571tS0rmyOG28Q66WajKbIJQ,5483
14
- python_discovery-1.3.0.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
15
- python_discovery-1.3.0.dist-info/licenses/LICENSE,sha256=kOJeH68qSq6o2V7o5_VziwUqGswMnFgGgQH5Mahr1Yg,1023
16
- python_discovery-1.3.0.dist-info/RECORD,,
13
+ python_discovery-1.3.1.dist-info/METADATA,sha256=1NNrmgsOvtUf7FM3R7Al-ByD1bo4s3WQ5UtkWeYv-lw,5592
14
+ python_discovery-1.3.1.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
15
+ python_discovery-1.3.1.dist-info/licenses/LICENSE,sha256=kOJeH68qSq6o2V7o5_VziwUqGswMnFgGgQH5Mahr1Yg,1023
16
+ python_discovery-1.3.1.dist-info/RECORD,,