ducktools-pythonfinder 0.7.6__tar.gz → 0.7.7__tar.gz
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.
- {ducktools_pythonfinder-0.7.6/src/ducktools_pythonfinder.egg-info → ducktools_pythonfinder-0.7.7}/PKG-INFO +1 -1
- ducktools_pythonfinder-0.7.7/src/ducktools/pythonfinder/_version.py +2 -0
- {ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/src/ducktools/pythonfinder/venv.py +9 -15
- {ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7/src/ducktools_pythonfinder.egg-info}/PKG-INFO +1 -1
- {ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/tests/test_venv_finder.py +3 -2
- ducktools_pythonfinder-0.7.6/src/ducktools/pythonfinder/_version.py +0 -2
- {ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/.gitignore +0 -0
- {ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/LICENSE +0 -0
- {ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/MANIFEST.in +0 -0
- {ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/README.md +0 -0
- {ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/pyproject.toml +0 -0
- {ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/scripts/build_zipapp.py +0 -0
- {ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/scripts/detail_this_python.py +0 -0
- {ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/scripts/list_python_venvs.py +0 -0
- {ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/scripts/print_python_versions.py +0 -0
- {ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/setup.cfg +0 -0
- {ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/src/ducktools/pythonfinder/__init__.py +0 -0
- {ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/src/ducktools/pythonfinder/__main__.py +0 -0
- {ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/src/ducktools/pythonfinder/darwin/__init__.py +0 -0
- {ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/src/ducktools/pythonfinder/details_script.py +0 -0
- {ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/src/ducktools/pythonfinder/linux/__init__.py +0 -0
- {ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/src/ducktools/pythonfinder/linux/pyenv_search.py +0 -0
- {ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/src/ducktools/pythonfinder/package_list_script.py +0 -0
- {ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/src/ducktools/pythonfinder/pythonorg_search.py +0 -0
- {ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/src/ducktools/pythonfinder/shared.py +0 -0
- {ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/src/ducktools/pythonfinder/win32/__init__.py +0 -0
- {ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/src/ducktools/pythonfinder/win32/pyenv_search.py +0 -0
- {ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/src/ducktools/pythonfinder/win32/registry_search.py +0 -0
- {ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/src/ducktools_pythonfinder.egg-info/SOURCES.txt +0 -0
- {ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/src/ducktools_pythonfinder.egg-info/dependency_links.txt +0 -0
- {ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/src/ducktools_pythonfinder.egg-info/entry_points.txt +0 -0
- {ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/src/ducktools_pythonfinder.egg-info/requires.txt +0 -0
- {ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/src/ducktools_pythonfinder.egg-info/top_level.txt +0 -0
- {ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/tests/conftest.py +0 -0
- {ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/tests/sources/python_versions.txt +0 -0
- {ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/tests/sources/release.json +0 -0
- {ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/tests/sources/release_file.json +0 -0
- {ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/tests/test_details_script.py +0 -0
- {ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/tests/test_foldersearch.py +0 -0
- {ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/tests/test_orgsearch.py +0 -0
- {ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/tests/test_pyenv.py +0 -0
- {ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/tests/test_shared.py +0 -0
- {ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/tests/test_uv_finder.py +0 -0
{ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/src/ducktools/pythonfinder/venv.py
RENAMED
|
@@ -175,27 +175,21 @@ class PythonVEnv(Prefab):
|
|
|
175
175
|
:param cfg_path: Path to a virtualenv config file
|
|
176
176
|
:return: PythonVEnv with details relative to that config file
|
|
177
177
|
"""
|
|
178
|
-
parent_path, version_str, parent_exe = None, None, None
|
|
179
178
|
venv_base = os.path.dirname(cfg_path)
|
|
180
179
|
|
|
181
180
|
with open(cfg_path, 'r') as f:
|
|
181
|
+
conf = {}
|
|
182
182
|
for line in f:
|
|
183
|
-
key, value =
|
|
183
|
+
key, _, value = [item.strip() for item in line.partition("=")]
|
|
184
|
+
conf[key] = value
|
|
184
185
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
# venv and uv use different key names :)
|
|
189
|
-
version_str = value
|
|
190
|
-
elif key == "executable":
|
|
191
|
-
parent_exe = value
|
|
186
|
+
parent_path = conf.get("home")
|
|
187
|
+
version_str = conf.get("version", conf.get("version_info"))
|
|
188
|
+
parent_exe = conf.get("executable", conf.get("base-executable"))
|
|
192
189
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
if parent_path is None or version_str is None:
|
|
197
|
-
# Not a valid venv
|
|
198
|
-
raise InvalidVEnvError(f"Path or version not defined in {cfg_path}")
|
|
190
|
+
if parent_path is None or version_str is None:
|
|
191
|
+
# Not a valid venv
|
|
192
|
+
raise InvalidVEnvError(f"Path or version not defined in {cfg_path}")
|
|
199
193
|
|
|
200
194
|
if sys.platform == "win32":
|
|
201
195
|
venv_exe = os.path.join(venv_base, "Scripts", "python.exe")
|
|
@@ -127,8 +127,9 @@ def test_found_parent(with_venvs, this_python, this_venv):
|
|
|
127
127
|
parent = venv_ex.get_parent_install()
|
|
128
128
|
assert os.path.dirname(parent.executable) == os.path.dirname(this_python.executable)
|
|
129
129
|
|
|
130
|
-
# venv
|
|
131
|
-
|
|
130
|
+
# venvs created by the venv module don't record prerelease details in the version
|
|
131
|
+
# That's not my fault that's venv!
|
|
132
|
+
assert venv_ex.version[:3] == parent.version[:3]
|
|
132
133
|
|
|
133
134
|
|
|
134
135
|
def test_found_parent_cache(with_venvs, this_python):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/scripts/print_python_versions.py
RENAMED
|
File without changes
|
|
File without changes
|
{ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/src/ducktools/pythonfinder/__init__.py
RENAMED
|
File without changes
|
{ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/src/ducktools/pythonfinder/__main__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/src/ducktools/pythonfinder/shared.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/tests/sources/python_versions.txt
RENAMED
|
File without changes
|
|
File without changes
|
{ducktools_pythonfinder-0.7.6 → ducktools_pythonfinder-0.7.7}/tests/sources/release_file.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|