commit:     db74f14cc2734980aac04c833e50f02f5b238051
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun May  4 19:16:09 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun May  4 19:16:09 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db74f14c

dev-python/zope-exceptions: Remove old

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/zope-exceptions/Manifest                |  1 -
 .../files/zope-exceptions-5.1-py313.patch          | 24 -----------
 .../zope-exceptions/zope-exceptions-5.1.ebuild     | 50 ----------------------
 3 files changed, 75 deletions(-)

diff --git a/dev-python/zope-exceptions/Manifest 
b/dev-python/zope-exceptions/Manifest
index 4bb32d514861..ce86ab27c71c 100644
--- a/dev-python/zope-exceptions/Manifest
+++ b/dev-python/zope-exceptions/Manifest
@@ -1,2 +1 @@
-DIST zope.exceptions-5.1.tar.gz 31416 BLAKE2B 
62e5ddc72f36349a6e4810ee6932dbe9e80fb3c3ac5171cebcb4433832d593bf01edfbd573a5f2dc7546599d018144d28a2968598c3c43e72e3b7639e96f13bf
 SHA512 
08e0b3b895089b35805519002f11302e6529d12257a5582f682257c4b5313c4e183d2b06241729fe542fcd407b1f29fbd6798605930b759daca335ed3df84652
 DIST zope.exceptions-5.2.tar.gz 31520 BLAKE2B 
6a3ed767e2fcba1f012963c22f9de25948ba7a14674490f0d315321261faa0aaf15ffa813df764d8d293ef43d6fd24fceb4def2b70280741858ec4ec02e595e2
 SHA512 
55174507bfc24a2eb78d32feeaf9775f78e085fedda74ef3b3a10a782daefa2539769a18bc6304d489fe77b3b22a4636a3233641cbd64f2007940ecedeabc8d6

diff --git a/dev-python/zope-exceptions/files/zope-exceptions-5.1-py313.patch 
b/dev-python/zope-exceptions/files/zope-exceptions-5.1-py313.patch
deleted file mode 100644
index 623b53b32376..000000000000
--- a/dev-python/zope-exceptions/files/zope-exceptions-5.1-py313.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-diff --git a/src/zope/exceptions/tests/test_exceptionformatter.py 
b/src/zope/exceptions/tests/test_exceptionformatter.py
-index 92ea79a..0e18d8d 100644
---- a/src/zope/exceptions/tests/test_exceptionformatter.py
-+++ b/src/zope/exceptions/tests/test_exceptionformatter.py
-@@ -24,6 +24,7 @@ from urllib.error import HTTPError
- 
- 
- IS_PY39_OR_GREATER = sys.version_info >= (3, 9)
-+IS_PY313_OR_GREATER = sys.version_info >= (3, 13)
- 
- 
- class TextExceptionFormatterTests(unittest.TestCase):
-@@ -763,8 +764,10 @@ class Test_format_exception(unittest.TestCase):
-             </ul><p>  File "&lt;string&gt;", line 1<br />
-                 import<br />
-                      ^<br />
--            SyntaxError: invalid syntax<br />
-+            SyntaxError: {error}<br />
-             </p>""").format(
-+                error="Expected one or more names after 'import'"
-+                      if IS_PY313_OR_GREATER else 'invalid syntax',
-                 module='zope.exceptions.tests.test_exceptionformatter',
-                 fn='test_format_exception_as_html',
-         )

diff --git a/dev-python/zope-exceptions/zope-exceptions-5.1.ebuild 
b/dev-python/zope-exceptions/zope-exceptions-5.1.ebuild
deleted file mode 100644
index 956910d21e15..000000000000
--- a/dev-python/zope-exceptions/zope-exceptions-5.1.ebuild
+++ /dev/null
@@ -1,50 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYPI_NO_NORMALIZE=1
-PYPI_PN=${PN/-/.}
-PYTHON_COMPAT=( python3_{10..13} pypy3 )
-
-inherit distutils-r1 pypi
-
-DESCRIPTION="General purpose exceptions for Zope packages"
-HOMEPAGE="
-       https://pypi.org/project/zope.exceptions/
-       https://github.com/zopefoundation/zope.exceptions/
-"
-
-LICENSE="ZPL"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
-
-RDEPEND="
-       dev-python/zope-interface[${PYTHON_USEDEP}]
-       !dev-python/namespace-zope
-"
-
-distutils_enable_tests unittest
-
-src_prepare() {
-       local PATCHES=(
-               # https://github.com/zopefoundation/zope.exceptions/issues/34
-               "${FILESDIR}/${P}-py313.patch"
-       )
-
-       # strip rdep specific to namespaces
-       sed -i -e "/'setuptools'/d" setup.py || die
-       distutils-r1_src_prepare
-}
-
-python_compile() {
-       distutils-r1_python_compile
-       find "${BUILD_DIR}" -name '*.pth' -delete || die
-}
-
-python_test() {
-       cd "${BUILD_DIR}/install$(python_get_sitedir)" || die
-       distutils_write_namespace zope
-       eunittest
-}

Reply via email to