Accepting request 692301 from home:mcalabkova:branches:devel:languages:python

- update to version 5.0
  * Fix test failures and deprecation warnings occurring when 
    using Python 3.8a1.  
  * Drop support for Python 3.4.
  4.9*
  * Fix AssertionError in _DummyThread.isAlive on Python 3.
  * Drop support for Python 3.3.
  * Add support for Python 3.7.
  * Remove untested support for the --pychecker option.
  * Update the command line interface to use argparse instead of 
    optparse.
  * Use ipdb instead of pdb for post-mortem debugging if available.
  * Add a –require-unique option to check for duplicate test IDs.
  * Reintroduce optional support for subunit.
  * Handle string in exception values when formatting chained 
    exceptions.
  4.8*
  * Enable DeprecationWarning earlier, when discovering test 
    modules.
  * Automatically enable DeprecationWarning when running tests.
- Launch tests using multibuild.

OBS-URL: https://build.opensuse.org/request/show/692301
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.testrunner?expand=0&rev=21
This commit is contained in:
Tomáš Chvátal 2019-04-08 13:47:49 +00:00 committed by Git OBS Bridge
parent 6def0b1ae3
commit b87ffe7310
5 changed files with 54 additions and 11 deletions

3
_multibuild Normal file
View File

@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

View File

@ -1,3 +1,28 @@
-------------------------------------------------------------------
Mon Apr 8 13:02:40 UTC 2019 - Marketa Calabkova <mcalabkova@suse.com>
- update to version 5.0
* Fix test failures and deprecation warnings occurring when
using Python 3.8a1.
* Drop support for Python 3.4.
4.9*
* Fix AssertionError in _DummyThread.isAlive on Python 3.
* Drop support for Python 3.3.
* Add support for Python 3.7.
* Remove untested support for the --pychecker option.
* Update the command line interface to use argparse instead of
optparse.
* Use ipdb instead of pdb for post-mortem debugging if available.
* Add a require-unique option to check for duplicate test IDs.
* Reintroduce optional support for subunit.
* Handle string in exception values when formatting chained
exceptions.
4.8*
* Enable DeprecationWarning earlier, when discovering test
modules.
* Automatically enable DeprecationWarning when running tests.
- Launch tests using multibuild.
-------------------------------------------------------------------
Tue Dec 4 12:56:33 UTC 2018 - Matej Cepl <mcepl@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-zope.testrunner
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 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
@ -17,24 +17,34 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
Name: python-zope.testrunner
Version: 4.7.0
Version: 5.0
Release: 0
Summary: Zope testrunner script
License: ZPL-2.1
Group: Development/Languages/Python
URL: https://pypi.python.org/pypi/zope.testrunner
Source: https://files.pythonhosted.org/packages/source/z/zope.testrunner/zope.testrunner-%{version}.zip
Source: https://files.pythonhosted.org/packages/source/z/zope.testrunner/zope.testrunner-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
# runtime requirements:
BuildRequires: %{python_module six}
BuildRequires: %{python_module zope.exceptions}
BuildRequires: %{python_module zope.interface}
# Test requirements:
%if %{with test}
BuildRequires: %{python_module zope.testing}
BuildRequires: %{python_module zope.testrunner = %{version}}
%endif
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: unzip
Requires: python-six
Requires: python-zope.exceptions
Requires: python-zope.interface
@ -52,15 +62,19 @@ find -size 0 -delete
%python_build
%install
%if !%{with test}
%python_install
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/zope-testrunner
%endif
# Can't seem to be able to run the tests with an uninstalled zope.testrunner
#%%check
#%%python_exec setup.py test
%if %{with test}
%check
%python_exec setup.py test
%endif
%if !%{with test}
%post
%python_install_alternative zope-testrunner
@ -72,5 +86,6 @@ find -size 0 -delete
%doc README.rst
%python_alternative %{_bindir}/zope-testrunner
%{python_sitelib}/*
%endif
%changelog

View File

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

View File

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