-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-python/geopandas: add 1.0.1 with masked tests
- add version numbers to DEPENDs - use EPYTEST_DESELECT - add known test failiures to deselect - improve comment - clean out optfeatures Signed-off-by: Filip Kobierski <fkobi@pm.me> Closes: #1302 Signed-off-by: Nowa Ammerlaan <nowa@gentoo.org>
- Loading branch information
1 parent
4d760cb
commit ca4be3f
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
DIST geopandas-0.13.2.gh.tar.gz 6388249 BLAKE2B 910f32ea7d798bbdeee77be190c57daf7bdc719901a2183b5328ec13619ff9b4145d1717afed8fc71da154d84f388ce2bc30c541478f95ed121c7d8681c691ae SHA512 4dff4bfeca2490081c02c41edf92037fa8a8f4b030b6f6a0cdc231b3119f829604af39277125db9535c66aac0698d2d4dcfac2bb58b92d31bea83f0ee296e21a | ||
DIST geopandas-1.0.1.gh.tar.gz 6433127 BLAKE2B 4d96ca174ed5a3bb35088b60d547d42f1a46b0eb4cab8aeaaf4cd74c42c1b134864c3bcd7842ac5e5b58c1a480f290732a4e8da626dcd935bdb4b1e233b2db1d SHA512 41ed79c1c798837b063ee45b1cda677b9f205cbc38e0ead019f86406a626fb8cfaae111ca8cead369c46155102665da094fa6d9ae2588290fa38b546a3875d87 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Copyright 1999-2024 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
PYTHON_COMPAT=( python3_{10..12} ) | ||
DISTUTILS_USE_PEP517=setuptools | ||
inherit distutils-r1 optfeature | ||
|
||
DESCRIPTION="Python tools for geographic data" | ||
HOMEPAGE=" | ||
https://github.com/geopandas/geopandas | ||
https://pypi.org/project/geopandas/ | ||
" | ||
SRC_URI="https://github.com/geopandas/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" | ||
|
||
LICENSE="BSD" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~x86" | ||
RESTRICT="test" # 10 tests fail for 1.0.1 | ||
|
||
# upstream order | ||
RDEPEND=" | ||
dev-python/numpy[${PYTHON_USEDEP}] | ||
>=dev-python/pandas-1.4[${PYTHON_USEDEP}] | ||
>=dev-python/shapely-2.0.0[${PYTHON_USEDEP}] | ||
>=dev-python/pyproj-3.3.0[${PYTHON_USEDEP}] | ||
dev-python/fiona[${PYTHON_USEDEP}] | ||
" | ||
|
||
EPYTEST_DESELECT=( | ||
# violates network sandbox | ||
geopandas/io/tests/test_file.py::test_read_file_url | ||
# fails with RuntimeError thrown by matplotlib | ||
geopandas/tests/test_plotting.py::TestGeoplotAccessor::test_pandas_kind | ||
|
||
# rtree results are known to be unordered, see False-expected1 | ||
geopandas/tests/test_sindex.py::TestShapelyInterface::test_query_bulk_sorting | ||
geopandas/tests/test_sindex.py::TestShapelyInterface::test_query_sorting | ||
) | ||
distutils_enable_tests pytest | ||
|
||
pkg_postinst() { | ||
optfeature "plotting" >=dev-python/matplotlib-3.5.0 | ||
optfeature "geocoding" sci-geosciences/geopy | ||
elog "For full optional dependencies list visit" | ||
elog "https://geopandas.org/en/stable/getting_started/install.html#dependencies" | ||
} |