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/pyproj/
Date: Tue, 25 May 2021 05:14:00
Message-Id: 1621918613.3fbfbfc647673d0f443564035c66a943a0cb4ac3.mgorny@gentoo
1 commit: 3fbfbfc647673d0f443564035c66a943a0cb4ac3
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 25 04:18:20 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue May 25 04:56:53 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3fbfbfc6
7
8 dev-python/pyproj: Bump to 3.1.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pyproj/Manifest | 1 +
13 dev-python/pyproj/pyproj-3.1.0.ebuild | 49 +++++++++++++++++++++++++++++++++++
14 2 files changed, 50 insertions(+)
15
16 diff --git a/dev-python/pyproj/Manifest b/dev-python/pyproj/Manifest
17 index 37f1b315049..e39eabb0e2d 100644
18 --- a/dev-python/pyproj/Manifest
19 +++ b/dev-python/pyproj/Manifest
20 @@ -1 +1,2 @@
21 DIST pyproj-3.0.1.tar.gz 168962 BLAKE2B 3271d604148c122f4dfdd68c4237e1911f30da7cc858128d644b6b6807c3e49450e0b42c385d37bbe1cfa5ab80d635e7f620d41bf5089af6b49a542eb9b3fcd0 SHA512 f5ae0ede1deaa93757cb98cc680d6e47a19b9f5c0ce5e357c2ecfe96f764ff59ec7285c606162da38573123d21f12f1df82354f1d2205149970af2d7d63c2689
22 +DIST pyproj-3.1.0.tar.gz 182603 BLAKE2B d4e95f62b10b282e7bbfcb7a2059a11a489e53402cbb1760b7da73248dfc05de6be8ca820e55d34c9270eea38178f1fb934bd5ffc389833b3734b87b79991187 SHA512 21a5d08207676d8d9722cb5e3b13ed68f03b1a2aa034c20c61bb8dab5d204dd968ba9a3df1b0c43ed174e082725c7624efb75a0c9c3df920808cbcb44f4d170a
23
24 diff --git a/dev-python/pyproj/pyproj-3.1.0.ebuild b/dev-python/pyproj/pyproj-3.1.0.ebuild
25 new file mode 100644
26 index 00000000000..6061e44b117
27 --- /dev/null
28 +++ b/dev-python/pyproj/pyproj-3.1.0.ebuild
29 @@ -0,0 +1,49 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +PYTHON_COMPAT=( python3_{7..9} )
36 +inherit distutils-r1
37 +
38 +DESCRIPTION="Python interface to the PROJ library"
39 +HOMEPAGE="https://github.com/pyproj4/pyproj"
40 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P/_p/.post}.tar.gz"
41 +S="${WORKDIR}/${P/_p/.post}"
42 +
43 +LICENSE="MIT"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~x86 ~amd64-linux"
46 +
47 +RDEPEND=">=sci-libs/proj-7.2.0:="
48 +BDEPEND="
49 + dev-python/cython[${PYTHON_USEDEP}]
50 + test? (
51 + dev-python/mock[${PYTHON_USEDEP}]
52 + dev-python/numpy[${PYTHON_USEDEP}]
53 + dev-python/pandas[${PYTHON_USEDEP}]
54 + dev-python/xarray[${PYTHON_USEDEP}]
55 + sci-libs/shapely[${PYTHON_USEDEP}]
56 + )"
57 +
58 +distutils_enable_sphinx docs dev-python/sphinx_rtd_theme
59 +distutils_enable_tests --install pytest
60 +
61 +python_test() {
62 + local deselect=(
63 + # TODO
64 + test/test_datum.py
65 + test/test_transformer.py::test_transform_wgs84_to_alaska
66 + test/test_transformer.py::test_repr__conditional
67 + test/test_transformer.py::test_transformer_group__unavailable
68 + test/test_transformer.py::test_transformer_group__network_disabled
69 + test/test_transformer.py::test_transformer_group__download_grids__directory
70 + test/crs/test_crs.py::test_coordinate_operation_grids__alternative_grid_name
71 + )
72 +
73 + distutils_install_for_testing
74 + cp -r test "${BUILD_DIR}" || die
75 + cd "${BUILD_DIR}" || die
76 + epytest --import-mode=append -m "not network" \
77 + ${deselect[@]/#/--deselect } test
78 +}