aboutsummaryrefslogtreecommitdiff
path: root/gis
diff options
context:
space:
mode:
authorisaackwy <isaacyu@protonmail.com>2024-07-12 18:43:26 -0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-07-15 10:50:46 +0700
commit743a369c721a410349396a0e4ca0e41eb3eb7baa (patch)
treed313260ddbaf574ef43bb25d6ad84fca98ba1964 /gis
parent9eb02e7f5b7c849a7b0c4c507918aeb107f31d00 (diff)
gis/geopandas: Update for 1.0.1 (+new maintainer)
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'gis')
-rw-r--r--gis/geopandas/README2
-rw-r--r--gis/geopandas/geopandas.SlackBuild30
-rw-r--r--gis/geopandas/geopandas.info12
3 files changed, 16 insertions, 28 deletions
diff --git a/gis/geopandas/README b/gis/geopandas/README
index 89fa9b47f9..77f8570552 100644
--- a/gis/geopandas/README
+++ b/gis/geopandas/README
@@ -3,3 +3,5 @@ pandas objects. It currently implements GeoSeries and GeoDataFrame
types which are subclasses of pandas.Series and pandas.DataFrame
respectively. GeoPandas objects can act on shapely geometry objects
and perform geometric operations.
+
+geopy is an optional dependency for geocoding support.
diff --git a/gis/geopandas/geopandas.SlackBuild b/gis/geopandas/geopandas.SlackBuild
index 3a5365c81d..a95305aae7 100644
--- a/gis/geopandas/geopandas.SlackBuild
+++ b/gis/geopandas/geopandas.SlackBuild
@@ -3,6 +3,7 @@
# SlackBuild script for geopandas
# Copyright 2020-2021 Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
+# Copyright 2024 Isaac Yu <isaacyu@protonmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=geopandas
-VERSION=${VERSION:-0.9.0}
+VERSION=${VERSION:-1.0.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,9 +39,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -50,20 +48,6 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i586" ]; then
- SLKCFLAGS="-O2 -march=i586 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
-else
- SLKCFLAGS="-O2"
- LIBDIRSUFFIX=""
-fi
-
set -e
rm -rf $PKG
@@ -79,12 +63,14 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-python3 setup.py install --root=$PKG
+PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')
+export PYTHONPATH=/opt/python$PYVER/site-packages/
+
+python3 -m build --no-isolation
+python3 -m installer -d "$PKG" dist/*.whl
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- LICENSE.txt README.md \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a CHANGELOG.md CODE_OF_CONDUCT.md README.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/gis/geopandas/geopandas.info b/gis/geopandas/geopandas.info
index 37aa54c930..e3b9bae4d0 100644
--- a/gis/geopandas/geopandas.info
+++ b/gis/geopandas/geopandas.info
@@ -1,10 +1,10 @@
PRGNAM="geopandas"
-VERSION="0.9.0"
+VERSION="1.0.1"
HOMEPAGE="https://github.com/geopandas/geopandas"
-DOWNLOAD="https://github.com/geopandas/geopandas/archive/v0.9.0/geopandas-0.9.0.tar.gz"
-MD5SUM="d4f8ca22c882d80f40a48f4ac0983c7c"
+DOWNLOAD="https://github.com/geopandas/geopandas/archive/v1.0.1/geopandas-1.0.1.tar.gz"
+MD5SUM="1021d6779daa9e406d288e748c8a88b7"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="geopy Fiona python3-psycopg2 python3-pyproj python3-pandas python3-shapely"
-MAINTAINER="Benjamin Trigona-Harany"
-EMAIL="slackbuilds@jaxartes.net"
+REQUIRES="python3-pyogrio python3-psycopg2 python3-pyproj python3-pandas python3-shapely"
+MAINTAINER="Isaac Yu"
+EMAIL="isaacyu@protonmail.com"