Accepting request 507165 from home:alois:branches:devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/507165
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.testrunner?expand=0&rev=16
This commit is contained in:
Jan Matejek 2017-06-30 14:36:01 +00:00 committed by Git OBS Bridge
parent 06da28c8a9
commit 68e342214d
4 changed files with 75 additions and 43 deletions

View File

@ -1,3 +1,46 @@
-------------------------------------------------------------------
Thu Jun 29 19:43:55 UTC 2017 - aloisio@gmx.com
- Added missing requires for update-alternatives
-------------------------------------------------------------------
Fri Jun 23 09:19:42 UTC 2017 - aloisio@gmx.com
- 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
-------------------------------------------------------------------
Mon Aug 15 14:51:56 UTC 2016 - toddrme2178@gmail.com

View File

@ -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
BuildRequires: fdupes
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRequires: unzip
# Test requirements:
#BuildRequires: python-python-subunit
#BuildRequires: python-unittest2
#BuildRequires: python-zope.testing
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-six
BuildRequires: python-zope.exceptions
BuildRequires: python-zope.interface
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-rpm-macros
BuildRequires: unzip
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}
#NOTE(saschpe): Check failing tests
%python_clone -a %{buildroot}%{_bindir}/zope-testrunner
# 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

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b426d7ac5d219bb58224c5a3fda97eb187656468a1e7a02fa0b0eeba395eeae2
size 262258

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8ffcb4989829544a83d27e42b2eeb28f8fc134bd847d71ce8dca54f710526ef0
size 260508