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/rasterio/
Date: Tue, 18 Jan 2022 16:37:58
Message-Id: 1642523868.018275b2350fa0b9e2fa1e51e4baf21df5ee8c45.andrewammerlaan@gentoo
1 commit: 018275b2350fa0b9e2fa1e51e4baf21df5ee8c45
2 Author: Thomas Bettler <thomas.bettler <AT> gmail <DOT> com>
3 AuthorDate: Sun Jan 16 10:58:10 2022 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 18 16:37:48 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=018275b2
7
8 dev-python/rasterio: new 1.2.10
9
10 dep for dev-python/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/rasterio/metadata.xml | 18 +++++
17 dev-python/rasterio/rasterio-1.2.10.ebuild | 104 +++++++++++++++++++++++++++++
18 2 files changed, 122 insertions(+)
19
20 diff --git a/dev-python/rasterio/metadata.xml b/dev-python/rasterio/metadata.xml
21 new file mode 100644
22 index 000000000..88f92bb1c
23 --- /dev/null
24 +++ b/dev-python/rasterio/metadata.xml
25 @@ -0,0 +1,18 @@
26 +<?xml version="1.0" encoding="UTF-8"?>
27 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
28 +<pkgmetadata>
29 + <maintainer type="project">
30 + <email>sci@g.o</email>
31 + <name>Gentoo Science Project</name>
32 + </maintainer>
33 + <longdescription lang="en">
34 + Rasterio reads and writes geospatial raster data. Geographic information
35 + systems use GeoTIFF and other formats to organize and store gridded,
36 + or raster, datasets. Rasterio reads and writes these formats and
37 + provides a Python API based on N-D arrays.
38 +</longdescription>
39 + <upstream>
40 + <remote-id type="github">rasterio/rasterio</remote-id>
41 + <remote-id type="pypi">rasterio</remote-id>
42 + </upstream>
43 +</pkgmetadata>
44
45 diff --git a/dev-python/rasterio/rasterio-1.2.10.ebuild b/dev-python/rasterio/rasterio-1.2.10.ebuild
46 new file mode 100644
47 index 000000000..625e4a7da
48 --- /dev/null
49 +++ b/dev-python/rasterio/rasterio-1.2.10.ebuild
50 @@ -0,0 +1,104 @@
51 +# Copyright 1999-2022 Gentoo Authors
52 +# Distributed under the terms of the GNU General Public License v2
53 +
54 +EAPI=8
55 +
56 +PYTHON_COMPAT=( python3_{8..10} )
57 +DISTUTILS_USE_PEP517="setuptools"
58 +inherit distutils-r1
59 +
60 +DESCRIPTION="Command line tool and API for geospatial raster data"
61 +HOMEPAGE="https://github.com/rasterio/rasterio"
62 +SRC_URI="https://github.com/rasterio/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
63 +
64 +LICENSE="BSD"
65 +SLOT="0"
66 +KEYWORDS="~amd64 ~x86"
67 +
68 +RDEPEND="
69 + sci-libs/gdal[aux-xml,jpeg,png,threads,python,${PYTHON_USEDEP}]
70 + dev-python/affine[${PYTHON_USEDEP}]
71 + dev-python/attrs[${PYTHON_USEDEP}]
72 + dev-python/certifi[${PYTHON_USEDEP}]
73 + dev-python/click[${PYTHON_USEDEP}]
74 + dev-python/cligj[${PYTHON_USEDEP}]
75 + dev-python/numpy[${PYTHON_USEDEP}]
76 + dev-python/click-plugins[${PYTHON_USEDEP}]
77 + dev-python/snuggs[${PYTHON_USEDEP}]
78 +"
79 +#DEPEND="${RDEPEND}"
80 +BDEPEND="
81 + dev-python/cython[${PYTHON_USEDEP}]
82 + test? (
83 + dev-python/boto3[${PYTHON_USEDEP}]
84 + dev-python/hypothesis[${PYTHON_USEDEP}]
85 + sci-libs/gdal[aux-xml,jpeg,png,threads,python,${PYTHON_USEDEP}]
86 + )
87 +"
88 +
89 +distutils_enable_tests pytest
90 +
91 +python_test() {
92 + local deselect=(
93 + # disable tests failing for unknown reason
94 + tests/test_env.py::test_rio_env_no_credentials
95 + tests/test_rio_info.py::test_info_azure_unsigned
96 + tests/test_warp.py::test_reproject_resampling[Resampling.cubic]
97 + tests/test_warp.py::test_reproject_resampling[Resampling.lanczos]
98 + tests/test_warp.py::test_reproject_resampling_alpha[Resampling.cubic]
99 + tests/test_warp.py::test_reproject_resampling_alpha[Resampling.lanczos]
100 +
101 + #tests/test_warp.py::test_warp_from_to_file_multi
102 +
103 + # aux-xml
104 + #tests/test_dataset.py::test_files
105 + #tests/test_gcps.py::test_write_read_gcps_buffereddatasetwriter
106 + #tests/test_rio_edit_info.py::test_delete_nodata
107 + #tests/test_update.py::test_update_nodatavals_none
108 +
109 + # curl
110 + #tests/test_warp.py::test_reproject_error_propagation
111 +
112 + # geos
113 + #tests/test_warp.py::test_transform_geom_polygon_offset
114 + #tests/test_warp.py::test_transform_geom_polygon_cutting
115 +
116 + # png
117 + #tests/test_colormap.py::test_write_colormap
118 + #tests/test_no_georef.py::test_write
119 + #tests/test_png.py::test_write_ubyte
120 + #tests/test_rio_convert.py::test_autodetect_format
121 + #tests/test_rio_merge.py::test_merge_output_dataset
122 + #tests/test_shutil.py::test_delete[None-png]
123 + #tests/test_shutil.py::test_delete[PNG-png]
124 + #tests/test_write.py::test_write__autodetect_driver[png-PNG]
125 + #tests/test_write.py::test_issue2088[PNG]
126 +
127 + # jpeg
128 + #tests/test_blocks.py::test_block_size_exception
129 + #tests/test_crs.py::test_read_no_crs
130 + #tests/test_memoryfile.py::test_zip_file_object_read
131 + #tests/test_memoryfile.py::test_vrt_memfile
132 + #tests/test_memoryfile.py::test_write_plus_model_jpeg
133 + #tests/test_rio_convert.py::test_format
134 + #tests/test_rio_convert.py::test_format_short
135 + #tests/test_rio_convert.py::test_output_opt
136 + #tests/test_rio_convert.py::test_convert_overwrite_without_option
137 + #tests/test_rio_convert.py::test_convert_overwrite_with_option
138 + #tests/test_rio_stack.py::test_format_jpeg
139 + #tests/test_rio_warp.py::test_warp_vrt_gcps
140 + #tests/test_shutil.py::test_copy_strict_failure
141 + #tests/test_shutil.py::test_copy_strict_silent_failure
142 + #tests/test_write.py::test_write__autodetect_driver[jpg-JPEG]
143 + #tests/test_write.py::test_write__autodetect_driver[jpeg-JPEG]
144 + #tests/test_write.py::test_issue2088[JPEG]
145 +
146 + # threads
147 + #tests/test_thread_pool_executor.py::test_threads_main_env
148 + #tests/test_threading.py::test_child_thread_inherits_env
149 + )
150 +
151 + mv rasterio{,.bak} || die # Avoid non-working local import
152 + epytest ${deselect[@]/#/--deselect }
153 + mv rasterio{.bak,} || die
154 +}