* Support a named datetime or object dtype index in explore() (#3360, #3364). * Fix a regression preventing a Series as an argument for geometric methods (#3363) ## Notes on dependencies: * GeoPandas 1.0 drops support for shapely<2 and PyGEOS. The only geometry engine that is currently supported is shapely >= 2. As a consequence, spatial indexing based on the rtree package has also been removed (#3035). * The I/O engine now defaults to Pyogrio which is now installed with GeoPandas instead of Fiona (#3223). ## New methods: * Added count_geometries method from shapely to GeoSeries/GeoDataframe (#3154). * Added count_interior_rings method from shapely to GeoSeries/GeoDataframe (#3154) * Added relate_pattern method from shapely to GeoSeries/GeoDataframe (#3211). * Added intersection_all method from shapely to GeoSeries/GeoDataframe (#3228). * Added line_merge method from shapely to GeoSeries/GeoDataframe (#3214). * Added set_precision and get_precision methods from shapely to GeoSeries/GeoDataframe (#3175). * Added count_coordinates method from shapely to GeoSeries/GeoDataframe (#3026). * Added minimum_clearance method from shapely to GeoSeries/GeoDataframe (#2989). * Added shared_paths method from shapely to OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-geopandas?expand=0&rev=22
117 lines
3.7 KiB
RPMSpec
117 lines
3.7 KiB
RPMSpec
#
|
|
# spec file for package python-geopandas
|
|
#
|
|
# Copyright (c) 2024 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: 1.0.1
|
|
Release: 0
|
|
Summary: Geographic pandas extensions
|
|
License: BSD-3-Clause
|
|
Group: Development/Languages/Python
|
|
URL: https://geopandas.org
|
|
# SourceRepository: https://github.com/geopandas/geopandas
|
|
# Use Repository for test data
|
|
Source0: https://github.com/geopandas/geopandas/archive/refs/tags/v{%version}.tar.gz#/geopandas-%{version}-gh.tar.gz
|
|
BuildRequires: %{python_module base >= 3.9}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module setuptools >= 61}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: proj
|
|
Requires: python-numpy >= 1.22
|
|
Requires: python-packaging
|
|
Requires: python-pandas >= 1.4.0
|
|
Requires: python-pyogrio >= 0.7.2
|
|
Requires: python-pyproj
|
|
Requires: python-shapely >= 2
|
|
Recommends: python-geopy
|
|
Recommends: python-matplotlib
|
|
BuildArch: noarch
|
|
%if %{with test}
|
|
BuildRequires: %{python_module Fiona}
|
|
BuildRequires: %{python_module Rtree}
|
|
BuildRequires: %{python_module folium}
|
|
BuildRequires: %{python_module fsspec}
|
|
BuildRequires: %{python_module geopandas = %{version}}
|
|
BuildRequires: %{python_module geopy}
|
|
BuildRequires: %{python_module matplotlib >= 3.5.0}
|
|
BuildRequires: %{python_module numpy >= 1.22}
|
|
BuildRequires: %{python_module psycopg2}
|
|
BuildRequires: %{python_module pyarrow}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module scipy}
|
|
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
|
|
%if ! %{with test}
|
|
%pyproject_wheel
|
|
%endif
|
|
|
|
%install
|
|
%if !%{with test}
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
%endif
|
|
|
|
%check
|
|
%if %{with test}
|
|
# 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
|
|
%pytest -rsfE -k "not ($donttest)"
|
|
%endif
|
|
|
|
%if !%{with test}
|
|
%files %{python_files}
|
|
%doc README.md
|
|
%license LICENSE.txt
|
|
%{python_sitelib}/geopandas
|
|
%{python_sitelib}/geopandas-%{version}.dist-info
|
|
%endif
|
|
|
|
%changelog
|