Date: Friday, May 12, 2023 @ 23:00:53
  Author: arojas
Revision: 1460147

archrelease: copy trunk to community-testing-any

Added:
  python-geopandas/repos/community-testing-any/
  python-geopandas/repos/community-testing-any/PKGBUILD
    (from rev 1460146, python-geopandas/trunk/PKGBUILD)

----------+
 PKGBUILD |   71 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 71 insertions(+)

Copied: python-geopandas/repos/community-testing-any/PKGBUILD (from rev 
1460146, python-geopandas/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD                              (rev 0)
+++ community-testing-any/PKGBUILD      2023-05-12 23:00:53 UTC (rev 1460147)
@@ -0,0 +1,71 @@
+# Maintainer: Bruno Pagani <[email protected]>
+
+_pkg=geopandas
+pkgname=python-${_pkg}
+pkgver=0.13.0
+pkgrel=1
+pkgdesc="Python tools for geographic data"
+arch=(any)
+url="https://geopandas.org";
+license=(BSD)
+depends=(
+    gdal
+    python-fiona
+    python-numpy
+    python-packaging
+    python-pandas
+    python-pyproj
+    python-shapely
+)
+optdepends=(
+    'python-pygeos: alternative backend'
+    'python-pyogrio: vectorized IO for GDAL/OGR'
+    'python-rtree: spatial access methods'
+    'python-psycopg2: PostGIS access'
+    'python-sqlalchemy: other geodatabase access'
+    'python-geopy: geocoding'
+    'python-matplotlib: plotting'
+#    'python-mapclassify: plotting'
+)
+makedepends=(python-setuptools)
+checkdepends=(
+    python-pytest
+    python-fsspec
+    python-pygeos
+    python-pyogrio
+    python-rtree
+    python-matplotlib
+    #python-mapclassify
+    #python-folium
+    #python-xyzservices
+    python-scipy
+    python-geopy
+    python-sqlalchemy
+    python-psycopg2
+    libspatialite
+    #python-geoalchemy2
+    python-pyarrow
+    postgis
+    ghostscript
+)
+# No tests data in Pypi
+#source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
+source=(https://github.com/geopandas/geopandas/archive/refs/tags/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('3af84664162865c317e2cf86e47ca8abef5bf3b7a1c9be5af92ed8ee65e11bcb')
+
+build() {
+  cd ${_pkg}-${pkgver}
+  python setup.py build
+}
+
+check() {
+  cd ${_pkg}-${pkgver}
+# failures due to pygeos https://github.com/geopandas/geopandas/pull/2689
+  PYTHONPATH="${PWD}"/build/lib/ pytest -vv --color=yes -k 'not 
test_fillna_scalar and not test_repr_linearring'
+}
+
+package() {
+  cd ${_pkg}-${pkgver}
+  python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build 
--optimize=1
+  install -Dm644 LICENSE.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}
+}

Reply via email to