python-discovery 1.7.0__py3-none-any.whl → 1.8.0__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/_py_info.py +1 -0
- python_discovery/_py_info_collect.py +24 -0
- {python_discovery-1.7.0.dist-info → python_discovery-1.8.0.dist-info}/METADATA +1 -1
- {python_discovery-1.7.0.dist-info → python_discovery-1.8.0.dist-info}/RECORD +6 -6
- {python_discovery-1.7.0.dist-info → python_discovery-1.8.0.dist-info}/WHEEL +0 -0
- {python_discovery-1.7.0.dist-info → python_discovery-1.8.0.dist-info}/licenses/LICENSE +0 -0
python_discovery/_py_info.py
CHANGED
|
@@ -64,6 +64,30 @@ class PythonInfoCollector:
|
|
|
64
64
|
self.os = os.name
|
|
65
65
|
self.free_threaded = sysconfig.get_config_var("Py_GIL_DISABLED") == 1
|
|
66
66
|
self.debug_build = bool(sysconfig.get_config_var("Py_DEBUG"))
|
|
67
|
+
# Vermin checks the whole script against Python 2.7 despite the version gate above.
|
|
68
|
+
interpreter = getattr(sys, "implementation") # ruff:ignore[get-attr-with-constant]
|
|
69
|
+
interpreter_version = interpreter.version
|
|
70
|
+
marker_version = "{}.{}.{}{}".format(
|
|
71
|
+
interpreter_version.major,
|
|
72
|
+
interpreter_version.minor,
|
|
73
|
+
interpreter_version.micro,
|
|
74
|
+
"{}{}".format(interpreter_version.releaselevel[0], interpreter_version.serial)
|
|
75
|
+
if interpreter_version.releaselevel != "final"
|
|
76
|
+
else "",
|
|
77
|
+
)
|
|
78
|
+
self.marker_environment = {
|
|
79
|
+
"implementation_name": interpreter.name,
|
|
80
|
+
"implementation_version": marker_version,
|
|
81
|
+
"os_name": os.name,
|
|
82
|
+
"platform_machine": platform.machine(),
|
|
83
|
+
"platform_release": platform.release(),
|
|
84
|
+
"platform_system": platform.system(),
|
|
85
|
+
"platform_version": platform.version(),
|
|
86
|
+
"python_full_version": platform.python_version(),
|
|
87
|
+
"platform_python_implementation": platform.python_implementation(),
|
|
88
|
+
"python_version": ".".join(platform.python_version_tuple()[:2]),
|
|
89
|
+
"sys_platform": sys.platform,
|
|
90
|
+
}
|
|
67
91
|
|
|
68
92
|
def _init_prefixes(self):
|
|
69
93
|
def abs_path(value):
|
|
@@ -3,15 +3,15 @@ python_discovery/_cache.py,sha256=svmG2GzUQzd2xTjAbm2eX1CKxxGAglfv4kxaPuxwPIA,51
|
|
|
3
3
|
python_discovery/_cached_py_info.py,sha256=15P5_TODxkZCkNfD2Uk5dtPxGf0Nea_aWm2N7uY9zbY,12059
|
|
4
4
|
python_discovery/_compat.py,sha256=iqxGuhK9rPaiui80G1H1KrweoMJ16gyLYEmUrSXrp5c,709
|
|
5
5
|
python_discovery/_discovery.py,sha256=Ulq3gbOrCvVULengzFF20yrDwGYCj3xs86CGqF2LThc,23212
|
|
6
|
-
python_discovery/_py_info.py,sha256=
|
|
7
|
-
python_discovery/_py_info_collect.py,sha256=
|
|
6
|
+
python_discovery/_py_info.py,sha256=iCmE5rv-B9yGpSmaSeZx2RF1x5FCf3ezarsHnMpT6JA,27004
|
|
7
|
+
python_discovery/_py_info_collect.py,sha256=k9P4JzNkvW9iw37teeu7L6Y27ytWTnvWiK47B3gm5xg,17390
|
|
8
8
|
python_discovery/_py_spec.py,sha256=14WRyDOLEQt7COevcUU5Rb6sgy99l9XI5XEQRUtCHf8,11800
|
|
9
9
|
python_discovery/_specifier.py,sha256=9sMnJs7FTfIIduTCKKTA7Lk7onARqwkG_zzFIqgj0xs,10364
|
|
10
10
|
python_discovery/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
11
|
python_discovery/_windows/__init__.py,sha256=qthcyGh36b3WkeSbZ4ECRRYLbCOCaQu5X_DRZ98tXfk,315
|
|
12
12
|
python_discovery/_windows/_pep514.py,sha256=Vhxe-3hETFIXQrekLqOHmzG5eq5moeR8b0dCS80zbBg,8026
|
|
13
13
|
python_discovery/_windows/_propose.py,sha256=EE-N-BiNgrFU9mQ34SkoF5gRaNjtspghssQxT9uRQi0,1756
|
|
14
|
-
python_discovery-1.
|
|
15
|
-
python_discovery-1.
|
|
16
|
-
python_discovery-1.
|
|
17
|
-
python_discovery-1.
|
|
14
|
+
python_discovery-1.8.0.dist-info/METADATA,sha256=USw0gc2rwC_fdUMXfh3bWhnDQ7imwPM8uDeyYo8e16M,3937
|
|
15
|
+
python_discovery-1.8.0.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
|
|
16
|
+
python_discovery-1.8.0.dist-info/licenses/LICENSE,sha256=kOJeH68qSq6o2V7o5_VziwUqGswMnFgGgQH5Mahr1Yg,1023
|
|
17
|
+
python_discovery-1.8.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|