Jelle van der Waa pushed to branch main at Arch Linux / Packaging / Packages / 
python-fiona


Commits:
9c4caec2 by loqs at 2024-04-09T13:40:33+01:00
Change to a PEP 517 based workflow

- - - - -
2cdeef82 by loqs at 2024-04-09T13:40:34+01:00
Change to SPDX license identifier

https://github.com/Toblerity/Fiona/blob/1.9.5/LICENSE.txt

- - - - -
e16d43da by Jelle van der Waa at 2024-04-23T20:39:04+02:00
upgpkg: 1.9.5-4

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,16 +1,19 @@
 pkgbase = python-fiona
        pkgdesc = Read and write geographic data files
        pkgver = 1.9.5
-       pkgrel = 3
+       pkgrel = 4
        url = https://github.com/Toblerity/Fiona
        arch = x86_64
-       license = BSD
+       license = BSD-3-Clause
        checkdepends = python-pytest
        checkdepends = python-boto3
        checkdepends = python-pytz
        checkdepends = python-shapely
        makedepends = cython
+       makedepends = python-build
+       makedepends = python-installer
        makedepends = python-setuptools
+       makedepends = python-wheel
        depends = gdal
        depends = python-attrs
        depends = python-certifi


=====================================
PKGBUILD
=====================================
@@ -3,11 +3,11 @@
 _pkg=Fiona
 pkgname=python-${_pkg,,}
 pkgver=1.9.5
-pkgrel=3
+pkgrel=4
 pkgdesc="Read and write geographic data files"
 arch=(x86_64)
 url="https://github.com/Toblerity/Fiona";
-license=(BSD)
+license=(BSD-3-Clause)
 depends=(
     gdal
     python-attrs
@@ -22,15 +22,25 @@ optdepends=(
     'python-shapely: fio-calc functionnality'
     'python-boto3: s3 support'
 )
-makedepends=(cython python-setuptools)
+makedepends=(
+    cython
+    python-build
+    python-installer
+    python-setuptools
+    python-wheel
+)
 checkdepends=(python-pytest python-boto3 python-pytz python-shapely)
 
#source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
 
source=(https://github.com/Toblerity/Fiona/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
 sha256sums=('97d29982c8a780f3a6c163472a6e4ffa8c942195adc6883b5e6282b29bad71d4')
 
+prepare() {
+  sed -i '/oldest-supported-numpy/d' ${_pkg}-${pkgver}/pyproject.toml
+}
+
 build() {
   cd ${_pkg}-${pkgver}
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
@@ -44,6 +54,6 @@ check() {
 
 package() {
   cd ${_pkg}-${pkgver}
-  python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build 
--optimize=1
+  python -m installer --destdir="$pkgdir" dist/*.whl
   install -Dm644 LICENSE.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-fiona/-/compare/ad7fa82684dcebf77cab2d2a4d8c2bc322ce299e...e16d43da87a0e3b435e724ba5b0f867e606dce8e

-- 
This project does not include diff previews in email notifications.
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-fiona/-/compare/ad7fa82684dcebf77cab2d2a4d8c2bc322ce299e...e16d43da87a0e3b435e724ba5b0f867e606dce8e
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to