forked from pool/python-nox
Compare commits
8 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 306fc3dec2 | |||
| fde8904e5d | |||
| a39bb9deca | |||
| 83245573b5 | |||
| 370a1e9e23 | |||
| 82be1e6156 | |||
| f7013734a3 | |||
| 5894c92eae |
46
fix-broken-mock-test.patch
Normal file
46
fix-broken-mock-test.patch
Normal file
@@ -0,0 +1,46 @@
|
||||
From 28bbaa5a17ed1ac39be63b1ecd9bd7e187a7db2e Mon Sep 17 00:00:00 2001
|
||||
From: Henry Schreiner <HenrySchreinerIII@gmail.com>
|
||||
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 <henryschreineriii@gmail.com>
|
||||
---
|
||||
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):
|
||||
)
|
||||
|
||||
|
||||
-@mock.patch("sys.platform", "win32")
|
||||
+@mock.patch("nox.command._PLATFORM", "win32")
|
||||
def test_run_env_systemroot():
|
||||
systemroot = os.environ.setdefault("SYSTEMROOT", "sigil")
|
||||
|
||||
@@ -1,3 +1,62 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 17 21:20:40 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 2025.11.12:
|
||||
* Avoid warnings when running in script mode
|
||||
* `nox --report ` should support `Path`
|
||||
* Install env was typed differently
|
||||
* pytest `log_level` is better than `log_cli_level`
|
||||
* Use last intel macOS image
|
||||
* Add a few more passing ruff checks
|
||||
- update to 2025.10.16:
|
||||
* Make pbs-installer an optional dependency
|
||||
* Include time on longer runs (adds `humanize` dependency)
|
||||
- update to 2025.10.14:
|
||||
* Add `--download-python` python option
|
||||
* Add `session.env_dir` to get the Path to the environment
|
||||
* Correct minimum versions and test
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Sep 21 14:44:49 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 2025.05.01:
|
||||
* This is a bugfix release that primarily adds support for uv
|
||||
0.7+. A few other small fixes were made.
|
||||
- update to 2025.02.09:
|
||||
* This release improves PEP 723 support, including adding
|
||||
dependencies to the noxfile itself ("plugins"). It adds the
|
||||
long-awaited "requires" option, allowing sessions to require
|
||||
other sessions. And it brings further improvements to the
|
||||
`pyproject.toml` support, including helpers for dependency-
|
||||
groups and Python version lists.
|
||||
* More typing and test improvements
|
||||
* Some extra simplifications from Ruff
|
||||
* Use dependency-groups
|
||||
* Pull out env creation into helper method
|
||||
* Pulled out `get_virtualenv` & better typing
|
||||
* Fix broken mock on CPython 3.12.8+ in tests
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 19 15:26:17 UTC 2024 - Nico Krapp <nico.krapp@suse.com>
|
||||
|
||||
- Add missing requirements
|
||||
- Add fix-broken-mock-test.patch to fix testsuite
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 23 20:29:29 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 2024.10.09:
|
||||
* This release adds explicit support for Python 3.13 and drops
|
||||
support for running Nox itself under Python 3.7. Note that
|
||||
you can still use 3.7 in your Nox sessions, we just dropped
|
||||
support for installing & running `nox` itself in 3.7.
|
||||
* Allow setting tags on parametrized sessions
|
||||
* Added support for `uv`-installed pythons
|
||||
* Added `session.install_and_run_script`
|
||||
* Updated type annotation of `stderr` parameter to make it
|
||||
optional
|
||||
* Removed `add_timestamp` from `noxfile.options`
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Apr 20 20:57:29 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-nox
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -19,13 +19,15 @@
|
||||
%{?sle15_python_module_pythons}
|
||||
%global padded_version 2024.04.15
|
||||
Name: python-nox
|
||||
Version: 2024.4.15
|
||||
Version: 2025.11.12
|
||||
Release: 0
|
||||
Summary: Flexible test automation
|
||||
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: git-core
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user