diff options
author | Filip Kobierski <fkobi@pm.me> | 2024-11-15 15:01:41 +0100 |
---|---|---|
committer | Nowa Ammerlaan <nowa@gentoo.org> | 2024-11-19 15:05:21 +0100 |
commit | 25c9de7cc682f0a63beb4c2ac2f04e5c6ec5511b (patch) | |
tree | a0979e72c5d14dcd815b62ac424396866e2714cb /dev-python/fiona/fiona-1.10.1.ebuild | |
parent | dev-python/fiona: simple version bump tp 1.9.6 (diff) | |
download | sci-25c9de7cc682f0a63beb4c2ac2f04e5c6ec5511b.tar.gz sci-25c9de7cc682f0a63beb4c2ac2f04e5c6ec5511b.tar.bz2 sci-25c9de7cc682f0a63beb4c2ac2f04e5c6ec5511b.zip |
dev-python/fiona: add 1.10.1 with improvements
- introduce DISTUTILS_EXT
- use EPYTEST_DESELECT
- tests
- add test? BDEPENDs
- reintroduce one test
- mask one test
- remove commented out code
- improve wording of first deselected tests comment
Signed-off-by: Filip Kobierski <fkobi@pm.me>
Signed-off-by: Nowa Ammerlaan <nowa@gentoo.org>
Diffstat (limited to 'dev-python/fiona/fiona-1.10.1.ebuild')
-rw-r--r-- | dev-python/fiona/fiona-1.10.1.ebuild | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/dev-python/fiona/fiona-1.10.1.ebuild b/dev-python/fiona/fiona-1.10.1.ebuild new file mode 100644 index 000000000..f6fde60a3 --- /dev/null +++ b/dev-python/fiona/fiona-1.10.1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517="setuptools" +inherit distutils-r1 + +DESCRIPTION="API for reading/writing vector geospatial data" +HOMEPAGE="https://github.com/Toblerity/fiona" +SRC_URI="https://github.com/Toblerity/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz" +S="${WORKDIR}/Fiona-${PV}" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + sci-libs/gdal[geos,sqlite] + dev-python/attrs[${PYTHON_USEDEP}] + dev-python/click-plugins[${PYTHON_USEDEP}] + dev-python/cligj[${PYTHON_USEDEP}] + dev-python/munch[${PYTHON_USEDEP}] + dev-python/certifi[${PYTHON_USEDEP}] +" + +BDEPEND=" + test? ( + dev-python/aiohttp[${PYTHON_USEDEP}] + dev-python/boto3[${PYTHON_USEDEP}] + dev-python/fsspec[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + sci-libs/gdal[geos,sqlite] + ) +" + +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=( + # disable tests violating network sandbox + tests/test_vfs.py::test_open_http + tests/test_vfs.py::test_open_zip_https + tests/test_collection.py::test_collection_http + tests/test_collection.py::test_collection_zip_http + + # disable tests failing due to deprecated GDAL features + tests/test_data_paths.py::test_gdal_data_wheel + tests/test_data_paths.py::test_proj_data_wheel + tests/test_data_paths.py::test_env_gdal_data_wheel + tests/test_data_paths.py::test_env_proj_data_wheel + tests/test_datetime.py::test_datefield[GPSTrackMaker-datetime] + tests/test_datetime.py::test_datefield_null[GPSTrackMaker-datetime] + tests/test_drvsupport.py::test_write_or_driver_error[GPSTrackMaker] + tests/test_drvsupport.py::test_no_append_driver_cannot_append[GPSTrackMaker] + tests/test_drvsupport.py::test_no_append_driver_cannot_append[PCIDSK] + tests/test_drvsupport.py::test_write_or_driver_error[DGN] + + # OGR silently fails to convert strings + tests/test_unicode.py::TestUnicodeStringField::test_write_mismatch + ) + + mv fiona{,.bak} || die # Avoid non-working local import + epytest + mv fiona{.bak,} || die +} |