Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-stestr for openSUSE:Factory checked in at 2023-09-06 18:56:50 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-stestr (Old) and /work/SRC/openSUSE:Factory/.python-stestr.new.1766 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-stestr" Wed Sep 6 18:56:50 2023 rev:21 rq:1108982 version:4.0.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-stestr/python-stestr.changes 2022-08-23 14:25:38.951094390 +0200 +++ /work/SRC/openSUSE:Factory/.python-stestr.new.1766/python-stestr.changes 2023-09-06 18:58:33.544341095 +0200 @@ -1,0 +2,19 @@ +Tue Sep 5 06:09:11 UTC 2023 - Steve Kowalik <steven.kowa...@suse.com> + +- Update to 4.0.1: + * Fixed an issue around the unittest runner unexpectedly not running the + requested tests (or executing them in an unexpected order) causing odd + failures that were difficult to debug. + * Fixed the output handling of stestr run and stestr load so that any + segfaults or unexpected failures in a test worker are now properly + reported in the subunit-trace output. + * Drops support for the 'sql' repository type and also the flags and + Python API flags for selecting the repository type. + * Remove support for running with Python 3.5. + * Official support for Python 3.10. + * Fixed the execution order of the stestr run --load-list option so that + tests are executed in the order specified in the list. +- Add patch remove-future-requirement.patch, drop use of the future module. +- Switch to pyproject and autosetup macros. + +------------------------------------------------------------------- Old: ---- stestr-3.2.1.tar.gz New: ---- remove-future-requirement.patch stestr-4.0.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-stestr.spec ++++++ --- /var/tmp/diff_new_pack.EeWDHl/_old 2023-09-06 18:58:35.792421234 +0200 +++ /var/tmp/diff_new_pack.EeWDHl/_new 2023-09-06 18:58:35.796421377 +0200 @@ -1,7 +1,7 @@ # # spec file # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python3-%{**}} %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "test" %define psuffix -%{flavor} @@ -26,20 +25,22 @@ %bcond_with test %endif Name: python-stestr%{psuffix} -Version: 3.2.1 +Version: 4.0.1 Release: 0 Summary: A parallel Python test runner built around subunit License: Apache-2.0 -Group: Development/Languages/Python URL: https://github.com/mtreinish/stestr Source: https://files.pythonhosted.org/packages/source/s/stestr/stestr-%{version}.tar.gz +# PATCH-FIX-UPSTREAM gh#mtreinish/stestr#112598d44ee682553c2540b853f9626085b8df2c +Patch0: remove-future-requirement.patch BuildRequires: %{python_module pbr >= 2.0.0} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-PyYAML >= 3.10.0 Requires: python-fixtures >= 3.0.0 -Requires: python-future Requires: python-pbr >= 2.0.0 Requires: python-python-subunit >= 1.4.0 Requires: python-testtools >= 2.2.0 @@ -77,9 +78,7 @@ between the two projects but the actual usage is not exactly the same. %prep -%setup -q -n stestr-%{version} -# do not test sql -rm stestr/tests/repository/test_sql.py +%autosetup -p1 -n stestr-%{version} %if %{with test} %check @@ -91,11 +90,11 @@ %if ! %{with test} %build export LC_ALL="en_US.UTF8" -%python_build +%pyproject_wheel %install export LC_ALL="en_US.UTF8" -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} @@ -105,7 +104,7 @@ %{_bindir}/stestr %endif %{python_sitelib}/stestr -%{python_sitelib}/stestr-%{version}*-info +%{python_sitelib}/stestr-%{version}.dist-info %endif %changelog ++++++ remove-future-requirement.patch ++++++ >From 112598d44ee682553c2540b853f9626085b8df2c Mon Sep 17 00:00:00 2001 From: Nicolas Simonds <nisim...@cisco.com> Date: Wed, 4 Jan 2023 09:11:51 -0800 Subject: [PATCH] Remove vestigial future package from requirements This package appears to be a holdover from dropping Python 2.x support, and is no longer needed. This resolves https://nvd.nist.gov/vuln/detail/CVE-2022-40899 Also update tox.ini to work wirth modern vintages of tox. --- requirements.txt | 1 - stestr/repository/file.py | 2 +- tox.ini | 4 +++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index 26797119..55149fed 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,6 @@ # The order of packages is significant, because pip processes them in the order # of appearance. Changing the order has an impact on the overall integration # process, which may cause wedges in the gate later. -future pbr!=2.1.0,>=2.0.0,!=4.0.0,!=4.0.1,!=4.0.2,!=4.0.3 # Apache-2.0 cliff>=2.8.0 # Apache-2.0 python-subunit>=1.4.0 # Apache-2.0/BSD diff --git a/stestr/repository/file.py b/stestr/repository/file.py index 6ecf1ec6..581e45a6 100644 --- a/stestr/repository/file.py +++ b/stestr/repository/file.py @@ -19,7 +19,7 @@ import sys import tempfile -from future.moves.dbm import dumb as my_dbm +from dbm import dumb as my_dbm from subunit import TestProtocolClient import subunit.v2 import testtools diff --git a/tox.ini b/tox.ini index 3f04e2d1..69b42b34 100644 --- a/tox.ini +++ b/tox.ini @@ -7,7 +7,9 @@ skipsdist = True usedevelop = True install_command = pip install -U --force-reinstall {opts} {packages} setenv = VIRTUAL_ENV={envdir} -whitelist_externals = find +allowlist_externals = + find + stestr deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt commands = ++++++ stestr-3.2.1.tar.gz -> stestr-4.0.1.tar.gz ++++++ ++++ 2706 lines of diff (skipped)