From d851925c9dfe2992ee4f229fc03ec213d244846ae396d4c26400ad6e3635f2be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 5 Apr 2019 07:52:14 +0000 Subject: [PATCH] Accepting request 691714 from home:mcalabkova:branches:devel:languages:python - update to version 4.3 * Add support for Python 3.6 and 3.7. * Drop support for Python 3.3. * Fix handling of unicode supplemental traceback information on Python 2. - drop *-doc subpackage, use multibuild instead OBS-URL: https://build.opensuse.org/request/show/691714 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.exceptions?expand=0&rev=17 --- _multibuild | 3 ++ python-zope.exceptions-doc.changes | 59 ---------------------------- python-zope.exceptions-doc.spec | 63 ------------------------------ python-zope.exceptions.changes | 10 +++++ python-zope.exceptions.spec | 26 ++++++++++-- zope.exceptions-4.1.0.tar.gz | 3 -- zope.exceptions-4.3.tar.gz | 3 ++ 7 files changed, 39 insertions(+), 128 deletions(-) create mode 100644 _multibuild delete mode 100644 python-zope.exceptions-doc.changes delete mode 100644 python-zope.exceptions-doc.spec delete mode 100644 zope.exceptions-4.1.0.tar.gz create mode 100644 zope.exceptions-4.3.tar.gz 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.exceptions-doc.changes b/python-zope.exceptions-doc.changes deleted file mode 100644 index 4dfc2d3..0000000 --- a/python-zope.exceptions-doc.changes +++ /dev/null @@ -1,59 +0,0 @@ -------------------------------------------------------------------- -Tue Dec 4 13:10:31 UTC 2018 - Matej Cepl - -- Remove superfluous devel dependency for noarch package - -------------------------------------------------------------------- -Tue Jul 4 13:39:22 UTC 2017 - jmatejek@suse.com - -- drop unneeded _multibuild - -------------------------------------------------------------------- -Fri Jun 23 09:02:36 UTC 2017 - aloisio@gmx.com - -- Update to version 4.1.0 - * Drop support for Python 2.6 and 3.2. - * Make exceptionformatter.extract_stack signature comply with - traceback.extract_stack - * Add support for Python 3.5. - 4.0.8: - * Fixes around TextExceptionFormatter limit: formatException - and extractStack was cutting the traceback at the bottom, at - the most interesting point. Now it will cut from the middle. - Some text about the missing entries will be inserted. - * Maybe fix for extractStack, it did not detect recursions in - the frames. - -- Split -doc into separate package and put tests there - -------------------------------------------------------------------- -Thu Sep 3 12:28:13 UTC 2015 - toddrme2178@gmail.com - -- Disable tests to avoid dependency loop - -------------------------------------------------------------------- -Fri May 15 11:55:03 UTC 2015 - benoit.monin@gmx.fr - -- update to version 4.0.7: - * Added explicit support for Python 3.4. - * Updated boostrap.py to version 2.2. -- switch the source archive to tar.gz (zip not available) -- remove unzip from BuildRequires -- pass -q to test to avoid spamming the build log - -------------------------------------------------------------------- -Thu Oct 24 11:17:56 UTC 2013 - speilicke@suse.com - -- Require python-setuptools instead of distribute (upstreams merged) - -------------------------------------------------------------------- -Mon Jul 29 14:04:41 UTC 2013 - hpj@urpla.net - -- generate documentation in separate -doc file -- enable tests (run tests on source tree) - -------------------------------------------------------------------- -Fri Mar 15 14:01:12 UTC 2013 - speilicke@suse.com - -- Initial version - diff --git a/python-zope.exceptions-doc.spec b/python-zope.exceptions-doc.spec deleted file mode 100644 index 32c62a0..0000000 --- a/python-zope.exceptions-doc.spec +++ /dev/null @@ -1,63 +0,0 @@ -# -# spec file for package python-zope.exceptions-doc -# -# Copyright (c) 2018 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 -# upon. The license for this file, and modifications and additions to the -# file, is the same license as for the pristine package itself (unless the -# license for the pristine package is not an Open Source License, in which -# case the license is the MIT License). An "Open Source License" is a -# license that conforms to the Open Source Definition (Version 1.9) -# published by the Open Source Initiative. - -# Please submit bugfixes or comments via https://bugs.opensuse.org/ -# - - -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -Name: python-zope.exceptions-doc -Version: 4.1.0 -Release: 0 -Summary: Documentation for python-zope.exceptions -License: ZPL-2.1 -Group: Documentation/HTML -Url: http://cheeseshop.python.org/pypi/zope.exceptions -Source: https://files.pythonhosted.org/packages/source/z/zope.exceptions/zope.exceptions-%{version}.tar.gz -# SECTION Documentation requirements -BuildRequires: python3-Sphinx -BuildRequires: python3-repoze.sphinx.autointerface -# /SECTION -BuildRequires: python-rpm-macros -# SECTION Test requirements: -BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module zope.exceptions} = %{version} -BuildRequires: %{python_module zope.testrunner} -# /SECTION -Requires: python-zope.exceptions = %{version} -Provides: %{python_module zope.exceptions-doc == %{version}} -BuildArch: noarch - -%description -This package contains documentation files for python-zope.exceptions. - -%prep -%setup -q -n zope.exceptions-%{version} - -%build -%{_python_use_flavor python3} -%__python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo - -%install -# Not needed - -%check -%python_exec %{_bindir}/zope-testrunner -vvv --test-path src - -%files -%defattr(-,root,root,-) -%doc COPYRIGHT.txt LICENSE.txt -%doc build/sphinx/html/ - -%changelog diff --git a/python-zope.exceptions.changes b/python-zope.exceptions.changes index 4dfc2d3..8074002 100644 --- a/python-zope.exceptions.changes +++ b/python-zope.exceptions.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Fri Apr 5 07:06:22 UTC 2019 - Marketa Calabkova + +- update to version 4.3 + * Add support for Python 3.6 and 3.7. + * Drop support for Python 3.3. + * Fix handling of unicode supplemental traceback information on + Python 2. +- drop *-doc subpackage, use multibuild instead + ------------------------------------------------------------------- Tue Dec 4 13:10:31 UTC 2018 - Matej Cepl diff --git a/python-zope.exceptions.spec b/python-zope.exceptions.spec index bed82df..0f49297 100644 --- a/python-zope.exceptions.spec +++ b/python-zope.exceptions.spec @@ -1,7 +1,7 @@ # # spec file for package python-zope.exceptions # -# 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,8 +17,16 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -Name: python-zope.exceptions -Version: 4.1.0 +%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.exceptions%{psuffix} +Version: 4.3 Release: 0 Summary: Zope Exceptions License: ZPL-2.1 @@ -29,7 +37,14 @@ BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-zope.interface +Obsoletes: %{name}-doc +%if %{with test} +BuildRequires: %{python_module zope.exceptions} +BuildRequires: %{python_module zope.interface} +BuildRequires: %{python_module zope.testrunner} +%endif BuildArch: noarch + %python_subpackages %description @@ -46,6 +61,11 @@ general purpose that they don't belong in Zope application-specific packages. %python_install %python_expand %fdupes -s %{buildroot}%{$python_sitelib} +%if %{with test} +%check +%python_expand %{_bindir}/zope-testrunner-%{$python_bin_suffix} -vvv --test-path src +%endif + %files %{python_files} %license LICENSE.txt %doc CHANGES.rst COPYRIGHT.txt README.rst diff --git a/zope.exceptions-4.1.0.tar.gz b/zope.exceptions-4.1.0.tar.gz deleted file mode 100644 index a81ed6a..0000000 --- a/zope.exceptions-4.1.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f1c086abddc9f2050df5824ff7ab8ece3285c8e28453a29ee761effbc5e592ad -size 26605 diff --git a/zope.exceptions-4.3.tar.gz b/zope.exceptions-4.3.tar.gz new file mode 100644 index 0000000..a51312e --- /dev/null +++ b/zope.exceptions-4.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5fa59c3c1044bb9448aeec8328db0bfceaae2a2174e88528d3fe04adf8d47211 +size 30704