1 |
commit: ad347a5dbed08f11f9ecc2b52598a212697ee8df |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 9 19:02:41 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 9 19:07:59 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad347a5d |
7 |
|
8 |
dev-python/zope-deprecation: EAPI 8, PEP517, remove namespace dep |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
.../zope-deprecation-4.4.0-r1.ebuild | 47 ++++++++++++++++++++++ |
13 |
1 file changed, 47 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/zope-deprecation/zope-deprecation-4.4.0-r1.ebuild b/dev-python/zope-deprecation/zope-deprecation-4.4.0-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..3aa022b61549 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/zope-deprecation/zope-deprecation-4.4.0-r1.ebuild |
20 |
@@ -0,0 +1,47 @@ |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=8 |
25 |
+ |
26 |
+DISTUTILS_USE_PEP517=setuptools |
27 |
+PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
28 |
+ |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+MY_PN=${PN/-/.} |
32 |
+MY_P=${MY_PN}-${PV} |
33 |
+DESCRIPTION="Zope Deprecation Infrastructure" |
34 |
+HOMEPAGE=" |
35 |
+ https://pypi.org/project/zope.deprecation/ |
36 |
+ https://github.com/zopefoundation/zope.deprecation/ |
37 |
+" |
38 |
+SRC_URI="mirror://pypi/${MY_PN::1}/${MY_PN}/${MY_P}.tar.gz" |
39 |
+S="${WORKDIR}/${MY_P}" |
40 |
+ |
41 |
+LICENSE="ZPL" |
42 |
+SLOT="0" |
43 |
+KEYWORDS="~amd64 ~x86" |
44 |
+ |
45 |
+distutils_enable_tests unittest |
46 |
+ |
47 |
+src_prepare() { |
48 |
+ # strip rdep specific to namespaces |
49 |
+ sed -i -e "/'setuptools'/d" setup.py || die |
50 |
+ distutils-r1_src_prepare |
51 |
+} |
52 |
+ |
53 |
+python_compile() { |
54 |
+ distutils-r1_python_compile |
55 |
+ find "${BUILD_DIR}" -name '*.pth' -delete || die |
56 |
+} |
57 |
+ |
58 |
+python_test() { |
59 |
+ cd "${BUILD_DIR}/install$(python_get_sitedir)" || die |
60 |
+ # this is needed to keep the tests working while |
61 |
+ # dev-python/namespace-zope is still installed |
62 |
+ cat > zope/__init__.py <<-EOF || die |
63 |
+ __path__ = __import__('pkgutil').extend_path(__path__, __name__) |
64 |
+ EOF |
65 |
+ eunittest |
66 |
+ rm zope/__init__.py || die |
67 |
+} |