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-hookable/
Date: Thu, 22 Sep 2022 12:17:43
Message-Id: 1663849015.de96c5274eda44eedacfee957c4163ccf532f0f2.mgorny@gentoo
1 commit: de96c5274eda44eedacfee957c4163ccf532f0f2
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 22 12:16:55 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 22 12:16:55 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de96c527
7
8 dev-python/zope-hookable: Bump to 5.2
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/zope-hookable/Manifest | 1 +
13 dev-python/zope-hookable/zope-hookable-5.2.ebuild | 47 +++++++++++++++++++++++
14 2 files changed, 48 insertions(+)
15
16 diff --git a/dev-python/zope-hookable/Manifest b/dev-python/zope-hookable/Manifest
17 index f68460b1feec..7045767c2261 100644
18 --- a/dev-python/zope-hookable/Manifest
19 +++ b/dev-python/zope-hookable/Manifest
20 @@ -1 +1,2 @@
21 DIST zope.hookable-5.1.0.tar.gz 21922 BLAKE2B c8bb0c6fb20718127fc2b3d7a2654035a14f87a52b41331ec3d564fe7dd175a977911e1a5847e544e30eeeb473b1fdb5d75ece7ece4b5a4212fec8f6d85a3d44 SHA512 af63fd7c83bbaf2c6c1faaefc7081a9a739b835fb5f1fe48f8f6b66a82596d52d0559df8de1beceb129578ee2ed9711ee05a9aa2dd0eec98dca6db40b45a4665
22 +DIST zope.hookable-5.2.tar.gz 24004 BLAKE2B f1b64a906a849442437a3829d509210280066b41bc97fbedcd02b462fa9c7761910a7a71ed00430679f7c3ec9648c8a9ab5e88d4e8143018e44194d56611353a SHA512 b04107acedcc245fa99a59de71ffeaabe270ec15eaac32df1f5433ca16ea568d60c272349c8c8d7e512dfadef4fc8fcebf63a62ee9c8607fc02505a4457e1ed3
23
24 diff --git a/dev-python/zope-hookable/zope-hookable-5.2.ebuild b/dev-python/zope-hookable/zope-hookable-5.2.ebuild
25 new file mode 100644
26 index 000000000000..04174bc95162
27 --- /dev/null
28 +++ b/dev-python/zope-hookable/zope-hookable-5.2.ebuild
29 @@ -0,0 +1,47 @@
30 +# Copyright 2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +DISTUTILS_USE_PEP517=setuptools
36 +PYTHON_COMPAT=( python3_{8..11} )
37 +
38 +inherit distutils-r1
39 +
40 +MY_PN=${PN/-/.}
41 +MY_P=${MY_PN}-${PV}
42 +
43 +DESCRIPTION="Efficient creation of 'hookable' objects"
44 +HOMEPAGE="
45 + https://pypi.org/project/zope.hookable/
46 + https://github.com/zopefoundation/zope.hookable/
47 +"
48 +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
49 +S=${WORKDIR}/${MY_P}
50 +
51 +LICENSE="ZPL"
52 +SLOT="0"
53 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
54 +
55 +BDEPEND="
56 + test? (
57 + dev-python/zope-testing[${PYTHON_USEDEP}]
58 + )
59 +"
60 +
61 +distutils_enable_tests unittest
62 +
63 +src_prepare() {
64 + # strip rdep specific to namespaces
65 + sed -i -e "/'setuptools'/d" setup.py || die
66 + distutils-r1_src_prepare
67 +}
68 +
69 +python_compile() {
70 + distutils-r1_python_compile
71 + find "${BUILD_DIR}" -name '*.pth' -delete || die
72 +}
73 +
74 +python_test() {
75 + eunittest -s "${BUILD_DIR}/install$(python_get_sitedir)/zope/hookable/tests"
76 +}