Gentoo Archives: gentoo-commits

From: Thomas Beierlein <tomjbe@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/cartopy/
Date: Sat, 09 Oct 2021 07:33:29
Message-Id: 1633764793.98e33d90c1acdccdfb59551f4eb1e1ce800143d0.tomjbe@gentoo
1 commit: 98e33d90c1acdccdfb59551f4eb1e1ce800143d0
2 Author: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 9 07:32:09 2021 +0000
4 Commit: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 9 07:33:13 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98e33d90
7
8 sci-libs/cartopy: Version bump
9
10 Package-Manager: Portage-3.0.28, Repoman-3.0.3
11 Signed-off-by: Thomas Beierlein <tomjbe <AT> gentoo.org>
12
13 sci-libs/cartopy/Manifest | 1 +
14 sci-libs/cartopy/cartopy-0.19.0.ebuild | 69 ++++++++++++++++++++++++++++++++++
15 2 files changed, 70 insertions(+)
16
17 diff --git a/sci-libs/cartopy/Manifest b/sci-libs/cartopy/Manifest
18 index 15559100d5e..0417f6eb7b5 100644
19 --- a/sci-libs/cartopy/Manifest
20 +++ b/sci-libs/cartopy/Manifest
21 @@ -1 +1,2 @@
22 DIST cartopy-0.18.0.tar.gz 14191937 BLAKE2B bb10791ef2534dad404cc492e378161a4a078813b09d6e2c16d0d465c7dcfbaa7f24d3818cfe0f1f46e7683bdf2e00440640534835ce064492d5321489e355bc SHA512 912d5ab57c96b9e6c51b3ad26f94d77e495eb9c3a8fb8a68bdd957c11b1bc8a3ddc97e76e0d8a5ec9afca9302b01fe5753f4208ec3829df8741ee0ebbaafe30f
23 +DIST cartopy-0.19.0.tar.gz 11738107 BLAKE2B 129a32850947e3439505812655b0feb25f33e3b45a909be56a0093cba41acbf777be7e899b528cc910e044fc8844438283eff4d20a1433ab5ea3c58f240efa0f SHA512 5019c752fed18295048cdbe927e28040b61327414262c67c079572969e8ec3abd76f4cb0e6dd1f8ee4cfb88426cbd926ff9a2e934e8d47b8a3180bf748bd7364
24
25 diff --git a/sci-libs/cartopy/cartopy-0.19.0.ebuild b/sci-libs/cartopy/cartopy-0.19.0.ebuild
26 new file mode 100644
27 index 00000000000..236d53b0c15
28 --- /dev/null
29 +++ b/sci-libs/cartopy/cartopy-0.19.0.ebuild
30 @@ -0,0 +1,69 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +PYTHON_COMPAT=( python3_{7..9} )
37 +
38 +inherit distutils-r1 virtualx
39 +
40 +MY_PV=${PV/_beta/b}
41 +MY_P=${PN}-${MY_PV}
42 +
43 +DESCRIPTION="Python package for geospatial data processing and analysis"
44 +HOMEPAGE="https://scitools.org.uk/cartopy"
45 +SRC_URI="https://github.com/SciTools/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
46 +
47 +LICENSE="LGPL-3"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~x86"
50 +IUSE="test"
51 +RESTRICT="!test? ( test )"
52 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
53 +
54 +RDEPEND="
55 + ${PYTHON_DEPS}
56 + dev-python/numpy[${PYTHON_USEDEP}]
57 + sci-libs/pyshp[${PYTHON_USEDEP}]
58 + sci-libs/shapely[${PYTHON_USEDEP}]
59 + dev-python/six[${PYTHON_USEDEP}]
60 + dev-python/matplotlib[${PYTHON_USEDEP}]
61 + dev-python/scipy[${PYTHON_USEDEP}]
62 + dev-python/pillow[jpeg,${PYTHON_USEDEP}]
63 + sci-libs/gdal[python,${PYTHON_USEDEP}]
64 +"
65 +
66 +DEPEND="${RDEPEND}
67 + dev-python/setuptools[${PYTHON_USEDEP}]
68 + dev-python/cython[${PYTHON_USEDEP}]
69 + sci-libs/geos
70 + <sci-libs/proj-8
71 +"
72 +
73 +distutils_enable_tests pytest
74 +
75 +DEPEND+="test? (
76 + dev-python/filelock[${PYTHON_USEDEP}]
77 + dev-python/mock[${PYTHON_USEDEP}]
78 + dev-python/pytest[${PYTHON_USEDEP}]
79 + dev-python/setuptools_scm_git_archive[${PYTHON_USEDEP}]
80 + dev-python/flufl-lock[$PYTHON_USEDEP]
81 + )"
82 +
83 +S="${WORKDIR}"/${MY_P}
84 +
85 +python_prepare_all() {
86 + # drop test file requiring network access, which got not covered by markers
87 + rm "${S}"/lib/cartopy/tests/mpl/test_crs.py || die
88 + rm "${S}"/lib/cartopy/tests/mpl/test_gridliner.py || die
89 + # prepare matplotlib backend for test suite
90 + export MPLCONFIGDIR="${T}"
91 + echo "backend : Agg" > "${MPLCONFIGDIR}"/matplotlibrc || die
92 + distutils-r1_python_prepare_all
93 +}
94 +
95 +python_test() {
96 + cd "${BUILD_DIR}"
97 + # drop all tests needing network access
98 + virtx pytest -vv -m "not network and not natural_earth" || die "test failed"
99 +}