diff --git a/.gitignore b/.gitignore index d90cfa3..5fa314f 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,19 @@ /geopandas-0.10.0.tar.gz /geopandas-0.10.1.tar.gz /geopandas-0.10.2.tar.gz +/geopandas-0.11.1.tar.gz +/geopandas-0.12.1.tar.gz +/geopandas-0.12.2.tar.gz +/geopandas-0.13.0.tar.gz +/geopandas-0.13.2.tar.gz +/geopandas-0.14.0.tar.gz +/geopandas-0.14.1.tar.gz +/geopandas-0.14.2.tar.gz +/geopandas-0.14.3.tar.gz +/geopandas-0.14.4.tar.gz +/geopandas-1.0.1.tar.gz +/geopandas-1.1.0.tar.gz +/geopandas-1.1.1.tar.gz +/geopandas-1.1.2.tar.gz +/geopandas-1.1.3.tar.gz +/geopandas-1.1.4.tar.gz diff --git a/.packit.yaml b/.packit.yaml new file mode 100644 index 0000000..d11d5ba --- /dev/null +++ b/.packit.yaml @@ -0,0 +1,18 @@ +# See the documentation for more information: +# https://packit.dev/docs/configuration/ +--- +jobs: + - job: pull_from_upstream + trigger: release + dist_git_branches: + rawhide: + fast_forward_merge_into: + - fedora-branched + - job: koji_build + trigger: commit + dist_git_branches: + - fedora-all + - job: bodhi_update + trigger: commit + dist_git_branches: + - fedora-all diff --git a/README.packit b/README.packit new file mode 100644 index 0000000..dd0af79 --- /dev/null +++ b/README.packit @@ -0,0 +1,3 @@ +This repository is maintained by packit. +https://packit.dev/ +The file was generated using packit 1.16.1. diff --git a/python-geopandas.spec b/python-geopandas.spec index 4bc2606..47100b5 100644 --- a/python-geopandas.spec +++ b/python-geopandas.spec @@ -1,9 +1,22 @@ %global srcname geopandas +# There is a build dependency loop when built with tests. +# It involves libpysal, mapclassify, networkx. +# This bcond allows to bootstrap it. +%bcond bootstrap 0 + Name: python-%{srcname} -Version: 0.10.2 +Version: 1.1.4 Release: %autorelease Summary: Geographic Pandas extensions + +License: BSD-3-Clause +URL: https://pypi.python.org/pypi/%{srcname} +# PyPI source does not have test data. +Source: https://github.com/%{srcname}/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz + +BuildArch: noarch + %global _description \ GeoPandas is a project to add support for geographic data to Pandas objects. \ \ @@ -13,28 +26,29 @@ 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. -License: BSD -URL: https://pypi.python.org/pypi/%{srcname} -Source0: https://github.com/%{srcname}/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz - -BuildArch: noarch - %description %{_description} %package -n python3-%{srcname} Summary: %{summary} - BuildRequires: python3-devel -BuildRequires: python3dist(numpy) >= 1.15 -BuildRequires: python3dist(pytest) +%if %{without bootstrap} BuildRequires: python3dist(fsspec) -BuildRequires: python3dist(psycopg2) -BuildRequires: python3dist(rtree) >= 0.8 -BuildRequires: python3dist(sqlalchemy) -BuildRequires: python3dist(matplotlib) >= 2.0.1 -BuildRequires: python3dist(mapclassify) +BuildRequires: python3dist(fiona) >= 1.8.21 +BuildRequires: python3dist(geopy) +BuildRequires: python3dist(mapclassify) >= 2.5 +BuildRequires: python3dist(matplotlib) >= 3.7 +BuildRequires: python3dist(psycopg) >= 3.1 +BuildRequires: python3dist(pyarrow) >= 8 +BuildRequires: python3dist(pytest) +BuildRequires: python3dist(sqlalchemy) >= 2 +BuildRequires: python3dist(xyzservices) +# See: +# Depend on pandas[test] for testing +# https://github.com/geopandas/geopandas/pull/2438 +BuildRequires: python3dist(pandas[test]) +%endif %description -n python3-%{srcname} %{_description} @@ -42,7 +56,7 @@ BuildRequires: python3dist(mapclassify) %autosetup -n %{srcname}-%{version} -p1 %generate_buildrequires -%pyproject_buildrequires -r +%pyproject_buildrequires %build %pyproject_wheel @@ -52,7 +66,11 @@ BuildRequires: python3dist(mapclassify) %pyproject_save_files %{srcname} %check +%if %{without bootstrap} %{pytest} -ra geopandas -m 'not web' +%else +%pyproject_check_import -e 'geopandas.*test*' +%endif %files -n python3-%{srcname} -f %{pyproject_files} %license LICENSE.txt diff --git a/sources b/sources index a8c4518..b798a00 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (geopandas-0.10.2.tar.gz) = 2fee9f5de51c4573f156c4e3ba19d4124b391c102b583ca17d9dcb7742ded8f6088266e5007127cb2c70b14ef143a1cdaae51bc8a4d1d34131b244bdf4b7ac56 +SHA512 (geopandas-1.1.4.tar.gz) = 70e30407e50acee8ff8d081d3db097ab188a078467bffe2e9765c5d64d9e1d88be76c4f37747a5c107cb96d75c9fa53a7f779e0b406b784386be7d5fef899878