Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-testfixtures for openSUSE:Factory checked in at 2024-06-14 18:59:08 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-testfixtures (Old) and /work/SRC/openSUSE:Factory/.python-testfixtures.new.19518 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-testfixtures" Fri Jun 14 18:59:08 2024 rev:27 rq:1172638 version:8.2.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-testfixtures/python-testfixtures.changes 2023-12-12 19:31:43.851355907 +0100 +++ /work/SRC/openSUSE:Factory/.python-testfixtures.new.19518/python-testfixtures.changes 2024-06-14 19:00:58.741148625 +0200 @@ -1,0 +2,32 @@ +Wed May 8 06:08:53 UTC 2024 - Steve Kowalik <steven.kowa...@suse.com> + +- Update to 8.2.0: + * The strict option is now correctly respected when comparing nested + objects. + * When comparing datetime.datetime or datetime.time instances, if the fold + is the only thing that's different, it's now shown in the output. + * A more detailed exception is now raised when resolving a replacement + doesn't give what's expected. + * Replacement of methods on instances is now prevented when strict=True. + * An exception is now raised when mocking and the original is not in the + __dict__ of its containing objects. + * Fix bug where replacement of methods on subclasses failed when using + Replacer.on_class. + * Implement strict comparison as an option for datetime.datetime + and datetime.time. + * Retire zope.component helpers. + * Support bytes in popen.MockPopen commands. + * Allow TempDirectory instances to be traversed as pathlib.Path objects. + * Use the system default encoding where possible in TempDirectory. + * Add TempDirectory option to manage current working directory. + * Allow string class attributes to be replaced with Replacer and friends. + * Fix nasty bug meaning some Replacer.on_class and Replacer.in_module + replacements weren't restored. + * Allow an alternative separator to be used for traversal during replacement + with Replacer and friends. + * Officially support Python 3.12. + * Drop support Python 3.6. +- Add multibuild to break a cycle. +- Drop patch path-comparsion-312.patch, included upstream. + +------------------------------------------------------------------- Old: ---- path-comparsion-312.patch testfixtures-7.2.2.tar.gz New: ---- _multibuild testfixtures-8.2.0.tar.gz BETA DEBUG BEGIN: Old:- Add multibuild to break a cycle. - Drop patch path-comparsion-312.patch, included upstream. BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-testfixtures.spec ++++++ --- /var/tmp/diff_new_pack.utK7u1/_old 2024-06-14 19:00:59.365171170 +0200 +++ /var/tmp/diff_new_pack.utK7u1/_new 2024-06-14 19:00:59.369171315 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-testfixtures # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,31 +16,39 @@ # +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif %{?sle15_python_module_pythons} -Name: python-testfixtures -Version: 7.2.2 +Name: python-testfixtures%{psuffix} +Version: 8.2.0 Release: 0 Summary: A collection of helpers and mock objects for unit tests and doc tests License: MIT URL: https://github.com/Simplistix/testfixtures Source: https://files.pythonhosted.org/packages/source/t/testfixtures/testfixtures-%{version}.tar.gz -# PATCH-FIX-UPSTREAM gh#simplistix/testfixtures#720ff80e9cfff17e4f0af1792d866edf49a8f02b -Patch0: path-comparsion-312.patch +BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +%if %{with test} BuildRequires: %{python_module Django} BuildRequires: %{python_module Twisted} -BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest >= 3.6} BuildRequires: %{python_module pytest-django} -BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module sybil >= 3} -BuildRequires: %{python_module wheel} -BuildRequires: %{python_module zope.component} +BuildRequires: %{python_module sybil >= 6} +BuildRequires: %{python_module testfixtures = %{version}} +%endif BuildRequires: fdupes BuildRequires: python-rpm-macros Suggests: python-Django Suggests: python-Twisted -Suggests: python-sybil >= 3 -Suggests: python-zope.component +Suggests: python-sybil >= 6 BuildArch: noarch %python_subpackages @@ -63,18 +71,24 @@ %pyproject_wheel %install +%if %{without test} %pyproject_install %python_expand rm -r %{buildroot}%{$python_sitelib}/testfixtures/tests %python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif %check +%if %{with test} export DJANGO_SETTINGS_MODULE=testfixtures.tests.test_django.settings export PYTHONPATH=$(pwd) %pytest testfixtures/tests +%endif +%if %{without test} %files %{python_files} %license LICENSE.txt %doc README.rst docs/*.txt %{python_sitelib}/testfixtures %{python_sitelib}/testfixtures-%{version}.dist-info +%endif ++++++ _multibuild ++++++ <multibuild> <package>test</package> </multibuild> ++++++ testfixtures-7.2.2.tar.gz -> testfixtures-8.2.0.tar.gz ++++++ ++++ 3311 lines of diff (skipped)