From 4dd7d9dd8e12c6bde7d3e4952590ac724b0201a9238106216c5fb83e11c6ef1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 23:38:54 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main python-zope.exceptions revision fff2187ed9af5b1fcf08c019d997d63c --- .gitattributes | 23 ++++++++ _multibuild | 3 ++ pre_checkin.sh | 3 ++ python-zope.exceptions.changes | 95 ++++++++++++++++++++++++++++++++++ python-zope.exceptions.spec | 80 ++++++++++++++++++++++++++++ zope.exceptions-4.6.tar.gz | 3 ++ 6 files changed, 207 insertions(+) create mode 100644 .gitattributes create mode 100644 _multibuild create mode 100644 pre_checkin.sh create mode 100644 python-zope.exceptions.changes create mode 100644 python-zope.exceptions.spec create mode 100644 zope.exceptions-4.6.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text 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/pre_checkin.sh b/pre_checkin.sh new file mode 100644 index 0000000..728bea9 --- /dev/null +++ b/pre_checkin.sh @@ -0,0 +1,3 @@ +#!/bin/sh +cp python-zope.exceptions.changes python-zope.exceptions-doc.changes + diff --git a/python-zope.exceptions.changes b/python-zope.exceptions.changes new file mode 100644 index 0000000..6634db5 --- /dev/null +++ b/python-zope.exceptions.changes @@ -0,0 +1,95 @@ +------------------------------------------------------------------- +Fri Jan 6 12:42:36 UTC 2023 - Dirk Müller + +- update to 4.6: + * Catch exceptions in ``formatExceptionOnly``. + Getting an exception when reporting about a different exception is not helpful. + On Python 3.11 this is needed for some HTTPErrors. + * Add official support for Python 3.11. + * Add official support for Python 3.9 and 3.10. + * Undo dropping support for Python 3.5. + * Drop support for running the tests using ``python setup.py test``. +- drop zope.exceptions-pr19+pr21-py310.patch (upstream) + +------------------------------------------------------------------- +Sun Dec 19 15:29:01 UTC 2021 - Ben Greiner + +- Add zope.exceptions-pr19+pr21-py310.patch + * gh#zopefoundation/zope.exceptions#21 + +------------------------------------------------------------------- +Tue Jul 21 09:01:45 UTC 2020 - Marketa Calabkova + +- update to version 4.4 + * Add support for Python 3.8 and preliminary support for 3.9b4. + * Drop support for Python 3.4 and 3.5. + +------------------------------------------------------------------- +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 + +- 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.spec b/python-zope.exceptions.spec new file mode 100644 index 0000000..da16939 --- /dev/null +++ b/python-zope.exceptions.spec @@ -0,0 +1,80 @@ +# +# spec file +# +# Copyright (c) 2023 SUSE LLC +# +# 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-%{**}} +%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.6 +Release: 0 +Summary: Zope Exceptions +License: ZPL-2.1 +Group: Development/Languages/Python +URL: https://cheeseshop.python.org/pypi/zope.exceptions +Source: https://files.pythonhosted.org/packages/source/z/zope.exceptions/zope.exceptions-%{version}.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-zope.interface +Obsoletes: %{name}-doc +BuildArch: noarch +%if %{with test} +BuildRequires: %{python_module zope.exceptions} +BuildRequires: %{python_module zope.interface} +BuildRequires: %{python_module zope.testrunner} +%endif +%python_subpackages + +%description +This package contains exception interfaces and implementations which are so +general purpose that they don't belong in Zope application-specific packages. + +%prep +%autosetup -p1 -n zope.exceptions-%{version} + +%build +%python_build + +%install +%if !%{with test} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif + +%if %{with test} +%check +%python_expand %{_bindir}/zope-testrunner-%{$python_bin_suffix} -vvv --test-path src +%endif + +%if !%{with test} +%files %{python_files} +%license LICENSE.txt +%doc CHANGES.rst COPYRIGHT.txt README.rst +%dir %{python_sitelib}/zope/ +%{python_sitelib}/zope/exceptions +%{python_sitelib}/zope.exceptions-%{version}*-info +%{python_sitelib}/zope.exceptions-%{version}*-nspkg.pth +%endif + +%changelog diff --git a/zope.exceptions-4.6.tar.gz b/zope.exceptions-4.6.tar.gz new file mode 100644 index 0000000..5a070e3 --- /dev/null +++ b/zope.exceptions-4.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:619d24a4c65bed97b3dd0515e732e82b69f155d42cc94955d1be8c28288683cd +size 30876