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-interface/
Date: Sat, 09 Apr 2022 14:59:00
Message-Id: 1649516334.d437b94af2b8c4fc78530e2dfc5189e6c025527e.mgorny@gentoo
1 commit: d437b94af2b8c4fc78530e2dfc5189e6c025527e
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 9 14:55:23 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 9 14:58:54 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d437b94a
7
8 dev-python/zope-interface: EAPI 8, PEP517, namespace retirement
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 .../zope-interface/zope-interface-5.4.0-r1.ebuild | 50 ++++++++++++++++++++++
13 1 file changed, 50 insertions(+)
14
15 diff --git a/dev-python/zope-interface/zope-interface-5.4.0-r1.ebuild b/dev-python/zope-interface/zope-interface-5.4.0-r1.ebuild
16 new file mode 100644
17 index 000000000000..e1ec0460269b
18 --- /dev/null
19 +++ b/dev-python/zope-interface/zope-interface-5.4.0-r1.ebuild
20 @@ -0,0 +1,50 @@
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 +
34 +DESCRIPTION="Interfaces for Python"
35 +HOMEPAGE="https://pypi.org/project/zope.interface/ https://github.com/zopefoundation/zope.interface"
36 +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
37 +S=${WORKDIR}/${MY_P}
38 +
39 +LICENSE="ZPL"
40 +SLOT="0"
41 +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"
42 +
43 +BDEPEND="
44 + test? (
45 + dev-python/zope-event[${PYTHON_USEDEP}]
46 + dev-python/zope-testing[${PYTHON_USEDEP}]
47 + )
48 +"
49 +
50 +PATCHES=(
51 + "${FILESDIR}"/5.1.0-drop-coverage.patch
52 +)
53 +
54 +distutils_enable_tests unittest
55 +
56 +python_compile() {
57 + distutils-r1_python_compile
58 + find "${BUILD_DIR}" -name '*.pth' -delete || die
59 +}
60 +
61 +python_test() {
62 + cd "${BUILD_DIR}/install$(python_get_sitedir)" || die
63 + # this is needed to keep the tests working while
64 + # dev-python/namespace-zope is still installed
65 + cat > zope/__init__.py <<-EOF || die
66 + __path__ = __import__('pkgutil').extend_path(__path__, __name__)
67 + EOF
68 + eunittest
69 + rm zope/__init__.py || die
70 +}