Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/zope-event/
Date: Sat, 09 Apr 2022 19:12:45
Message-Id: 1649531281.bf5ff9897380d4b69428600fdce0138b1eaf4554.mgorny@gentoo
1 commit: bf5ff9897380d4b69428600fdce0138b1eaf4554
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 9 19:05:26 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 9 19:08:01 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf5ff989
7
8 dev-python/zope-event: EAPI 8, PEP517, remove namespace dep
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/zope-event/zope-event-4.5.0-r2.ebuild | 47 ++++++++++++++++++++++++
13 1 file changed, 47 insertions(+)
14
15 diff --git a/dev-python/zope-event/zope-event-4.5.0-r2.ebuild b/dev-python/zope-event/zope-event-4.5.0-r2.ebuild
16 new file mode 100644
17 index 000000000000..578489805cb5
18 --- /dev/null
19 +++ b/dev-python/zope-event/zope-event-4.5.0-r2.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="Event publishing / dispatch, used by Zope Component Architecture"
34 +HOMEPAGE="
35 + https://pypi.org/project/zope.event/
36 + https://github.com/zopefoundation/zope.event/
37 +"
38 +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
39 +S="${WORKDIR}/${MY_P}"
40 +
41 +LICENSE="ZPL"
42 +SLOT="0"
43 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
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 +}