Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-sure for openSUSE:Factory 
checked in at 2021-12-16 21:19:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-sure (Old)
 and      /work/SRC/openSUSE:Factory/.python-sure.new.2520 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-sure"

Thu Dec 16 21:19:30 2021 rev:8 rq:940343 version:2.0.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-sure/python-sure.changes  2020-06-21 
19:06:35.621043463 +0200
+++ /work/SRC/openSUSE:Factory/.python-sure.new.2520/python-sure.changes        
2021-12-16 21:20:25.514546649 +0100
@@ -1,0 +2,7 @@
+Sun Dec 12 16:15:50 UTC 2021 - Ben Greiner <c...@bnavigator.de>
+
+- Update to 2.0.0
+  * No longer patch the builtin dir() function, which fixes pytest
+    in some cases such as projects using gevent.
+
+-------------------------------------------------------------------

Old:
----
  sure-1.4.11.tar.gz

New:
----
  sure-2.0.0.tar.gz

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

Other differences:
------------------
++++++ python-sure.spec ++++++
--- /var/tmp/diff_new_pack.WHKO2d/_old  2021-12-16 21:20:25.898546795 +0100
+++ /var/tmp/diff_new_pack.WHKO2d/_new  2021-12-16 21:20:25.902546797 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-sure
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-sure
-Version:        1.4.11
+Version:        2.0.0
 Release:        0
 Summary:        Utility belt for automated testing in python for python
 License:        GPL-3.0-or-later
@@ -31,8 +31,11 @@
 BuildRequires:  %{python_module six >= 1.10.0}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+# regarding mock: https://github.com/gabrielfalcao/sure/pull/161
 Requires:       python-mock >= 2.0.0
 Requires:       python-six >= 1.10.0
+Requires(post): update-alternatives
+Requires(postun):update-alternatives
 BuildArch:      noarch
 %python_subpackages
 
@@ -43,12 +46,14 @@
 %prep
 %setup -q -n sure-%{version}
 sed -i '/^#!/d' sure/*.py
+sed -i 's/--cov=sure//' setup.cfg
 
 %build
 %python_build
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/sure
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
@@ -56,9 +61,17 @@
 rm tests/test_old_api.py
 %pytest
 
+%post
+%python_install_alternative sure
+
+%postun
+%python_uninstall_alternative sure
+
 %files %{python_files}
 %license COPYING
 %doc README.rst
-%{python_sitelib}/*
+%python_alternative %{_bindir}/sure
+%{python_sitelib}/sure
+%{python_sitelib}/sure-%{version}*-info
 
 %changelog

++++++ sure-1.4.11.tar.gz -> sure-2.0.0.tar.gz ++++++
++++ 2054 lines of diff (skipped)

Reply via email to