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-schema/
Date: Mon, 02 Jan 2023 14:54:32
Message-Id: 1672671261.fabc12c53119d3c1d149e2061616059fe43486f8.mgorny@gentoo
1 commit: fabc12c53119d3c1d149e2061616059fe43486f8
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 2 14:34:59 2023 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 2 14:54:21 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fabc12c5
7
8 dev-python/zope-schema: Bump to 7.0.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/zope-schema/Manifest | 1 +
13 dev-python/zope-schema/zope-schema-7.0.0.ebuild | 54 +++++++++++++++++++++++++
14 2 files changed, 55 insertions(+)
15
16 diff --git a/dev-python/zope-schema/Manifest b/dev-python/zope-schema/Manifest
17 index 2edc8a5bc907..f78fac1abf2e 100644
18 --- a/dev-python/zope-schema/Manifest
19 +++ b/dev-python/zope-schema/Manifest
20 @@ -1 +1,2 @@
21 DIST zope.schema-6.2.1.tar.gz 124649 BLAKE2B 71ac712d3dbd6c9063ddc213263ce3a356f0ec757466cacdbc216af95cdb9de3ca7f891c203880f9f22612e01259491d83c49fcbe9985ecaabf1629ea14e12ea SHA512 e3fabd3deabb4ac2087792be94b919b7c9a0f0c741316d6f67a42e24fe617091754183b32d8433664b6fa95569009def8e7e1e08f34013282b042eb32da323a6
22 +DIST zope.schema-7.0.0.tar.gz 108220 BLAKE2B 01fd94d6d9b33af7ffc12ced2724fc795f0fa2dd8a76c76e06ed8af837778335cdc8a6d87e41e6e934b0df8e59b30e94f5e6c1b4752dcfaefcbbae53cbcef238 SHA512 27e796d2ed5f7b053c5ab4a23f455b72ddc4f0ce10c38c58f9974ec20abb97bf9d7f4b0c11c6ab73e9fefdc726c614155abb69b987bf3fa37d37b1224bcbc106
23
24 diff --git a/dev-python/zope-schema/zope-schema-7.0.0.ebuild b/dev-python/zope-schema/zope-schema-7.0.0.ebuild
25 new file mode 100644
26 index 000000000000..fe0606a32410
27 --- /dev/null
28 +++ b/dev-python/zope-schema/zope-schema-7.0.0.ebuild
29 @@ -0,0 +1,54 @@
30 +# Copyright 1999-2023 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} pypy3 )
37 +
38 +inherit distutils-r1
39 +
40 +MY_PN=${PN/-/.}
41 +MY_P=${MY_PN}-${PV}
42 +DESCRIPTION="Zope schema Architecture"
43 +HOMEPAGE="
44 + https://pypi.org/project/zope.schema/
45 + https://github.com/zopefoundation/zope.schema/
46 +"
47 +SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
48 +S="${WORKDIR}/${MY_P}"
49 +
50 +LICENSE="ZPL"
51 +SLOT="0"
52 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
53 +
54 +RDEPEND="
55 + dev-python/zope-event[${PYTHON_USEDEP}]
56 + >=dev-python/zope-interface-5.0.0[${PYTHON_USEDEP}]
57 + !dev-python/namespace-zope
58 +"
59 +BDEPEND="
60 + test? (
61 + dev-python/zope-i18nmessageid[${PYTHON_USEDEP}]
62 + dev-python/zope-testing[${PYTHON_USEDEP}]
63 + )
64 +"
65 +
66 +distutils_enable_tests unittest
67 +
68 +src_prepare() {
69 + # strip rdep specific to namespaces
70 + sed -i -e "/'setuptools'/d" setup.py || die
71 + distutils-r1_src_prepare
72 +}
73 +
74 +python_compile() {
75 + distutils-r1_python_compile
76 + find "${BUILD_DIR}" -name '*.pth' -delete || die
77 +}
78 +
79 +python_test() {
80 + cd "${BUILD_DIR}/install$(python_get_sitedir)" || die
81 + distutils_write_namespace zope
82 + eunittest
83 +}