|
|
3b05287 |
%global srcname geopandas
|
|
|
3b05287 |
|
|
|
a46e397 |
# There is a build dependency loop when built with tests.
|
|
|
a46e397 |
# It involves libpysal, mapclassify, networkx.
|
|
|
395a4e3 |
# This bcond allows to bootstrap it.
|
|
|
553b0f6 |
%bcond bootstrap 0
|
|
|
a46e397 |
|
|
|
3b05287 |
Name: python-%{srcname}
|
|
|
7a4dc12 |
Version: 0.14.3
|
|
|
6f736ec |
Release: %autorelease
|
|
|
3b05287 |
Summary: Geographic Pandas extensions
|
|
|
f78643f |
|
|
|
395a4e3 |
License: BSD-3-Clause
|
|
|
f78643f |
URL: https://pypi.python.org/pypi/%{srcname}
|
|
|
f78643f |
Source0: https://github.com/%{srcname}/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz
|
|
|
f78643f |
|
|
|
f78643f |
BuildArch: noarch
|
|
|
f78643f |
|
|
|
3b05287 |
%global _description \
|
|
|
3b05287 |
GeoPandas is a project to add support for geographic data to Pandas objects. \
|
|
|
3b05287 |
\
|
|
|
3b05287 |
The goal of GeoPandas is to make working with geospatial data in Python easier. \
|
|
|
3b05287 |
It combines the capabilities of Pandas and Shapely, providing geospatial \
|
|
|
3b05287 |
operations in Pandas and a high-level interface to multiple geometries to \
|
|
|
3b05287 |
Shapely. GeoPandas enables you to easily do operations in Python that would \
|
|
|
3b05287 |
otherwise require a spatial database such as PostGIS.
|
|
|
3b05287 |
|
|
|
3b05287 |
%description %{_description}
|
|
|
3b05287 |
|
|
|
3b05287 |
|
|
|
3b05287 |
%package -n python3-%{srcname}
|
|
|
3b05287 |
Summary: %{summary}
|
|
|
3b05287 |
BuildRequires: python3-devel
|
|
|
3b05287 |
|
|
|
9163648 |
%if %{without bootstrap}
|
|
|
a46e397 |
BuildRequires: python3dist(numpy) >= 1.15
|
|
|
94c56c7 |
BuildRequires: python3dist(pytest)
|
|
|
6217521 |
BuildRequires: python3dist(fsspec)
|
|
|
6217521 |
BuildRequires: python3dist(psycopg2)
|
|
|
94c56c7 |
BuildRequires: python3dist(rtree) >= 0.8
|
|
|
6217521 |
BuildRequires: python3dist(sqlalchemy)
|
|
|
6bfd0f6 |
BuildRequires: python3dist(matplotlib) >= 3.3.4
|
|
|
6217521 |
BuildRequires: python3dist(mapclassify)
|
|
|
4c748c4 |
# See:
|
|
|
4c748c4 |
# Depend on pandas[test] for testing
|
|
|
4c748c4 |
# https://github.com/geopandas/geopandas/pull/2438
|
|
|
4c748c4 |
BuildRequires: python3dist(pandas[test])
|
|
|
a46e397 |
%endif
|
|
|
3b05287 |
|
|
|
3b05287 |
%description -n python3-%{srcname} %{_description}
|
|
|
3b05287 |
|
|
|
3b05287 |
%prep
|
|
|
ad63b26 |
%autosetup -n %{srcname}-%{version} -p1
|
|
|
3b05287 |
|
|
|
376ebe0 |
%generate_buildrequires
|
|
|
6bfd0f6 |
%pyproject_buildrequires
|
|
|
3b05287 |
|
|
|
3b05287 |
%build
|
|
|
376ebe0 |
%pyproject_wheel
|
|
|
3b05287 |
|
|
|
3b05287 |
%install
|
|
|
376ebe0 |
%pyproject_install
|
|
|
376ebe0 |
%pyproject_save_files %{srcname}
|
|
|
3b05287 |
|
|
|
3b05287 |
%check
|
|
|
9163648 |
%if %{without bootstrap}
|
|
|
38e802e |
%{pytest} -ra geopandas -m 'not web'
|
|
|
a46e397 |
%else
|
|
|
a46e397 |
# naturalearth_creation assumes zipfile from naturalearthdata was downloaded to current directory
|
|
|
a46e397 |
%pyproject_check_import -e 'geopandas.*test*' -e geopandas.datasets.naturalearth_creation
|
|
|
a46e397 |
%endif
|
|
|
3b05287 |
|
|
|
376ebe0 |
%files -n python3-%{srcname} -f %{pyproject_files}
|
|
|
3b05287 |
%license LICENSE.txt
|
|
|
3b05287 |
%doc README.md CHANGELOG.md
|
|
|
3b05287 |
|
|
|
3b05287 |
%changelog
|
|
|
6f736ec |
%autochangelog
|