public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Lumir Balhar <lbalhar@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-virtualenv] rawhide: Update to 21.15.6 (rhbz#2554600)
Date: Tue, 24 Nov 2026 10:30:41 GMT	[thread overview]
Message-ID: <179551624173.1.6445759056450861190.rpms-python-virtualenv-a5d977ae19c0@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/python-virtualenv
            Branch : rawhide
            Commit : a5d977ae19c08906a47830cfa13b2cac91cfe32a
            Author : Lumir Balhar <lbalhar@redhat.com>
            Date   : 2026-11-24T09:43:40+01:00
            Stats  : +75/-36 in 4 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-virtualenv/c/a5d977ae19c08906a47830cfa13b2cac91cfe32a?branch=rawhide

            Log:
            Update to 21.15.6 (rhbz#2554600)

Assisted-By: Claude

---
diff --git a/python-virtualenv.spec b/python-virtualenv.spec
index a749dd0..eeaf8ae 100644
--- a/python-virtualenv.spec
+++ b/python-virtualenv.spec
@@ -2,7 +2,7 @@
 %bcond tests %{without bootstrap}
 
 Name:           python-virtualenv
-Version:        21.14.8
+Version:        21.15.6
 Release:        %autorelease
 Summary:        Tool to create isolated Python environments
 
@@ -114,18 +114,41 @@ sed -i 's/filelock>=3.24.2/filelock>=3.12.2/' pyproject.toml
 # - test_download_*
 # - test_can_build_c_extensions
 # - test_create_distutils_cfg
-# Uses disabled functionalities around bundled wheels:
+# Uses disabled functionalities around bundled/embedded wheels:
+# (these all need the --pip embed seeder or the embedded wheels which we remove)
 # - test_wheel_*
 # - test_embed_wheel_*
-# - test_seed_link_via_app_data
 # - test_base_bootstrap_via_pip_invoke
 # - test_acquire.py (whole file)
 # - test_bundle.py (whole file)
+# - test_creator_replaces_generated_file_links (uses --pip embed)
+# In tests/unit/seed/embed/test_bootstrap_link_via_app_data.py,
+# only the embed-wheel cases:
+# - test_seed_link_via_app_data (indexes the now-empty BUNDLE_SUPPORT)
+# - test_console_script_preserves_interpreter_path
+# - test_pip_launcher_record_matches_contents
+# - test_seed_image_build_direct_call, test_seed_image_build_replaces_leftovers
+# - test_seed_metadata_* (cleanup/keeps_reseeding/unlinks_symlink)
+# - test_symlink_seed_* (compiles/reports_compilation_failure)
+# In tests/unit/seed/embed/test_pip_invoke.py, only the embed-wheel cases:
+# - test_pip_invoke_uses_selected_wheel, test_pip_invoke_freeze_uses_version_pin
+# - test_pip_reseed_installs_local_package, test_pip_reseed_keeps_*,
+#   test_pip_reseed_replaces_*, test_pip_reseed_removes_previous_version_metadata,
+#   test_pip_reseed_reports_process_failure
 # Uses disabled functionalities around automatic updates:
 # - test_periodic_update.py (whole file)
 # We don't run the tests in an active virtual environment
 # https://github.com/pypa/virtualenv/issues/2939#issuecomment-3384554583
 # - test_py_info_cache_clear
+# Fedora specifics (like unbundled discovery) make these fail:
+# - test_module_entry_from_target_install builds a self-contained copy of
+#   virtualenv plus its dependencies from each distribution's metadata and runs
+#   it; in the Fedora build root the copy can't import its deps (the child dies
+#   with "ModuleNotFoundError: No module named 'platformdirs'").
+# - test_module_entry_removes_implicit_directory expects "python -m virtualenv"
+#   to strip the implicit sys.path[0]; the Fedora pytest entry point runs under a
+#   "-P" (safe path) shebang, so sys.flags.safe_path is True and virtualenv
+#   intentionally keeps sys.path[0] in that case.
 PIP_CERT=/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem \
 %pytest -vv -k "not test_bundle and \
                 not test_acquire and \
@@ -136,9 +159,25 @@ PIP_CERT=/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem \
                 not test_download_ and \
                 not test_can_build_c_extensions and \
                 not test_base_bootstrap_via_pip_invoke and \
-                not test_seed_link_via_app_data and \
                 not test_py_info_cache_clear and \
-                not test_create_distutils_cfg"
+                not test_create_distutils_cfg and \
+                not test_creator_replaces_generated_file_links and \
+                not test_seed_link_via_app_data and \
+                not test_console_script_preserves_interpreter_path and \
+                not test_pip_launcher_record_matches_contents and \
+                not test_seed_image_build_direct_call and \
+                not test_seed_image_build_replaces_leftovers and \
+                not test_seed_metadata_ and \
+                not test_symlink_seed_ and \
+                not test_pip_invoke_uses_selected_wheel and \
+                not test_pip_invoke_freeze_uses_version_pin and \
+                not test_pip_reseed_installs_local_package and \
+                not test_pip_reseed_keeps_ and \
+                not test_pip_reseed_replaces_ and \
+                not test_pip_reseed_removes_previous_version_metadata and \
+                not test_pip_reseed_reports_process_failure and \
+                not test_module_entry_from_target_install and \
+                not test_module_entry_removes_implicit_directory"
 %endif
 
 %files -n python3-virtualenv -f %{pyproject_files}

diff --git a/python3.6.patch b/python3.6.patch
index c614a27..d9b6353 100644
--- a/python3.6.patch
+++ b/python3.6.patch
@@ -1,4 +1,4 @@
-From a20686de6683ecf9664834fc848da593a6477254 Mon Sep 17 00:00:00 2001
+From 0509d302facefcdd1e27ffa3afa09a4bd1893a90 Mon Sep 17 00:00:00 2001
 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
 Date: Fri, 9 Jan 2026 11:52:40 +0100
 Subject: [PATCH] Restore support for Python 3.6 virtual environments
@@ -12,7 +12,7 @@ It's only tested on Fedora CI, not in %check.
  2 files changed, 4 insertions(+), 14 deletions(-)
 
 diff --git a/src/virtualenv/create/via_global_ref/_virtualenv.py b/src/virtualenv/create/via_global_ref/_virtualenv.py
-index c5b5fa6..fe843aa 100644
+index 970c260..f336800 100644
 --- a/src/virtualenv/create/via_global_ref/_virtualenv.py
 +++ b/src/virtualenv/create/via_global_ref/_virtualenv.py
 @@ -1,21 +1,13 @@
@@ -35,10 +35,10 @@ index c5b5fa6..fe843aa 100644
  
 -def patch_dist(dist: types.ModuleType) -> None:
 +def patch_dist(dist) -> None:
-     """Distutils allows user to configure some arguments via a configuration file: https://docs.python.org/3/install/index.html#distutils-configuration-files.
- 
-     Some of this arguments though don't make sense in context of the virtual environment files, let's fix them up.
-@@ -55,7 +47,7 @@ class _Finder:
+     # distutils reads install options from configuration files, and some would install packages outside of the virtual
+     # environment: https://docs.python.org/3.11/install/index.html#distutils-configuration-files
+     old_parse_config_files = dist.Distribution.parse_config_files
+@@ -51,7 +43,7 @@ class _Finder:
      # See https://github.com/pypa/virtualenv/issues/1895 for details.
      lock = []  # ruff:ignore[mutable-class-default]
  
@@ -47,7 +47,7 @@ index c5b5fa6..fe843aa 100644
          # Guard against race conditions during file rewrite by checking if _DISTUTILS_PATCH is defined.
          # This can happen when the file is being overwritten while it's being imported by another process.
          # See https://github.com/pypa/virtualenv/issues/2969 for details.
-@@ -90,7 +82,7 @@ class _Finder:
+@@ -86,7 +78,7 @@ class _Finder:
                      return self._patch_spec(spec, partial)
          return None
  
@@ -56,7 +56,7 @@ index c5b5fa6..fe843aa 100644
          old = getattr(spec.loader, "exec_module", None)
          if old is not None and old is not self.exec_module:
              try:  # ruff:ignore[suppressible-exception]
-@@ -100,7 +92,7 @@ class _Finder:
+@@ -96,7 +88,7 @@ class _Finder:
          return spec
  
      @staticmethod
@@ -78,5 +78,5 @@ index 5115865..fc5c4c6 100644
  
  __all__ = [
 -- 
-2.55.0
+2.56.0
 

diff --git a/rpm-wheels.patch b/rpm-wheels.patch
index a531d86..23ca227 100644
--- a/rpm-wheels.patch
+++ b/rpm-wheels.patch
@@ -1,4 +1,4 @@
-From b94d3ee5c1fa304098748275ad10c6c62d574604 Mon Sep 17 00:00:00 2001
+From 4cc2d01628401bd6f8af66c7c55c4cf322bfcbad Mon Sep 17 00:00:00 2001
 From: Lumir Balhar <lbalhar@redhat.com>
 Date: Thu, 23 Apr 2026 07:38:31 +0200
 Subject: [PATCH] RPM wheels
@@ -19,10 +19,10 @@ Co-Authored-By: Miro Hrončok <miro@hroncok.cz>
  create mode 100644 src/virtualenv/util/path/_system_wheels.py
 
 diff --git a/src/virtualenv/run/__init__.py b/src/virtualenv/run/__init__.py
-index 9788ebd..d424406 100644
+index 2db24f2..787bb05 100644
 --- a/src/virtualenv/run/__init__.py
 +++ b/src/virtualenv/run/__init__.py
-@@ -125,8 +125,9 @@ def build_parser_only(args: list[str] | None = None) -> VirtualEnvConfigParser:
+@@ -150,8 +150,9 @@ def build_parser_only(args: list[str] | None = None) -> VirtualEnvConfigParser:
  
  def handle_extra_commands(options: VirtualEnvOptions) -> None:
      if options.upgrade_embed_wheels:
@@ -35,10 +35,10 @@ index 9788ebd..d424406 100644
  
  def load_app_data(
 diff --git a/src/virtualenv/seed/embed/base_embed.py b/src/virtualenv/seed/embed/base_embed.py
-index 65c2f4e..52507e4 100644
+index 5d30b1c..78259c9 100644
 --- a/src/virtualenv/seed/embed/base_embed.py
 +++ b/src/virtualenv/seed/embed/base_embed.py
-@@ -9,6 +9,7 @@ from typing import TYPE_CHECKING
+@@ -10,6 +10,7 @@ from virtualenv.config.cli.parser import ExtendAction
  from virtualenv.seed.seeder import Seeder
  from virtualenv.seed.wheels import Version
  from virtualenv.seed.wheels.embed import MIN, OLDEST_SUPPORTED
@@ -46,7 +46,7 @@ index 65c2f4e..52507e4 100644
  
  if TYPE_CHECKING:
      from argparse import ArgumentParser
-@@ -19,7 +20,7 @@ if TYPE_CHECKING:
+@@ -20,7 +21,7 @@ if TYPE_CHECKING:
      from virtualenv.config.cli.parser import VirtualEnvOptions
  
  LOGGER = logging.getLogger(__name__)
@@ -55,7 +55,7 @@ index 65c2f4e..52507e4 100644
  
  
  class BaseEmbed(Seeder, ABC):
-@@ -50,6 +51,15 @@ class BaseEmbed(Seeder, ABC):
+@@ -51,6 +52,15 @@ class BaseEmbed(Seeder, ABC):
  
          if not self.distribution_to_versions():
              self.enabled = False
@@ -71,7 +71,7 @@ index 65c2f4e..52507e4 100644
  
      @classmethod
      def distributions(cls) -> dict[str, str]:
-@@ -79,6 +89,7 @@ class BaseEmbed(Seeder, ABC):
+@@ -80,6 +90,7 @@ class BaseEmbed(Seeder, ABC):
              the remedies
  
          """
@@ -79,7 +79,7 @@ index 65c2f4e..52507e4 100644
          if interpreter.version_info[:2] >= OLDEST_SUPPORTED:
              return None
          target = f"{interpreter.version_info.major}.{interpreter.version_info.minor}"
-@@ -163,6 +174,10 @@ class BaseEmbed(Seeder, ABC):
+@@ -166,6 +177,10 @@ class BaseEmbed(Seeder, ABC):
              result += f" {distribution}{ver},"
          return result[:-1] + ")"
  
@@ -88,25 +88,25 @@ index 65c2f4e..52507e4 100644
 +        self.extra_search_dir = list(system_wheels_paths) + self.extra_search_dir
 +
  
- __all__ = [
-     "BaseEmbed",
+ def _seed_version(value: str) -> str:
+     try:
 diff --git a/src/virtualenv/seed/embed/pip_invoke.py b/src/virtualenv/seed/embed/pip_invoke.py
-index fb44229..d516697 100644
+index 5701596..f7ca593 100644
 --- a/src/virtualenv/seed/embed/pip_invoke.py
 +++ b/src/virtualenv/seed/embed/pip_invoke.py
-@@ -26,6 +26,7 @@ class PipInvoke(BaseEmbed):
+@@ -39,6 +39,7 @@ class PipInvoke(BaseEmbed):
      def run(self, creator: Creator) -> None:
          if not self.enabled:
              return
 +        self.insert_system_wheels_paths(creator)
-         for_py_version = creator.interpreter.version_release_str
-         with self.get_pip_install_cmd(creator.exe, for_py_version) as cmd:
-             env = pip_wheel_env_run(self.extra_search_dir, self.app_data, self.env)
+         with self.get_pip_install_cmd(creator.exe, creator.interpreter.version_release_str) as cmd:
+             self._detach_links(creator)
+             self._execute(cmd, pip_wheel_env_run(self.extra_search_dir, self.app_data, self.env))
 diff --git a/src/virtualenv/seed/embed/via_app_data/via_app_data.py b/src/virtualenv/seed/embed/via_app_data/via_app_data.py
-index 48f2767..8c02fac 100644
+index e1ef7ac..5c0128f 100644
 --- a/src/virtualenv/seed/embed/via_app_data/via_app_data.py
 +++ b/src/virtualenv/seed/embed/via_app_data/via_app_data.py
-@@ -56,6 +56,7 @@ class FromAppData(BaseEmbed):
+@@ -65,6 +65,7 @@ class FromAppData(BaseEmbed):
      def run(self, creator: Creator) -> None:
          if not self.enabled:
              return
@@ -115,10 +115,10 @@ index 48f2767..8c02fac 100644
              pip_version = name_to_whl["pip"].version_tuple if "pip" in name_to_whl else None
              installer_class = self.installer_class(pip_version)
 diff --git a/src/virtualenv/seed/wheels/acquire.py b/src/virtualenv/seed/wheels/acquire.py
-index bd42796..9ba60d6 100644
+index c82c735..ec2a012 100644
 --- a/src/virtualenv/seed/wheels/acquire.py
 +++ b/src/virtualenv/seed/wheels/acquire.py
-@@ -83,12 +83,13 @@ def get_wheel(  # ruff:ignore[too-many-arguments]
+@@ -77,12 +77,13 @@ def get_wheel(  # ruff:ignore[too-many-arguments]
  
      if download and wheel is None and version != Version.embed:
          # 2. download from the internet
@@ -134,7 +134,7 @@ index bd42796..9ba60d6 100644
                  to_folder=app_data.house,
                  env=env,
 diff --git a/src/virtualenv/seed/wheels/embed/__init__.py b/src/virtualenv/seed/wheels/embed/__init__.py
-index 1d8be73..c5c8cae 100644
+index 5558ddd..617aa5d 100644
 --- a/src/virtualenv/seed/wheels/embed/__init__.py
 +++ b/src/virtualenv/seed/wheels/embed/__init__.py
 @@ -53,6 +53,9 @@ def _release_tuple(version: str) -> tuple[int, ...]:

diff --git a/sources b/sources
index 8365fd4..41fdadd 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (virtualenv-21.14.8.tar.gz) = 2819b57c96132fdd81ef99e5a8963845d35b45a057e47e7bbfa0f9c985c0ceb7998845eb78cbf0e8803b47a81396a9f147f8f212df0f6c5a05a3c6b9bb459da1
+SHA512 (virtualenv-21.15.6.tar.gz) = b255892d595047d06b7853d02188b969d77e05528d507aa9fa4b66731a367709e8b2b8774592f2c474830c49a65dae6e81049b77eca7fc909fafab20fb14bec5

                 reply	other threads:[~2026-11-24 10:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179551624173.1.6445759056450861190.rpms-python-virtualenv-a5d977ae19c0@fedoraproject.org \
    --to=lbalhar@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox