Skip to content

Commit

Permalink
dev-python/geopandas: add 1.0.1 with masked tests
Browse files Browse the repository at this point in the history
- 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
fkobi authored and Nowa-Ammerlaan committed Nov 19, 2024
1 parent 4d760cb commit ca4be3f
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev-python/geopandas/Manifest
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
48 changes: 48 additions & 0 deletions dev-python/geopandas/geopandas-1.0.1.ebuild
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"
}

0 comments on commit ca4be3f

Please sign in to comment.