Compare commits
6 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| bdde15b655 | |||
| 8843bd95ac | |||
| 85b90c6043 | |||
| e2fb72359e | |||
| 7da167975b | |||
| 2b9f3ce872 |
@@ -1,11 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Tue Nov 4 01:46:07 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
|
||||||
|
|
||||||
- Rip out the requirement of the wheel.whl, recent setuptools no longer
|
|
||||||
require it.
|
|
||||||
- Add patch support-python314.patch:
|
|
||||||
* Support Python 3.14 multiprocessing and argparse changes.
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Aug 21 10:02:03 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
Thu Aug 21 10:02:03 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-nose2
|
# spec file for package python-nose2
|
||||||
#
|
#
|
||||||
# Copyright (c) 2025 SUSE LLC and contributors
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -29,8 +29,8 @@ Summary: The successor to the Python testing framework nose, based on uni
|
|||||||
License: BSD-2-Clause AND Python-2.0
|
License: BSD-2-Clause AND Python-2.0
|
||||||
URL: https://github.com/nose-devs/nose2
|
URL: https://github.com/nose-devs/nose2
|
||||||
Source: https://files.pythonhosted.org/packages/source/n/nose2/nose2-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/n/nose2/nose2-%{version}.tar.gz
|
||||||
# PATCH-FIX-OPENSUSE Support Python 3.14 multiprocessing and argparse changes
|
# Required for testsuite. Bring on python-wheel wheel.
|
||||||
Patch0: support-python314.patch
|
Source1: https://files.pythonhosted.org/packages/c7/c3/55076fc728723ef927521abaa1955213d094933dc36d4a2008d5101e1af5/wheel-0.42.0-py3-none-any.whl
|
||||||
BuildRequires: %{python_module coverage}
|
BuildRequires: %{python_module coverage}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools-wheel}
|
BuildRequires: %{python_module setuptools-wheel}
|
||||||
@@ -56,6 +56,8 @@ nose2's purpose is to extend unittest to make testing nicer and easier to unders
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n nose2-%{version}
|
%autosetup -p1 -n nose2-%{version}
|
||||||
|
mkdir ../wheels
|
||||||
|
cp %{SOURCE1} ../wheels
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
@@ -71,7 +73,7 @@ export LC_CTYPE=C.UTF8
|
|||||||
%{python_expand # nose must test itself in an editable install
|
%{python_expand # nose must test itself in an editable install
|
||||||
$python -m venv editable-%{$python_bin_suffix} --system-site-packages
|
$python -m venv editable-%{$python_bin_suffix} --system-site-packages
|
||||||
. editable-%{$python_bin_suffix}/bin/activate
|
. editable-%{$python_bin_suffix}/bin/activate
|
||||||
pip install --no-index --find-links %{_prefix}/lib/python%{$python_bin_suffix}/wheels -e .
|
pip install --no-index --find-links %{_prefix}/lib/python%{$python_bin_suffix}/wheels --find-links ../wheels -e .
|
||||||
nose2 -v --pretty-assert
|
nose2 -v --pretty-assert
|
||||||
deactivate
|
deactivate
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,43 +0,0 @@
|
|||||||
Index: nose2-0.15.1/nose2/plugins/mp.py
|
|
||||||
===================================================================
|
|
||||||
--- nose2-0.15.1.orig/nose2/plugins/mp.py
|
|
||||||
+++ nose2-0.15.1/nose2/plugins/mp.py
|
|
||||||
@@ -1,7 +1,9 @@
|
|
||||||
+import contextlib
|
|
||||||
import logging
|
|
||||||
import multiprocessing
|
|
||||||
import multiprocessing.connection as connection
|
|
||||||
import os
|
|
||||||
+import platform
|
|
||||||
import select
|
|
||||||
import sys
|
|
||||||
import unittest
|
|
||||||
@@ -28,6 +30,11 @@ class MultiProcess(events.Plugin):
|
|
||||||
|
|
||||||
self.cases = {}
|
|
||||||
|
|
||||||
+ # This requires the broken 'fork' start method to share state.
|
|
||||||
+ if sys.version_info[:2] >= (3, 14) and platform.system() == "Linux":
|
|
||||||
+ with contextlib.suppress(RuntimeError):
|
|
||||||
+ multiprocessing.set_start_method('fork')
|
|
||||||
+
|
|
||||||
@property
|
|
||||||
def procs(self):
|
|
||||||
"""Get the appropriate number of procs for self.procs if self._procs is
|
|
||||||
Index: nose2-0.15.1/nose2/tests/unit/test_plugin_api.py
|
|
||||||
===================================================================
|
|
||||||
--- nose2-0.15.1.orig/nose2/tests/unit/test_plugin_api.py
|
|
||||||
+++ nose2-0.15.1/nose2/tests/unit/test_plugin_api.py
|
|
||||||
@@ -17,9 +17,9 @@ class TestPluginApi(TestCase):
|
|
||||||
|
|
||||||
def test_add_option_adds_option(self):
|
|
||||||
helpt = self.session.argparse.format_help()
|
|
||||||
- assert "-X, --xxx" in helpt, (
|
|
||||||
- "commandLineSwitch arg not found in help text: %s" % helpt
|
|
||||||
- )
|
|
||||||
+ # Output may be colored
|
|
||||||
+ assert "-X" in helpt
|
|
||||||
+ assert "--xxx" in helpt
|
|
||||||
|
|
||||||
def test_short_opt_registers_plugin(self):
|
|
||||||
args, argv = self.session.argparse.parse_known_args(["-X"])
|
|
||||||
BIN
wheel-0.42.0-py3-none-any.whl
LFS
Normal file
BIN
wheel-0.42.0-py3-none-any.whl
LFS
Normal file
Binary file not shown.
Reference in New Issue
Block a user