public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Nowa Ammerlaan" <nowa@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: dev-python/fiona/
Date: Tue, 19 Nov 2024 14:05:36 +0000 (UTC)	[thread overview]
Message-ID: <1732025121.25c9de7cc682f0a63beb4c2ac2f04e5c6ec5511b.nowa@gentoo> (raw)

commit:     25c9de7cc682f0a63beb4c2ac2f04e5c6ec5511b
Author:     Filip Kobierski <fkobi <AT> pm <DOT> me>
AuthorDate: Fri Nov 15 14:01:41 2024 +0000
Commit:     Nowa Ammerlaan <nowa <AT> gentoo <DOT> org>
CommitDate: Tue Nov 19 14:05:21 2024 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=25c9de7c

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 <AT> pm.me>
Signed-off-by: Nowa Ammerlaan <nowa <AT> gentoo.org>

 dev-python/fiona/fiona-1.10.1.ebuild | 68 ++++++++++++++++++++++++++++++++++++
 1 file changed, 68 insertions(+)

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
+}


             reply	other threads:[~2024-11-19 14:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-19 14:05 Nowa Ammerlaan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-11-19 14:05 [gentoo-commits] proj/sci:master commit in: dev-python/fiona/ Nowa Ammerlaan
2024-11-19 14:05 Nowa Ammerlaan
2024-11-19 14:05 Nowa Ammerlaan
2023-02-10 10:39 Andrew Ammerlaan
2023-02-10 10:39 Andrew Ammerlaan
2023-01-12 10:29 Horea Christian
2022-06-13 19:04 Andrew Ammerlaan
2022-01-18 16:37 Andrew Ammerlaan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1732025121.25c9de7cc682f0a63beb4c2ac2f04e5c6ec5511b.nowa@gentoo \
    --to=nowa@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox