Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/zope-configuration/
Date: Wed, 22 Sep 2021 13:30:29
Message-Id: 1632317375.cb39e50eab7ebf73c2fec2aa3bb5b728354034a7.arthurzam@gentoo
1 commit: cb39e50eab7ebf73c2fec2aa3bb5b728354034a7
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 22 13:29:35 2021 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 22 13:29:35 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb39e50e
7
8 dev-python/zope-configuration: enable py3.10, enable tests
9
10 Closes: https://bugs.gentoo.org/798618
11 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
12
13 .../zope-configuration-4.4.0-r1.ebuild | 45 ++++++++++++++++++++++
14 1 file changed, 45 insertions(+)
15
16 diff --git a/dev-python/zope-configuration/zope-configuration-4.4.0-r1.ebuild b/dev-python/zope-configuration/zope-configuration-4.4.0-r1.ebuild
17 new file mode 100644
18 index 00000000000..843acb2a615
19 --- /dev/null
20 +++ b/dev-python/zope-configuration/zope-configuration-4.4.0-r1.ebuild
21 @@ -0,0 +1,45 @@
22 +# Copyright 1999-2021 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +
27 +DISTUTILS_USE_SETUPTOOLS=rdepend
28 +PYTHON_COMPAT=( python3_{8..10} )
29 +
30 +inherit distutils-r1
31 +
32 +MY_PN=${PN/-/.}
33 +MY_P=${MY_PN}-${PV}
34 +
35 +DESCRIPTION="Zope Configuration Architecture"
36 +HOMEPAGE="https://github.com/zopefoundation/zope.configuration
37 + https://docs.zope.org/zope.configuration/"
38 +SRC_URI="mirror://pypi/${PN:0: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 +RDEPEND="dev-python/zope-i18nmessageid[${PYTHON_USEDEP}]
46 + dev-python/zope-interface[${PYTHON_USEDEP}]
47 + >=dev-python/zope-schema-4.9[${PYTHON_USEDEP}]"
48 +BDEPEND="
49 + test? (
50 + dev-python/manuel[${PYTHON_USEDEP}]
51 + dev-python/zope-testing[${PYTHON_USEDEP}]
52 + )
53 +"
54 +
55 +distutils_enable_tests unittest
56 +
57 +python_test() {
58 + eunittest src
59 +}
60 +
61 +python_install_all() {
62 + distutils-r1_python_install_all
63 +
64 + # remove .pth files since dev-python/namespace-zope handles the ns
65 + find "${D}" -name '*.pth' -delete || die
66 +}