diff mbox series

[meta-python,04/18] python3-discovery: Upgrade 1.9.8 -> 1.9.9

Message ID 20261201203145.3954930-4-leon.anavi@konsulko.com
State Under Review
Headers show
Series [meta-python,01/18] python3-astroid: Upgrade 4.3.4 -> 4.4.0 | expand

Commit Message

Leon Anavi Dec. 1, 2026, 8:31 p.m. UTC
Upgrade to release 1.9.9:

Bug fixes:

- An interpreter symlink is now resolved to the real interpreter
  when the standard library beside it is owned by another user.
  Environments built from system_executable no longer load a
  standard library that another local user controls.
- DiskCache no longer takes its locks in a locks-v2 directory that
  is a symbolic link, belongs to another user, or is writable by
  others. Discovery logs a warning and queries the interpreter
  without the cache instead, so a lock directory left behind by
  another user can no longer block discovery or create lock files
  outside the cache.
- Interpreters found under a relative UV_PYTHON_INSTALL_DIR are now
  returned with absolute paths, so they still resolve after the
  working directory changes.

Security:

- A relative path spec such as ../venv/bin/python is no longer
  joined to PATH entries or searched for among uv-managed installs,
  so its .. segments can no longer run a file outside PATH.
- Discovery no longer fails with PermissionError, or misdetects
  file-system case sensitivity, when the shared temporary directory
  contains entries created by another user.
- Interpreter discovery under a non-UTF-8 locale could run and
  return a different file than the one requested. Reported paths
  are now decoded with the file system encoding of the querying
  process, and cache entries are reused only under the encoding
  they were written with.
- Resolving an environment to its base interpreter no longer
  searches a sibling of the base prefix for an interpreter, where
  another user could plant one. This happened when the
  environment's resolved directory only shares a string prefix with
  the environment, such as venv linked to venv-3.11 (#293).
- Shim resolution no longer hangs when a .python-version file in a
  parent directory is replaced by a FIFO. Version files are now
  opened without blocking and skipped unless they are regular files.

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
---
 .../{python3-discovery_1.9.8.bb => python3-discovery_1.9.9.bb}  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-discovery_1.9.8.bb => python3-discovery_1.9.9.bb} (87%)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-discovery_1.9.8.bb b/meta-python/recipes-devtools/python/python3-discovery_1.9.9.bb
similarity index 87%
rename from meta-python/recipes-devtools/python/python3-discovery_1.9.8.bb
rename to meta-python/recipes-devtools/python/python3-discovery_1.9.9.bb
index b45e64df54..7811864510 100644
--- a/meta-python/recipes-devtools/python/python3-discovery_1.9.8.bb
+++ b/meta-python/recipes-devtools/python/python3-discovery_1.9.9.bb
@@ -5,7 +5,7 @@  LIC_FILES_CHKSUM = "file://LICENSE;md5=11610a9d8fd95649cf8159be12b98cb7"
 
 PYPI_PACKAGE = "python-discovery"
 
-SRC_URI[sha256sum] = "5d66dd004e6972687438a799fa0895b7a900c1b7324a525196f1826bf7cebb03"
+SRC_URI[sha256sum] = "6dfa5a9d3bb478eaf4f4e6afe55dc8367ec4bcca61715c7f5542d3c5b2df51e8"
 
 inherit pypi python_hatchling ptest-python-pytest