Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: dev-python/fiona/
Date: Tue, 18 Jan 2022 16:37:59
Message-Id: 1642523869.24a43c1dc1667952ac9e740da73c4b8c676f20a0.andrewammerlaan@gentoo
1 commit: 24a43c1dc1667952ac9e740da73c4b8c676f20a0
2 Author: Thomas Bettler <thomas.bettler <AT> gmail <DOT> com>
3 AuthorDate: Sun Jan 16 11:00:08 2022 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 18 16:37:49 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=24a43c1d
7
8 dev-python/fiona: new 1.8.20
9
10 dep for dev-python/{geopandas,rasterstats}
11
12 status: test pass, works for me
13 Signed-off-by: Thomas Bettler <thomas.bettler <AT> gmail.com>
14 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
15
16 dev-python/fiona/fiona-1.8.20.ebuild | 74 ++++++++++++++++++++++++++++++++++++
17 dev-python/fiona/metadata.xml | 18 +++++++++
18 2 files changed, 92 insertions(+)
19
20 diff --git a/dev-python/fiona/fiona-1.8.20.ebuild b/dev-python/fiona/fiona-1.8.20.ebuild
21 new file mode 100644
22 index 000000000..1127afa70
23 --- /dev/null
24 +++ b/dev-python/fiona/fiona-1.8.20.ebuild
25 @@ -0,0 +1,74 @@
26 +# Copyright 1999-2022 Gentoo Authors
27 +# Distributed under the terms of the GNU General Public License v2
28 +
29 +EAPI=8
30 +
31 +PYTHON_COMPAT=( python3_{8..10} )
32 +DISTUTILS_USE_PEP517="setuptools"
33 +inherit distutils-r1
34 +
35 +DESCRIPTION="API for reading/writing vector geospatial data"
36 +HOMEPAGE="https://github.com/Toblerity/fiona"
37 +SRC_URI="https://github.com/Toblerity/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
38 +
39 +LICENSE="BSD"
40 +SLOT="0"
41 +KEYWORDS="~amd64 ~x86"
42 +
43 +RDEPEND="
44 + sci-libs/gdal[geos,sqlite,python,${PYTHON_USEDEP}]
45 + dev-python/attrs[${PYTHON_USEDEP}]
46 + dev-python/click-plugins[${PYTHON_USEDEP}]
47 + dev-python/cligj[${PYTHON_USEDEP}]
48 + dev-python/munch[${PYTHON_USEDEP}]
49 + dev-python/six[${PYTHON_USEDEP}]
50 + dev-python/certifi[${PYTHON_USEDEP}]
51 +"
52 +BDEPEND="
53 + dev-python/cython[${PYTHON_USEDEP}]
54 + test? (
55 + dev-python/boto3[${PYTHON_USEDEP}]
56 + sci-libs/gdal[geos,sqlite,python,${PYTHON_USEDEP}]
57 + )
58 +"
59 +
60 +S="${WORKDIR}/Fiona-${PV}"
61 +
62 +distutils_enable_tests pytest
63 +
64 +python_test() {
65 + local deselect=(
66 + # disable tests due to networking blocked
67 + tests/test_vfs.py::test_open_http
68 + tests/test_vfs.py::test_open_zip_https
69 + tests/test_collection.py::test_collection_http
70 + tests/test_collection.py::test_collection_zip_http
71 +
72 + # disable tests failing due to deprecated GDAL features
73 + tests/test_data_paths.py::test_gdal_data_wheel
74 + tests/test_data_paths.py::test_proj_data_wheel
75 + tests/test_data_paths.py::test_env_gdal_data_wheel
76 + tests/test_data_paths.py::test_env_proj_data_wheel
77 + tests/test_datetime.py::test_datefield[GPSTrackMaker-datetime]
78 + tests/test_datetime.py::test_datefield_null[GPSTrackMaker-datetime]
79 + tests/test_drvsupport.py::test_write_or_driver_error[GPSTrackMaker]
80 + tests/test_drvsupport.py::test_no_append_driver_cannot_append[GPSTrackMaker]
81 + tests/test_drvsupport.py::test_no_append_driver_cannot_append[PCIDSK]
82 + tests/test_drvsupport.py::test_write_or_driver_error[DGN]
83 +
84 + # geos
85 + #tests/test_collection.py::test_mask_polygon_triangle
86 + #tests/test_collection.py::test_mask_polygon_triangle
87 + #tests/test_collection.py::test_mask_polygon_triangle
88 +
89 + # sqlite
90 + #tests/test_schema.py::test_geometry_only_schema_write[GPKG]
91 + #tests/test_schema.py::test_geometry_only_schema_update[GPKG]
92 + #tests/test_schema.py::test_property_only_schema_write[GPKG]
93 + #tests/test_schema.py::test_property_only_schema_update[GPKG]
94 + )
95 +
96 + mv fiona{,.bak} || die # Avoid non-working local import
97 + epytest ${deselect[@]/#/--deselect }
98 + mv fiona{.bak,} || die
99 +}
100
101 diff --git a/dev-python/fiona/metadata.xml b/dev-python/fiona/metadata.xml
102 new file mode 100644
103 index 000000000..e1e191ee0
104 --- /dev/null
105 +++ b/dev-python/fiona/metadata.xml
106 @@ -0,0 +1,18 @@
107 +<?xml version="1.0" encoding="UTF-8"?>
108 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
109 +<pkgmetadata>
110 + <maintainer type="project">
111 + <email>sci@g.o</email>
112 + <name>Gentoo Science Project</name>
113 + </maintainer>
114 + <longdescription lang="en">
115 + Fiona reads and writes geographic data files and thereby helps Python
116 + programmers integrate geographic information systems with other
117 + computer systems. Fiona contains extension modules that link the
118 + Geospatial Data Abstraction Library (GDAL).
119 +</longdescription>
120 + <upstream>
121 + <remote-id type="github">Toblerity/fiona</remote-id>
122 + <remote-id type="pypi">Fiona</remote-id>
123 + </upstream>
124 +</pkgmetadata>