diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/python-zope.testrunner.changes b/python-zope.testrunner.changes index 4fa753e..4d411d1 100644 --- a/python-zope.testrunner.changes +++ b/python-zope.testrunner.changes @@ -1,3 +1,28 @@ +------------------------------------------------------------------- +Mon Apr 8 13:02:40 UTC 2019 - Marketa Calabkova + +- 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 diff --git a/python-zope.testrunner.spec b/python-zope.testrunner.spec index a33feef..30b3150 100644 --- a/python-zope.testrunner.spec +++ b/python-zope.testrunner.spec @@ -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 diff --git a/zope.testrunner-4.7.0.zip b/zope.testrunner-4.7.0.zip deleted file mode 100644 index 578cb74..0000000 --- a/zope.testrunner-4.7.0.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8ffcb4989829544a83d27e42b2eeb28f8fc134bd847d71ce8dca54f710526ef0 -size 260508 diff --git a/zope.testrunner-5.0.tar.gz b/zope.testrunner-5.0.tar.gz new file mode 100644 index 0000000..5afa0c6 --- /dev/null +++ b/zope.testrunner-5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0d8a27e214033b6f1e557556e61bff9568ae95676dfcc8a032483fdeeee792c3 +size 132109