Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/shapely/
Date: Mon, 20 Sep 2021 06:55:58
Message-Id: 1632120938.4e4e6abf7e75aac984341cacf3426862ff6ec689.arthurzam@gentoo
1 commit: 4e4e6abf7e75aac984341cacf3426862ff6ec689
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 20 06:55:38 2021 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 20 06:55:38 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e4e6abf
7
8 sci-libs/shapely: enable py3.10
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 sci-libs/shapely/shapely-1.7.1-r1.ebuild | 28 +++++++++-------------------
13 1 file changed, 9 insertions(+), 19 deletions(-)
14
15 diff --git a/sci-libs/shapely/shapely-1.7.1-r1.ebuild b/sci-libs/shapely/shapely-1.7.1-r1.ebuild
16 index 7c75f9f5be2..749e53b1ac3 100644
17 --- a/sci-libs/shapely/shapely-1.7.1-r1.ebuild
18 +++ b/sci-libs/shapely/shapely-1.7.1-r1.ebuild
19 @@ -3,39 +3,29 @@
20
21 EAPI=7
22
23 -MY_PN="Shapely"
24 -MY_P="${MY_PN}-${PV}"
25 -
26 -PYTHON_COMPAT=( python3_{7..9} )
27 -
28 +PYTHON_COMPAT=( python3_{8..10} )
29 inherit distutils-r1
30
31 DESCRIPTION="Geometric objects, predicates, and operations"
32 HOMEPAGE="https://pypi.org/project/Shapely/ https://github.com/Toblerity/Shapely"
33 SRC_URI="https://github.com/Toblerity/Shapely/archive/${PV}.tar.gz -> ${P}.tar.gz"
34 +S="${WORKDIR}/${P^}"
35
36 LICENSE="BSD"
37 SLOT="0"
38 KEYWORDS="amd64 ~arm64 x86"
39
40 -RDEPEND="
41 +DEPEND=">=sci-libs/geos-3.9"
42 +RDEPEND="${DEPEND}
43 dev-python/numpy[${PYTHON_USEDEP}]
44 - >=sci-libs/geos-3.9
45 "
46 -
47 -BDEPEND="${RDEPEND}
48 +BDEPEND="${DEPEND}
49 dev-python/cython[${PYTHON_USEDEP}]
50 "
51
52 -S="${WORKDIR}/${MY_P}"
53 -
54 -PATCHES=( "${FILESDIR}/${P}-tests-support-geos-3.9.patch" )
55 -
56 -distutils_enable_tests pytest
57 +PATCHES=(
58 + "${FILESDIR}/${P}-tests-support-geos-3.9.patch"
59 +)
60
61 +distutils_enable_tests --install pytest
62 distutils_enable_sphinx docs dev-python/matplotlib
63 -
64 -python_test() {
65 - distutils_install_for_testing
66 - ${EPYTHON} -m pytest tests || die "tests failed under ${EPYTHON}"
67 -}