public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/python-pytest-env] rawhide: Update to 1.8.8 upstream release
Date: Sun, 29 Nov 2026 08:39:45 GMT	[thread overview]
Message-ID: <179594158581.1.5131673986528444595.rpms-python-pytest-env-f241492ae12a@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/python-pytest-env
            Branch : rawhide
            Commit : f241492ae12ac0a89289bfca3b31926a80169a9a
            Author : Benjamin A. Beasley <code@musicinmybrain.net>
            Date   : 2026-11-29T08:38:10+00:00
            Stats  : +139/-7 in 4 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-pytest-env/c/f241492ae12ac0a89289bfca3b31926a80169a9a?branch=rawhide

            Log:
            Update to 1.8.8 upstream release

- Resolves: rhbz#2575618
- Drop Fedora 45 workarounds since python-python-sbom isn’t available
  there due to dependencies

Upstream tag: 1.8.8
Upstream commit: b89c9274

Commit co-authored by Packit automation (https://packit.dev/)

---
diff --git a/365.patch b/365.patch
new file mode 100644
index 0000000..15fd78f
--- /dev/null
+++ b/365.patch
@@ -0,0 +1,130 @@
+From 80477e926823ba8aa647750ed8f9a4e4a4502489 Mon Sep 17 00:00:00 2001
+From: Sandro Tosi <sandro.tosi@gmail.com>
+Date: Thu, 26 Nov 2026 01:51:02 -0500
+Subject: [PATCH 1/4] =?UTF-8?q?=F0=9F=A7=AA=20test:=20restore=20inherited?=
+ =?UTF-8?q?=20PYTHONPATH=20in=20native=20env-files=20test?=
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+#290 made test_native_env_files_override_ini forward the caller's
+PYTHONPATH to its pytest subprocess; the rewrite in #308 dropped it again,
+so the subprocess can't import pytest_env.plugin when the plugin is only
+reachable through PYTHONPATH, and all 24 cases fail. Prepend the caller's
+PYTHONPATH to the scenario's value; with PYTHONPATH unset the subprocess
+environment is unchanged.
+
+Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
+---
+ tests/test_env.py | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/tests/test_env.py b/tests/test_env.py
+index 3df9460..ae08c27 100644
+--- a/tests/test_env.py
++++ b/tests/test_env.py
+@@ -1163,11 +1163,13 @@ def test_env() -> None:
+         """),
+     )
+     system_env: Final[dict[str, str]] = {key: os.environ[key] for key in ("SYSTEMROOT", "WINDIR") if key in os.environ}
++    pythonpath: Final[str] = os.pathsep.join(filter(None, (os.environ.get("PYTHONPATH"), python_env.get("PYTHONPATH"))))
+     mocker.patch.dict(
+         os.environ,
+         {
+             **system_env,
+             **python_env,
++            **({"PYTHONPATH": pythonpath} if pythonpath else {}),
+             "PYTEST_DISABLE_PLUGIN_AUTOLOAD": "1",
+             "PYTEST_PLUGINS": "pytest_env.plugin",
+         },
+
+From a03cbe30e28bad5c13a8c4045539185d4ff2ace5 Mon Sep 17 00:00:00 2001
+From: Sandro Tosi <sandro.tosi@gmail.com>
+Date: Thu, 26 Nov 2026 02:03:46 -0500
+Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=A7=AA=20test:=20forward=20PYTHONPATH?=
+ =?UTF-8?q?=20without=20a=20conditional?=
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+simplint's conditional-in-test rule rejects the conditional dict
+unpacking. Always set PYTHONPATH to the joined value instead: pytester's
+popen rebuilds PYTHONPATH with filter(None, ...), which drops an empty
+value, so the case without an inherited PYTHONPATH is unchanged.
+
+Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
+---
+ tests/test_env.py | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/tests/test_env.py b/tests/test_env.py
+index ae08c27..17d2b04 100644
+--- a/tests/test_env.py
++++ b/tests/test_env.py
+@@ -1163,13 +1163,12 @@ def test_env() -> None:
+         """),
+     )
+     system_env: Final[dict[str, str]] = {key: os.environ[key] for key in ("SYSTEMROOT", "WINDIR") if key in os.environ}
+-    pythonpath: Final[str] = os.pathsep.join(filter(None, (os.environ.get("PYTHONPATH"), python_env.get("PYTHONPATH"))))
+     mocker.patch.dict(
+         os.environ,
+         {
+             **system_env,
+             **python_env,
+-            **({"PYTHONPATH": pythonpath} if pythonpath else {}),
++            "PYTHONPATH": os.pathsep.join(filter(None, (os.environ.get("PYTHONPATH"), python_env.get("PYTHONPATH")))),
+             "PYTEST_DISABLE_PLUGIN_AUTOLOAD": "1",
+             "PYTEST_PLUGINS": "pytest_env.plugin",
+         },
+
+From b972310c220bfb23e36c11445cfbd60e0ba27423 Mon Sep 17 00:00:00 2001
+From: Sandro Tosi <sandro.tosi@gmail.com>
+Date: Thu, 26 Nov 2026 02:06:14 -0500
+Subject: [PATCH 3/4] =?UTF-8?q?=F0=9F=93=9D=20docs(changelog):=20add=20a?=
+ =?UTF-8?q?=20packaging=20fragment=20for=20the=20PYTHONPATH=20test=20fix?=
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+The news check needs a fragment or the skip news label, which only
+maintainers can apply.
+
+Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
+---
+ changelog.d/+native-env-files-pythonpath.packaging.md | 1 +
+ 1 file changed, 1 insertion(+)
+ create mode 100644 changelog.d/+native-env-files-pythonpath.packaging.md
+
+diff --git a/changelog.d/+native-env-files-pythonpath.packaging.md b/changelog.d/+native-env-files-pythonpath.packaging.md
+new file mode 100644
+index 0000000..83c4c0f
+--- /dev/null
++++ b/changelog.d/+native-env-files-pythonpath.packaging.md
+@@ -0,0 +1 @@
++Keep `test_native_env_files_override_ini` passing when packagers run the suite with the plugin only on `PYTHONPATH`.
+
+From 6ed2cb50bec6a90cb7e4eba9179ed9be510da761 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= <gaborjbernat@gmail.com>
+Date: Fri, 27 Nov 2026 12:14:00 -0800
+Subject: [PATCH 4/4] =?UTF-8?q?=F0=9F=A7=AA=20test:=20explain=20the=20forw?=
+ =?UTF-8?q?arded=20PYTHONPATH?=
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+---
+ tests/test_env.py | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/tests/test_env.py b/tests/test_env.py
+index 17d2b04..89d1abe 100644
+--- a/tests/test_env.py
++++ b/tests/test_env.py
+@@ -1168,6 +1168,7 @@ def test_env() -> None:
+         {
+             **system_env,
+             **python_env,
++            # Packagers may expose the plugin only through the caller's PYTHONPATH.
+             "PYTHONPATH": os.pathsep.join(filter(None, (os.environ.get("PYTHONPATH"), python_env.get("PYTHONPATH")))),
+             "PYTEST_DISABLE_PLUGIN_AUTOLOAD": "1",
+             "PYTEST_PLUGINS": "pytest_env.plugin",

diff --git a/README.packit b/README.packit
index 3fdb131..d2f4bee 100644
--- a/README.packit
+++ b/README.packit
@@ -1,3 +1,3 @@
 This repository is maintained by packit.
 https://packit.dev/
-The file was generated using packit 1.17.0.post1.dev6+g30c4cb512.
+The file was generated using packit 1.17.0.post1.dev7+gd5cdd2e55.

diff --git a/python-pytest-env.spec b/python-pytest-env.spec
index c6670b0..5120b5d 100644
--- a/python-pytest-env.spec
+++ b/python-pytest-env.spec
@@ -1,5 +1,5 @@
 Name:           python-pytest-env
-Version:        1.8.5
+Version:        1.8.8
 Release:        %autorelease
 Summary:        Set environment variables for pytest sessions
 
@@ -8,6 +8,10 @@ License:        MIT
 URL:            https://github.com/pytest-dev/pytest-env
 Source:         %{url}/archive/%{version}/pytest-env-%{version}.tar.gz
 
+# 🧪 test: restore inherited PYTHONPATH in native env-files test
+# https://github.com/pytest-dev/pytest-env/pull/365
+Patch:          %{url}/pull/365.patch
+
 BuildSystem:    pyproject
 BuildOption(install): --assert-license pytest_env
 
@@ -31,10 +35,6 @@ Summary:        %{summary}
 
 
 %prep -a
-# Loosen some unnecessarily aggressive version bounds
-%if %{defined fc45}
-%pyproject_patch_dependency hatchling:set_lower:1.31.0
-%endif
 # https://bugzilla.redhat.com/show_bug.cgi?id=2544657
 %pyproject_patch_dependency python-dotenv:set_lower:1.2.2
 
@@ -50,6 +50,8 @@ export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}'
 %check -a
 %pyproject_verify_license
 %pytest --verbose
+# https://github.com/pytest-dev/pytest-env/pull/365#issuecomment-7253227326
+find '%{buildroot}%{python3_sitelib}' -name '*.*-pytest-*.pyc' -print -delete
 
 
 %files -n python3-pytest-env -f %{pyproject_files}

diff --git a/sources b/sources
index 61f6c18..f95ade2 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (pytest-env-1.8.5.tar.gz) = c58602371e77c57486411677c15a144b8162919da08227d20bee7125f1f04e8ca02b4c79c0b1dc1172cb467b15e92a4faf50d5fc252bc7e950c7ad312d6243a4
+SHA512 (pytest-env-1.8.8.tar.gz) = aaf86294001446e6145e50b8c02bd0efa62a1e6052b55b4bce4f9b950991e3d8733ab53a856b5d4645969daea48cfb83faaceae503f4e0b3b7eb39a230d84c71

                 reply	other threads:[~2026-11-29  8:39 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=179594158581.1.5131673986528444595.rpms-python-pytest-env-f241492ae12a@fedoraproject.org \
    --to=code@musicinmybrain.net \
    --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