From 77c62652392367cc93b020f8696cdf2633055af4 Mon Sep 17 00:00:00 2001 From: Filip Kobierski Date: Fri, 15 Nov 2024 15:24:06 +0100 Subject: [PATCH] dev-python/geopandas: add 1.0.1 with failing tests - add version numbers to DEPENDs - use EPYTEST_DESELECT - add EPYTEST_IGNORE (does not work from what I can tell) - improve comment - clean out optfeatures Signed-off-by: Filip Kobierski --- dev-python/geopandas/Manifest | 1 + dev-python/geopandas/geopandas-1.0.1.ebuild | 48 +++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 dev-python/geopandas/geopandas-1.0.1.ebuild diff --git a/dev-python/geopandas/Manifest b/dev-python/geopandas/Manifest index 037a125d3d5..cbe05bdd42b 100644 --- a/dev-python/geopandas/Manifest +++ b/dev-python/geopandas/Manifest @@ -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 diff --git a/dev-python/geopandas/geopandas-1.0.1.ebuild b/dev-python/geopandas/geopandas-1.0.1.ebuild new file mode 100644 index 00000000000..6b05525c827 --- /dev/null +++ b/dev-python/geopandas/geopandas-1.0.1.ebuild @@ -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" + +# 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 +) +EPYTEST_IGNORE=( + # rtree results are known to be unordered + geopandas/tests/test_sindex.py::TestShapelyInterface::test_query_bulk_sorting[False-expected1] + geopandas/tests/test_sindex.py::TestShapelyInterface::test_query_sorting[False-expected1] +) +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" +}