commit:     d97be91ba1e60d7e1b9af961dfbf365a0bfdfe8b
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 16 04:49:12 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Jan 16 05:11:00 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d97be91b

dev-python/zope-deprecation: Bump to 5.1

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

 dev-python/zope-deprecation/Manifest               |  1 +
 .../zope-deprecation/zope-deprecation-5.1.ebuild   | 43 ++++++++++++++++++++++
 2 files changed, 44 insertions(+)

diff --git a/dev-python/zope-deprecation/Manifest 
b/dev-python/zope-deprecation/Manifest
index 7dbd8f008faa..aa8d3ca1d06a 100644
--- a/dev-python/zope-deprecation/Manifest
+++ b/dev-python/zope-deprecation/Manifest
@@ -1 +1,2 @@
 DIST zope.deprecation-5.0.tar.gz 23353 BLAKE2B 
9b98291fe252942a8235c70c0a13bfbaf2cb3091e1502099f8a0651b517e748645cbda957f92c790c4d4f2b6ed7324cd5e21bae9d2906f2943e507376a980d76
 SHA512 
11313626e4141c2f92805c7c533b32160f88bf45667cd5a53a867daad3172947e5ac80433893c515243276030400a8a8e3d3a623ea51cb2b15bd5a5a0927bc46
+DIST zope_deprecation-5.1.tar.gz 24453 BLAKE2B 
4dc7d9639a998ba11de839145bf4fb11d3b34de29c756c87de98b833ced4a6f2de4024d7b52a4f8c9ab225bf9c459ae79656d2073b9c76a38d9d8d1397aa06e2
 SHA512 
77b32d3456c5456ffc36eec936b176cdec365fd4561dd2ac06c3222dd4360ef6339ba34601abb29e273eabc3562b6bcdac5627c35b8b95f083015ba118be7979

diff --git a/dev-python/zope-deprecation/zope-deprecation-5.1.ebuild 
b/dev-python/zope-deprecation/zope-deprecation-5.1.ebuild
new file mode 100644
index 000000000000..0e1dc958a8e7
--- /dev/null
+++ b/dev-python/zope-deprecation/zope-deprecation-5.1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYPI_PN=${PN/-/.}
+PYTHON_COMPAT=( python3_{10..13} pypy3 )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Zope Deprecation Infrastructure"
+HOMEPAGE="
+       https://pypi.org/project/zope.deprecation/
+       https://github.com/zopefoundation/zope.deprecation/
+"
+
+LICENSE="ZPL"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+
+RDEPEND="
+       !dev-python/namespace-zope
+"
+
+distutils_enable_tests unittest
+
+src_prepare() {
+       # strip rdep specific to namespaces
+       sed -i -e "s:'setuptools',::" 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