2022-10-11 15:27:11 +00:00
|
|
|
#
|
2023-02-26 11:23:47 +00:00
|
|
|
# spec file
|
2022-10-11 15:27:11 +00:00
|
|
|
#
|
2023-02-26 11:23:47 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2022-10-11 15:27:11 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2023-02-26 11:23:47 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
2022-10-11 15:27:11 +00:00
|
|
|
|
|
|
|
|
2023-02-26 11:23:47 +00:00
|
|
|
%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}
|
2023-11-24 16:48:57 +00:00
|
|
|
Version: 0.14.1
|
2022-10-11 15:27:11 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Geographic pandas extensions
|
2023-02-26 11:23:47 +00:00
|
|
|
License: BSD-3-Clause
|
2022-10-11 15:27:11 +00:00
|
|
|
Group: Development/Languages/Python
|
2023-02-26 11:23:47 +00:00
|
|
|
URL: https://geopandas.org
|
2022-10-11 15:27:11 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/g/geopandas/geopandas-%{version}.tar.gz
|
2023-09-23 09:04:53 +00:00
|
|
|
BuildRequires: %{python_module base >= 3.9}
|
2023-02-26 11:23:47 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2023-06-23 00:40:31 +00:00
|
|
|
BuildRequires: %{python_module setuptools >= 61}
|
2023-02-26 11:23:47 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
|
|
|
BuildRequires: fdupes
|
2022-10-11 15:27:11 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2023-06-23 00:40:31 +00:00
|
|
|
Requires: proj
|
2023-09-23 09:04:53 +00:00
|
|
|
Requires: python-Fiona >= 1.8.21
|
2023-06-23 00:40:31 +00:00
|
|
|
Requires: python-packaging
|
2023-09-23 09:04:53 +00:00
|
|
|
Requires: python-pandas >= 1.4.0
|
|
|
|
Requires: python-pyproj >= 3.3.0
|
|
|
|
Requires: python-shapely >= 1.8.0
|
2023-02-26 11:23:47 +00:00
|
|
|
Recommends: python-geopy
|
|
|
|
Recommends: python-matplotlib
|
|
|
|
BuildArch: noarch
|
|
|
|
%if %{with test}
|
|
|
|
BuildRequires: %{python_module Rtree}
|
2022-10-11 15:27:11 +00:00
|
|
|
BuildRequires: %{python_module folium}
|
2023-06-23 00:40:31 +00:00
|
|
|
BuildRequires: %{python_module fsspec}
|
|
|
|
BuildRequires: %{python_module geopandas = %{version}}
|
2023-02-26 11:23:47 +00:00
|
|
|
BuildRequires: %{python_module geopy}
|
2023-09-23 09:04:53 +00:00
|
|
|
BuildRequires: %{python_module matplotlib >= 3.5.0}
|
2023-06-23 00:40:31 +00:00
|
|
|
BuildRequires: %{python_module psycopg2}
|
|
|
|
BuildRequires: %{python_module pyarrow}
|
2022-10-11 15:27:11 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module scipy}
|
2023-06-23 00:40:31 +00:00
|
|
|
BuildRequires: %{python_module sqlalchemy}
|
|
|
|
# mapclassify not yet available
|
|
|
|
#BuildRequires: %%{python_module mapclassify}
|
2023-02-26 11:23:47 +00:00
|
|
|
%endif
|
2022-10-11 15:27:11 +00:00
|
|
|
%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
|
2023-02-26 11:23:47 +00:00
|
|
|
%autosetup -p1 -n geopandas-%{version}
|
2022-10-11 15:27:11 +00:00
|
|
|
|
|
|
|
%build
|
2023-06-23 00:40:31 +00:00
|
|
|
%if ! %{with test}
|
2023-02-26 11:23:47 +00:00
|
|
|
%pyproject_wheel
|
|
|
|
%endif
|
2022-10-11 15:27:11 +00:00
|
|
|
|
|
|
|
%install
|
2023-02-26 11:23:47 +00:00
|
|
|
%if !%{with test}
|
|
|
|
%pyproject_install
|
2022-10-11 15:27:11 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2023-02-26 11:23:47 +00:00
|
|
|
%endif
|
2022-10-11 15:27:11 +00:00
|
|
|
|
|
|
|
%check
|
2023-02-26 11:23:47 +00:00
|
|
|
%if %{with test}
|
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)"
|
2023-09-23 09:38:25 +00:00
|
|
|
if [ $(getconf LONG_BIT) -eq 32 ]; then
|
|
|
|
donttest="$donttest or test_explode or test_get_coordinates_parts"
|
|
|
|
fi
|
2023-06-23 00:40:31 +00:00
|
|
|
%pytest -rsfE -k "not ($donttest)"
|
2023-02-26 11:23:47 +00:00
|
|
|
%endif
|
2022-10-11 15:27:11 +00:00
|
|
|
|
2023-02-26 11:23:47 +00:00
|
|
|
%if !%{with test}
|
2022-10-11 15:27:11 +00:00
|
|
|
%files %{python_files}
|
|
|
|
%doc README.md
|
|
|
|
%license LICENSE.txt
|
2023-06-23 00:40:31 +00:00
|
|
|
%{python_sitelib}/geopandas
|
|
|
|
%{python_sitelib}/geopandas-%{version}.dist-info
|
2023-02-26 11:23:47 +00:00
|
|
|
%endif
|
2022-10-11 15:27:11 +00:00
|
|
|
|
|
|
|
%changelog
|