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 2023-11-30 21:59:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-testfixtures (Old)
 and      /work/SRC/openSUSE:Factory/.python-testfixtures.new.25432 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-testfixtures"

Thu Nov 30 21:59:03 2023 rev:25 rq:1129684 version:7.2.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-testfixtures/python-testfixtures.changes  
2022-12-15 19:24:03.947667343 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-testfixtures.new.25432/python-testfixtures.changes
       2023-11-30 21:59:26.496905207 +0100
@@ -1,0 +2,18 @@
+Wed Nov 29 01:50:24 UTC 2023 - Steve Kowalik <steven.kowa...@suse.com>
+
+- Update to 7.2.2:
+  * Fix bug in support for :class:`os.PathLike` arguments to
+    :class:`popen.MockPopen`.
+  * Added missing support for :class:`os.PathLike` arguments to
+    :class:`popen.MockPopen`.
+  * Add ``order_matters`` parameter to :class:`ShouldWarn`.
+  * Implement new IDE and static-analysis ways of :doc:`mocking <mocking>`
+    including additional parameters to :meth:`~Replacer.replace` along with
+    the :any:`replace_on_class`, :any:`replace_in_module` and
+    :any:`replace_in_environ` context managers.
+- Add patch path-comparsion-312.patch:
+  * Compare paths string-wise, due to Python 3.12 changes.
+- Switch to autosetup and pyproject macros.
+- Remove now unneeded Python 3.6 special-casing.
+
+-------------------------------------------------------------------

Old:
----
  testfixtures-7.0.4.tar.gz

New:
----
  path-comparsion-312.patch
  testfixtures-7.2.2.tar.gz

BETA DEBUG BEGIN:
  New:    :any:`replace_in_environ` context managers.
- Add patch path-comparsion-312.patch:
  * Compare paths string-wise, due to Python 3.12 changes.
BETA DEBUG END:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-testfixtures.spec ++++++
--- /var/tmp/diff_new_pack.AkBqz1/_old  2023-11-30 21:59:27.404938658 +0100
+++ /var/tmp/diff_new_pack.AkBqz1/_new  2023-11-30 21:59:27.404938658 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-testfixtures
 #
-# 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,23 +16,26 @@
 #
 
 
-%define skip_python2 1
 Name:           python-testfixtures
-Version:        7.0.4
+Version:        7.2.2
 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 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:  fdupes
 BuildRequires:  python-rpm-macros
-BuildRequires:  %{python_module Django if (%python-base without python36-base)}
-BuildRequires:  %{python_module pytest-django if (%python-base without 
python36-base)}
 Suggests:       python-Django
 Suggests:       python-Twisted
 Suggests:       python-sybil >= 3
@@ -52,27 +55,25 @@
 their own library and give them some tests of their own!
 
 %prep
-%setup -q -n testfixtures-%{version}
-%autopatch -p1
+%autosetup -p1 -n testfixtures-%{version}
 chmod a-x docs/*.txt
 
 %build
-%python_build
+%pyproject_wheel
 
 %install
-%python_install
+%pyproject_install
 %python_expand rm -r %{buildroot}%{$python_sitelib}/testfixtures/tests
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 export DJANGO_SETTINGS_MODULE=testfixtures.tests.test_django.settings
 export PYTHONPATH=$(pwd)
-python36_flags="--ignore testfixtures/tests/test_django"
-%pytest testfixtures/tests ${$python_flags}
+%pytest testfixtures/tests
 
 %files %{python_files}
 %license LICENSE.txt
 %doc README.rst docs/*.txt
 %{python_sitelib}/testfixtures
-%{python_sitelib}/testfixtures-%{version}*-info
+%{python_sitelib}/testfixtures-%{version}.dist-info
 

++++++ path-comparsion-312.patch ++++++
>From 720ff80e9cfff17e4f0af1792d866edf49a8f02b Mon Sep 17 00:00:00 2001
From: Chris Withers <ch...@simplistix.co.uk>
Date: Mon, 20 Nov 2023 08:20:33 +0000
Subject: [PATCH] Path internals are unequal on Python 3.12

---
 testfixtures/comparison.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/testfixtures/comparison.py b/testfixtures/comparison.py
index c05ab75..26bddfa 100644
--- a/testfixtures/comparison.py
+++ b/testfixtures/comparison.py
@@ -4,6 +4,7 @@
 from difflib import unified_diff
 from functools import partial as partial_type, reduce
 from operator import __or__
+from pathlib import Path
 from pprint import pformat
 from typing import (
     Dict, Any, Optional, Sequence, Generator, TypeVar, List, Mapping, Pattern, 
Union,
@@ -445,6 +446,10 @@ def compare_partial(x: partial_type, y: partial_type, 
context: 'CompareContext')
                                 'attributes ', '.%s')
 
 
+def compare_path(x: Path, y: Path, context: 'CompareContext') -> Optional[str]:
+    return compare_text(str(x), str(y), context)
+
+
 def _short_repr(obj) -> str:
     repr_ = repr(obj)
     if len(repr_) > 30:
@@ -470,6 +475,7 @@ def _short_repr(obj) -> str:
     unittest_mock_call.__class__: compare_call,
     BaseException: compare_exception,
     partial_type: compare_partial,
+    Path: compare_path,
     }
 
 

++++++ testfixtures-7.0.4.tar.gz -> testfixtures-7.2.2.tar.gz ++++++
++++ 2748 lines of diff (skipped)

Reply via email to