Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-nox for openSUSE:Factory checked in at 2024-12-20 15:27:28 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-nox (Old) and /work/SRC/openSUSE:Factory/.python-nox.new.1881 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-nox" Fri Dec 20 15:27:28 2024 rev:11 rq:1232725 version:2024.10.9 Changes: -------- --- /work/SRC/openSUSE:Factory/python-nox/python-nox.changes 2024-10-24 15:44:28.220397351 +0200 +++ /work/SRC/openSUSE:Factory/.python-nox.new.1881/python-nox.changes 2024-12-20 15:27:58.669489859 +0100 @@ -1,0 +2,6 @@ +Thu Dec 19 15:26:17 UTC 2024 - Nico Krapp <[email protected]> + +- Add missing requirements +- Add fix-broken-mock-test.patch to fix testsuite + +------------------------------------------------------------------- New: ---- fix-broken-mock-test.patch BETA DEBUG BEGIN: New:- Add missing requirements - Add fix-broken-mock-test.patch to fix testsuite BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-nox.spec ++++++ --- /var/tmp/diff_new_pack.keqamw/_old 2024-12-20 15:28:00.033546064 +0100 +++ /var/tmp/diff_new_pack.keqamw/_new 2024-12-20 15:28:00.033546064 +0100 @@ -25,7 +25,9 @@ License: Apache-2.0 URL: https://nox.thea.codes Source: https://github.com/wntrblm/nox/archive/refs/tags/%{padded_version}.tar.gz#/nox-%{version}.tar.gz -BuildRequires: %{python_module base >= 3.5} +# PATCH-FIX-UPSTREAM fix-broken-mock-test.patch (gh#28bbaa5) +Patch0: fix-broken-mock-test.patch +BuildRequires: %{python_module base >= 3.8} BuildRequires: %{python_module hatchling} BuildRequires: %{python_module pip} BuildRequires: %{python_module wheel} @@ -34,8 +36,8 @@ BuildRequires: python-rpm-macros Requires: python-argcomplete >= 1.9.4 Requires: python-colorlog >= 2.6.1 -Requires: python-setuptools Requires: python-virtualenv >= 14.0.0 +Requires: (python-tomli if python-base < 3.11) Requires(post): update-alternatives Requires(postun): update-alternatives Suggests: python-Jinja2 ++++++ fix-broken-mock-test.patch ++++++ >From 28bbaa5a17ed1ac39be63b1ecd9bd7e187a7db2e Mon Sep 17 00:00:00 2001 From: Henry Schreiner <[email protected]> Date: Thu, 12 Dec 2024 21:44:02 -0500 Subject: [PATCH] tests: fix broken mock on CPython 3.12.8+ (#903) Signed-off-by: Henry Schreiner <[email protected]> --- nox/command.py | 4 +++- tests/test_command.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) Index: nox-2024.04.15/nox/command.py =================================================================== --- nox-2024.04.15.orig/nox/command.py +++ nox-2024.04.15/nox/command.py @@ -36,6 +36,8 @@ if TYPE_CHECKING: ExternalType = Literal["error", True, False] +_PLATFORM = sys.platform + class CommandFailed(Exception): """Raised when an executed command returns a non-success status code.""" @@ -67,7 +69,7 @@ def _clean_env(env: Mapping[str, str | N clean_env = {k: v for k, v in env.items() if v is not None} # Ensure systemroot is passed down, otherwise Windows will explode. - if sys.platform == "win32": + if _PLATFORM.startswith("win"): clean_env.setdefault("SYSTEMROOT", os.environ.get("SYSTEMROOT", "")) return clean_env Index: nox-2024.04.15/tests/test_command.py =================================================================== --- nox-2024.04.15.orig/tests/test_command.py +++ nox-2024.04.15/tests/test_command.py @@ -157,7 +157,7 @@ def test_run_env_remove(monkeypatch): ) [email protected]("sys.platform", "win32") [email protected]("nox.command._PLATFORM", "win32") def test_run_env_systemroot(): systemroot = os.environ.setdefault("SYSTEMROOT", "sigil")
