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/ipy/
Date: Sat, 29 Jan 2022 15:02:20
Message-Id: 1643468365.ed4a85925569a32886cd88bfedaae6b249a34e29.mgorny@gentoo
1 commit: ed4a85925569a32886cd88bfedaae6b249a34e29
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 29 14:59:25 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 29 14:59:25 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed4a8592
7
8 dev-python/ipy: Switch to PEP 517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/ipy/ipy-1.01-r1.ebuild | 36 ++++++++++++++++++++++++++++++++++++
13 1 file changed, 36 insertions(+)
14
15 diff --git a/dev-python/ipy/ipy-1.01-r1.ebuild b/dev-python/ipy/ipy-1.01-r1.ebuild
16 new file mode 100644
17 index 000000000000..3557a2fbcd28
18 --- /dev/null
19 +++ b/dev-python/ipy/ipy-1.01-r1.ebuild
20 @@ -0,0 +1,36 @@
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} )
28 +
29 +inherit distutils-r1
30 +
31 +MY_PN="IPy"
32 +MY_P="${MY_PN}-${PV}"
33 +DESCRIPTION="Class and tools for handling of IPv4 and IPv6 addresses and networks"
34 +HOMEPAGE="https://github.com/autocracy/python-ipy/wiki https://pypi.org/project/IPy/"
35 +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
36 +S="${WORKDIR}/${MY_PN}-${PV}"
37 +
38 +LICENSE="BSD"
39 +SLOT="0"
40 +KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~sparc ~x86"
41 +IUSE="examples"
42 +
43 +python_test() {
44 + "${EPYTHON}" test/test_IPy.py || die "Tests fail with ${EPYTHON}"
45 + "${EPYTHON}" test_doc.py || die "Doctests fail with ${EPYTHON}"
46 +}
47 +
48 +python_install_all() {
49 + if use examples; then
50 + docinto examples
51 + dodoc -r example/.
52 + docompress -x /usr/share/doc/${PF}/examples
53 + fi
54 +
55 + distutils-r1_python_install_all
56 +}