Hello community,

here is the log from the commit of package python-zope.testrunner for 
openSUSE:Factory checked in at 2017-07-08 12:33:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-zope.testrunner (Old)
 and      /work/SRC/openSUSE:Factory/.python-zope.testrunner.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-zope.testrunner"

Sat Jul  8 12:33:42 2017 rev:9 rq:507389 version:4.7.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-zope.testrunner/python-zope.testrunner.changes
    2016-08-17 12:05:25.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-zope.testrunner.new/python-zope.testrunner.changes
       2017-07-08 12:33:43.368180346 +0200
@@ -1,0 +2,43 @@
+Thu Jun 29 19:43:55 UTC 2017 - [email protected]
+
+- Added missing requires for update-alternatives
+
+-------------------------------------------------------------------
+Fri Jun 23 09:19:42 UTC 2017 - [email protected]
+
+- Update to 4.7.0
+  * Drop all support for ``subunit``.
+  4.6.0:
+  * Make the ``subunit`` support purely optional: applications
+    which have been getting the dependencies via
+    ``zope.testrunner`` should either add
+    ``zope.testrunner[subunit]`` to their ``install_requires`` or
+    else depend directly on ``python-subunit``.
+  * New option ``--ignore-new-thread=<regexp>`` to suppress
+    "New thread(s)" warnings.
+  * Support Python 3.6.
+  4.5.1:
+  * Fixed: Using the ``-j`` option to run tests in multiple
+    processes caused tests that used the ``multiprocessing``
+    package to hang (because the testrunner replaced ``sys.stdin``
+    with an unclosable object).
+  * Drop conditional dependency on ``unittest2`` (redundant after
+    dropping support for Python 2.6).
+  4.5.0:
+  * Stop tests for all layers when test fails/errors when started
+    with -x/--stop-on-error
+    (`#37 <https://github.com/zopefoundation/zope.testrunner/pull/37>`_).
+  * Drop support for Python 2.6 and 3.2.
+  4.4.10:
+  * Add support for Python 3.5
+    (`#31 <https://github.com/zopefoundation/zope.testrunner/pull/31>`_).
+  * Insert extra paths (from ``--path``) to the front of sys.argv
+    (`#32 <https://github.com/zopefoundation/zope.testrunner/issues/32>`_).
+  4.4.9:
+  * When using ``-j``, parallelize all the tests, including the
+    first test layer
+    (`#28 <https://github.com/zopefoundation/zope.testrunner/issues/28>`_).
+
+- Converted to single-spec
+
+-------------------------------------------------------------------

Old:
----
  zope.testrunner-4.4.8.zip

New:
----
  zope.testrunner-4.7.0.zip

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

Other differences:
------------------
++++++ python-zope.testrunner.spec ++++++
--- /var/tmp/diff_new_pack.Hq5LCf/_old  2017-07-08 12:33:46.383754997 +0200
+++ /var/tmp/diff_new_pack.Hq5LCf/_new  2017-07-08 12:33:46.383754997 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-zope.testrunner
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,74 +16,63 @@
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-zope.testrunner
-Version:        4.4.8
+Version:        4.7.0
 Release:        0
 Summary:        Zope testrunner script
 License:        ZPL-2.1
 Group:          Development/Languages/Python
-Url:            http://pypi.python.org/pypi/zope.testrunner
-Source:         
https://pypi.python.org/packages/source/z/zope.testrunner/zope.testrunner-%{version}.zip
+Url:            https://pypi.python.org/pypi/zope.testrunner
+Source:         
https://files.pythonhosted.org/packages/source/z/zope.testrunner/zope.testrunner-%{version}.zip
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module setuptools}
+# runtime requirements:
+BuildRequires:  %{python_module six}
+BuildRequires:  %{python_module zope.exceptions}
+BuildRequires:  %{python_module zope.interface}
+# Test requirements:
+BuildRequires:  %{python_module zope.testing}
 BuildRequires:  fdupes
-BuildRequires:  python-devel
-BuildRequires:  python-setuptools
+BuildRequires:  python-rpm-macros
 BuildRequires:  unzip
-# Test requirements:
-#BuildRequires:  python-python-subunit
-#BuildRequires:  python-unittest2
-#BuildRequires:  python-zope.testing
-# runtime requirements:
-BuildRequires:  python-six
-BuildRequires:  python-zope.exceptions
-BuildRequires:  python-zope.interface
 Requires:       python-six
 Requires:       python-zope.exceptions
 Requires:       python-zope.interface
-Requires(post): update-alternatives
-Requires(preun): update-alternatives
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-%if 0%{?suse_version} && 0%{?suse_version} <= 1110
-%{!?python_sitelib: %global python_sitelib %(python -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib()")}
-%else
 BuildArch:      noarch
-%endif
+%python_subpackages
 
 %description
 This package provides a flexible test runner with layer support.
 
 %prep
 %setup -q -n zope.testrunner-%{version}
-sed -i "s/zope-testrunner =/zope-testrunner-%{py_ver} =/" setup.py
+find -size 0 -delete
 
 %build
-python setup.py build
+%python_build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
-# for update-alternatives
-mkdir -p %{buildroot}%{_sysconfdir}/alternatives
-ln -s %{_sysconfdir}/alternatives/zope-testrunner 
%{buildroot}%{_bindir}/zope-testrunner
-# Remove duplicate files
-%fdupes -s %{buildroot}%{python_sitelib}
+%python_install
+%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
+
+%python_clone -a %{buildroot}%{_bindir}/zope-testrunner
 
-#NOTE(saschpe): Check failing tests
+# Can't seem to be able to run the tests with an uninstalled zope.testrunner
 #%%check
-#python setup.py test
+#%%python_exec setup.py test
 
 %post
-%_sbindir/update-alternatives --install %{_bindir}/zope-testrunner 
zope-testrunner %{_bindir}/zope-testrunner-%{py_ver} 20
+%python_install_alternative zope-testrunner
 
-%preun
-if [ $1 -eq 0 ] ; then
-    %_sbindir/update-alternatives --remove zope-testrunner 
%{_bindir}/zope-testrunner-%{py_ver}
-fi
+%postun
+%python_uninstall_alternative zope-testrunner
 
-%files
+%files %{python_files}
 %defattr(-,root,root,-)
 %doc LICENSE.rst README.rst
-%{_bindir}/zope-testrunner
-%{_bindir}/zope-testrunner-%{py_ver}
-%ghost %{_sysconfdir}/alternatives/zope-testrunner
+%python_alternative %{_bindir}/zope-testrunner
 %{python_sitelib}/*
 
 %changelog


Reply via email to