1
0
python-geopandas/python-geopandas.spec

112 lines
3.4 KiB
RPMSpec
Raw Normal View History

#
# spec file
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
Name: python-geopandas%{psuffix}
Version: 0.14.1
Release: 0
Summary: Geographic pandas extensions
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://geopandas.org
Source: https://files.pythonhosted.org/packages/source/g/geopandas/geopandas-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.9}
BuildRequires: %{python_module pip}
Accepting request 1094721 from home:bnavigator:branches:Application:Geo - Update to 0.13.2 * Fix a regression in reading from local file URIs (file://..) using geopandas.read_file (#2948). * Fix a regression in reading from URLs using geopandas.read_file (#2908). This restores the behaviour to download all data up-front before passing it to the underlying engine (fiona or pyogrio), except if the server supports partial requests (to support reading a subset of a large file). - Relese 0.13 ## New methods: * Added sample_points method to sample random points from Polygon or LineString geometries (#2860). * New hilbert_distance() method that calculates the distance along a Hilbert curve for each geometry in a GeoSeries/GeoDataFrame (#2297). * Support for sorting geometries (for example, using sort_values()) based on the distance along the Hilbert curve (#2070). * Added get_coordinates() method from shapely to GeoSeries/GeoDataframe (#2624). * Added minimum_bounding_circle() method from shapely to GeoSeries/GeoDataframe (#2621). * Added minimum_bounding_radius() as GeoSeries method (#2827). ## Other new features and improvements: * The Parquet and Feather IO functions now support the latest 1.0.0-beta.1 version of the GeoParquet specification (<geoparquet.org>) (#2663). * Added support to fill missing values in GeoSeries.fillna via another GeoSeries (#2535). * Support specifying min_zoom and max_zoom inside the map_kwds OBS-URL: https://build.opensuse.org/request/show/1094721 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-geopandas?expand=0&rev=5
2023-06-23 00:40:31 +00:00
BuildRequires: %{python_module setuptools >= 61}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Accepting request 1094721 from home:bnavigator:branches:Application:Geo - Update to 0.13.2 * Fix a regression in reading from local file URIs (file://..) using geopandas.read_file (#2948). * Fix a regression in reading from URLs using geopandas.read_file (#2908). This restores the behaviour to download all data up-front before passing it to the underlying engine (fiona or pyogrio), except if the server supports partial requests (to support reading a subset of a large file). - Relese 0.13 ## New methods: * Added sample_points method to sample random points from Polygon or LineString geometries (#2860). * New hilbert_distance() method that calculates the distance along a Hilbert curve for each geometry in a GeoSeries/GeoDataFrame (#2297). * Support for sorting geometries (for example, using sort_values()) based on the distance along the Hilbert curve (#2070). * Added get_coordinates() method from shapely to GeoSeries/GeoDataframe (#2624). * Added minimum_bounding_circle() method from shapely to GeoSeries/GeoDataframe (#2621). * Added minimum_bounding_radius() as GeoSeries method (#2827). ## Other new features and improvements: * The Parquet and Feather IO functions now support the latest 1.0.0-beta.1 version of the GeoParquet specification (<geoparquet.org>) (#2663). * Added support to fill missing values in GeoSeries.fillna via another GeoSeries (#2535). * Support specifying min_zoom and max_zoom inside the map_kwds OBS-URL: https://build.opensuse.org/request/show/1094721 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-geopandas?expand=0&rev=5
2023-06-23 00:40:31 +00:00
Requires: proj
Requires: python-Fiona >= 1.8.21
Accepting request 1094721 from home:bnavigator:branches:Application:Geo - Update to 0.13.2 * Fix a regression in reading from local file URIs (file://..) using geopandas.read_file (#2948). * Fix a regression in reading from URLs using geopandas.read_file (#2908). This restores the behaviour to download all data up-front before passing it to the underlying engine (fiona or pyogrio), except if the server supports partial requests (to support reading a subset of a large file). - Relese 0.13 ## New methods: * Added sample_points method to sample random points from Polygon or LineString geometries (#2860). * New hilbert_distance() method that calculates the distance along a Hilbert curve for each geometry in a GeoSeries/GeoDataFrame (#2297). * Support for sorting geometries (for example, using sort_values()) based on the distance along the Hilbert curve (#2070). * Added get_coordinates() method from shapely to GeoSeries/GeoDataframe (#2624). * Added minimum_bounding_circle() method from shapely to GeoSeries/GeoDataframe (#2621). * Added minimum_bounding_radius() as GeoSeries method (#2827). ## Other new features and improvements: * The Parquet and Feather IO functions now support the latest 1.0.0-beta.1 version of the GeoParquet specification (<geoparquet.org>) (#2663). * Added support to fill missing values in GeoSeries.fillna via another GeoSeries (#2535). * Support specifying min_zoom and max_zoom inside the map_kwds OBS-URL: https://build.opensuse.org/request/show/1094721 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-geopandas?expand=0&rev=5
2023-06-23 00:40:31 +00:00
Requires: python-packaging
Requires: python-pandas >= 1.4.0
Requires: python-pyproj >= 3.3.0
Requires: python-shapely >= 1.8.0
Recommends: python-geopy
Recommends: python-matplotlib
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module Rtree}
BuildRequires: %{python_module folium}
Accepting request 1094721 from home:bnavigator:branches:Application:Geo - Update to 0.13.2 * Fix a regression in reading from local file URIs (file://..) using geopandas.read_file (#2948). * Fix a regression in reading from URLs using geopandas.read_file (#2908). This restores the behaviour to download all data up-front before passing it to the underlying engine (fiona or pyogrio), except if the server supports partial requests (to support reading a subset of a large file). - Relese 0.13 ## New methods: * Added sample_points method to sample random points from Polygon or LineString geometries (#2860). * New hilbert_distance() method that calculates the distance along a Hilbert curve for each geometry in a GeoSeries/GeoDataFrame (#2297). * Support for sorting geometries (for example, using sort_values()) based on the distance along the Hilbert curve (#2070). * Added get_coordinates() method from shapely to GeoSeries/GeoDataframe (#2624). * Added minimum_bounding_circle() method from shapely to GeoSeries/GeoDataframe (#2621). * Added minimum_bounding_radius() as GeoSeries method (#2827). ## Other new features and improvements: * The Parquet and Feather IO functions now support the latest 1.0.0-beta.1 version of the GeoParquet specification (<geoparquet.org>) (#2663). * Added support to fill missing values in GeoSeries.fillna via another GeoSeries (#2535). * Support specifying min_zoom and max_zoom inside the map_kwds OBS-URL: https://build.opensuse.org/request/show/1094721 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-geopandas?expand=0&rev=5
2023-06-23 00:40:31 +00:00
BuildRequires: %{python_module fsspec}
BuildRequires: %{python_module geopandas = %{version}}
BuildRequires: %{python_module geopy}
BuildRequires: %{python_module matplotlib >= 3.5.0}
Accepting request 1094721 from home:bnavigator:branches:Application:Geo - Update to 0.13.2 * Fix a regression in reading from local file URIs (file://..) using geopandas.read_file (#2948). * Fix a regression in reading from URLs using geopandas.read_file (#2908). This restores the behaviour to download all data up-front before passing it to the underlying engine (fiona or pyogrio), except if the server supports partial requests (to support reading a subset of a large file). - Relese 0.13 ## New methods: * Added sample_points method to sample random points from Polygon or LineString geometries (#2860). * New hilbert_distance() method that calculates the distance along a Hilbert curve for each geometry in a GeoSeries/GeoDataFrame (#2297). * Support for sorting geometries (for example, using sort_values()) based on the distance along the Hilbert curve (#2070). * Added get_coordinates() method from shapely to GeoSeries/GeoDataframe (#2624). * Added minimum_bounding_circle() method from shapely to GeoSeries/GeoDataframe (#2621). * Added minimum_bounding_radius() as GeoSeries method (#2827). ## Other new features and improvements: * The Parquet and Feather IO functions now support the latest 1.0.0-beta.1 version of the GeoParquet specification (<geoparquet.org>) (#2663). * Added support to fill missing values in GeoSeries.fillna via another GeoSeries (#2535). * Support specifying min_zoom and max_zoom inside the map_kwds OBS-URL: https://build.opensuse.org/request/show/1094721 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-geopandas?expand=0&rev=5
2023-06-23 00:40:31 +00:00
BuildRequires: %{python_module psycopg2}
BuildRequires: %{python_module pyarrow}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module scipy}
Accepting request 1094721 from home:bnavigator:branches:Application:Geo - Update to 0.13.2 * Fix a regression in reading from local file URIs (file://..) using geopandas.read_file (#2948). * Fix a regression in reading from URLs using geopandas.read_file (#2908). This restores the behaviour to download all data up-front before passing it to the underlying engine (fiona or pyogrio), except if the server supports partial requests (to support reading a subset of a large file). - Relese 0.13 ## New methods: * Added sample_points method to sample random points from Polygon or LineString geometries (#2860). * New hilbert_distance() method that calculates the distance along a Hilbert curve for each geometry in a GeoSeries/GeoDataFrame (#2297). * Support for sorting geometries (for example, using sort_values()) based on the distance along the Hilbert curve (#2070). * Added get_coordinates() method from shapely to GeoSeries/GeoDataframe (#2624). * Added minimum_bounding_circle() method from shapely to GeoSeries/GeoDataframe (#2621). * Added minimum_bounding_radius() as GeoSeries method (#2827). ## Other new features and improvements: * The Parquet and Feather IO functions now support the latest 1.0.0-beta.1 version of the GeoParquet specification (<geoparquet.org>) (#2663). * Added support to fill missing values in GeoSeries.fillna via another GeoSeries (#2535). * Support specifying min_zoom and max_zoom inside the map_kwds OBS-URL: https://build.opensuse.org/request/show/1094721 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-geopandas?expand=0&rev=5
2023-06-23 00:40:31 +00:00
BuildRequires: %{python_module sqlalchemy}
# mapclassify not yet available
#BuildRequires: %%{python_module mapclassify}
%endif
%python_subpackages
%description
Geopandas combines the capabilities of pandas and shapely, providing geospatial
operations in pandas and a high-level interface to multiple geometries to shapely.
GeoPandas enables you to easily do operations in python that would otherwise
require a spatial database such as PostGIS.
%prep
%autosetup -p1 -n geopandas-%{version}
%build
Accepting request 1094721 from home:bnavigator:branches:Application:Geo - Update to 0.13.2 * Fix a regression in reading from local file URIs (file://..) using geopandas.read_file (#2948). * Fix a regression in reading from URLs using geopandas.read_file (#2908). This restores the behaviour to download all data up-front before passing it to the underlying engine (fiona or pyogrio), except if the server supports partial requests (to support reading a subset of a large file). - Relese 0.13 ## New methods: * Added sample_points method to sample random points from Polygon or LineString geometries (#2860). * New hilbert_distance() method that calculates the distance along a Hilbert curve for each geometry in a GeoSeries/GeoDataFrame (#2297). * Support for sorting geometries (for example, using sort_values()) based on the distance along the Hilbert curve (#2070). * Added get_coordinates() method from shapely to GeoSeries/GeoDataframe (#2624). * Added minimum_bounding_circle() method from shapely to GeoSeries/GeoDataframe (#2621). * Added minimum_bounding_radius() as GeoSeries method (#2827). ## Other new features and improvements: * The Parquet and Feather IO functions now support the latest 1.0.0-beta.1 version of the GeoParquet specification (<geoparquet.org>) (#2663). * Added support to fill missing values in GeoSeries.fillna via another GeoSeries (#2535). * Support specifying min_zoom and max_zoom inside the map_kwds OBS-URL: https://build.opensuse.org/request/show/1094721 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-geopandas?expand=0&rev=5
2023-06-23 00:40:31 +00:00
%if ! %{with test}
%pyproject_wheel
%endif
%install
%if !%{with test}
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%check
%if %{with test}
Accepting request 1094721 from home:bnavigator:branches:Application:Geo - Update to 0.13.2 * Fix a regression in reading from local file URIs (file://..) using geopandas.read_file (#2948). * Fix a regression in reading from URLs using geopandas.read_file (#2908). This restores the behaviour to download all data up-front before passing it to the underlying engine (fiona or pyogrio), except if the server supports partial requests (to support reading a subset of a large file). - Relese 0.13 ## New methods: * Added sample_points method to sample random points from Polygon or LineString geometries (#2860). * New hilbert_distance() method that calculates the distance along a Hilbert curve for each geometry in a GeoSeries/GeoDataFrame (#2297). * Support for sorting geometries (for example, using sort_values()) based on the distance along the Hilbert curve (#2070). * Added get_coordinates() method from shapely to GeoSeries/GeoDataframe (#2624). * Added minimum_bounding_circle() method from shapely to GeoSeries/GeoDataframe (#2621). * Added minimum_bounding_radius() as GeoSeries method (#2827). ## Other new features and improvements: * The Parquet and Feather IO functions now support the latest 1.0.0-beta.1 version of the GeoParquet specification (<geoparquet.org>) (#2663). * Added support to fill missing values in GeoSeries.fillna via another GeoSeries (#2535). * Support specifying min_zoom and max_zoom inside the map_kwds OBS-URL: https://build.opensuse.org/request/show/1094721 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-geopandas?expand=0&rev=5
2023-06-23 00:40:31 +00:00
# online resource
donttest="test_read_file_url"
# test files missing in sdist
donttest="$donttest or test_overlay"
donttest="$donttest or (test_arrow and (test_read_versioned_file or test_read_gdal_file))"
# wrong shapely type
donttest="$donttest or (test_geom_methods and test_sample_points_array)"
donttest="$donttest or (test_random and test_uniform and geom)"
if [ $(getconf LONG_BIT) -eq 32 ]; then
donttest="$donttest or test_explode or test_get_coordinates_parts"
fi
Accepting request 1094721 from home:bnavigator:branches:Application:Geo - Update to 0.13.2 * Fix a regression in reading from local file URIs (file://..) using geopandas.read_file (#2948). * Fix a regression in reading from URLs using geopandas.read_file (#2908). This restores the behaviour to download all data up-front before passing it to the underlying engine (fiona or pyogrio), except if the server supports partial requests (to support reading a subset of a large file). - Relese 0.13 ## New methods: * Added sample_points method to sample random points from Polygon or LineString geometries (#2860). * New hilbert_distance() method that calculates the distance along a Hilbert curve for each geometry in a GeoSeries/GeoDataFrame (#2297). * Support for sorting geometries (for example, using sort_values()) based on the distance along the Hilbert curve (#2070). * Added get_coordinates() method from shapely to GeoSeries/GeoDataframe (#2624). * Added minimum_bounding_circle() method from shapely to GeoSeries/GeoDataframe (#2621). * Added minimum_bounding_radius() as GeoSeries method (#2827). ## Other new features and improvements: * The Parquet and Feather IO functions now support the latest 1.0.0-beta.1 version of the GeoParquet specification (<geoparquet.org>) (#2663). * Added support to fill missing values in GeoSeries.fillna via another GeoSeries (#2535). * Support specifying min_zoom and max_zoom inside the map_kwds OBS-URL: https://build.opensuse.org/request/show/1094721 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-geopandas?expand=0&rev=5
2023-06-23 00:40:31 +00:00
%pytest -rsfE -k "not ($donttest)"
%endif
%if !%{with test}
%files %{python_files}
%doc README.md
%license LICENSE.txt
Accepting request 1094721 from home:bnavigator:branches:Application:Geo - Update to 0.13.2 * Fix a regression in reading from local file URIs (file://..) using geopandas.read_file (#2948). * Fix a regression in reading from URLs using geopandas.read_file (#2908). This restores the behaviour to download all data up-front before passing it to the underlying engine (fiona or pyogrio), except if the server supports partial requests (to support reading a subset of a large file). - Relese 0.13 ## New methods: * Added sample_points method to sample random points from Polygon or LineString geometries (#2860). * New hilbert_distance() method that calculates the distance along a Hilbert curve for each geometry in a GeoSeries/GeoDataFrame (#2297). * Support for sorting geometries (for example, using sort_values()) based on the distance along the Hilbert curve (#2070). * Added get_coordinates() method from shapely to GeoSeries/GeoDataframe (#2624). * Added minimum_bounding_circle() method from shapely to GeoSeries/GeoDataframe (#2621). * Added minimum_bounding_radius() as GeoSeries method (#2827). ## Other new features and improvements: * The Parquet and Feather IO functions now support the latest 1.0.0-beta.1 version of the GeoParquet specification (<geoparquet.org>) (#2663). * Added support to fill missing values in GeoSeries.fillna via another GeoSeries (#2535). * Support specifying min_zoom and max_zoom inside the map_kwds OBS-URL: https://build.opensuse.org/request/show/1094721 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-geopandas?expand=0&rev=5
2023-06-23 00:40:31 +00:00
%{python_sitelib}/geopandas
%{python_sitelib}/geopandas-%{version}.dist-info
%endif
%changelog