[arch-commits] Commit in python-shapely/repos/community-x86_64 (PKGBUILD PKGBUILD)

Bruno Pagani archange at gemini.archlinux.org
Wed Jun 22 07:36:41 UTC 2022


    Date: Wednesday, June 22, 2022 @ 07:36:40
  Author: archange
Revision: 1238918

archrelease: copy trunk to community-x86_64

Added:
  python-shapely/repos/community-x86_64/PKGBUILD
    (from rev 1238917, python-shapely/trunk/PKGBUILD)
Deleted:
  python-shapely/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   88 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 45 insertions(+), 43 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-06-22 07:36:34 UTC (rev 1238917)
+++ PKGBUILD	2022-06-22 07:36:40 UTC (rev 1238918)
@@ -1,43 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: David Verelst <david dot verelst at gmail com>
-# Contributor: richli
-
-pkgname=python-shapely
-pkgver=1.8.1
-pkgrel=1
-pkgdesc="Manipulation and analysis of geometric objects in the Cartesian plane"
-arch=('x86_64')
-url="https://pypi.python.org/pypi/Shapely"
-license=('BSD')
-depends=('geos' 'python')
-optdepends=('python-numpy: for shapely.vectorized submodule')
-makedepends=('python-setuptools' 'python-packaging' 'python-numpy' 'cython')
-checkdepends=('python-pytest')
-source=("https://pypi.io/packages/source/S/Shapely/Shapely-${pkgver}.tar.gz")
-sha512sums=('42fcbf1bfdaf1337e327c1357109fff2fad69bfcc7728cb19cad9a43e94d316299069934af212badbc3cfe2b3694fe43bf6ee589d01d5f7ff57b6c25c1386510')
-
-prepare() {
-  cd Shapely-$pkgver
-  rm -r _vendor
-  sed -i 's/from _vendor.packaging./from packaging./' setup.py
-}
-
-build() {
-  cd Shapely-$pkgver
-  python setup.py build
-}
-
-check() {
-  # TODO: make the hack less dirty...
-
-  cd Shapely-$pkgver
-  mv shapely shapely.bak
-  PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.10:$PYTHONPATH" py.test
-  mv shapely.bak shapely
-}
-
-package() {
-  cd Shapely-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}

Copied: python-shapely/repos/community-x86_64/PKGBUILD (from rev 1238917, python-shapely/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-06-22 07:36:40 UTC (rev 1238918)
@@ -0,0 +1,45 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+# Contributor: David Verelst <david dot verelst at gmail com>
+# Contributor: richli
+
+pkgname=python-shapely
+pkgver=1.8.2
+pkgrel=1
+pkgdesc="Manipulation and analysis of geometric objects in the Cartesian plane"
+arch=(x86_64)
+url="https://pypi.python.org/pypi/Shapely"
+license=(BSD)
+depends=(geos python)
+optdepends=('python-numpy: for shapely.vectorized submodule')
+makedepends=(python-setuptools python-packaging python-numpy cython)
+checkdepends=(python-pytest)
+source=("https://pypi.io/packages/source/S/Shapely/Shapely-${pkgver}.tar.gz")
+sha512sums=('55a680bd18cd870b709beb974106aefe732e60bee88e73911a6baddbbf5d028af4526d57d70a5e27d0a205b805d1cfeb4c8cfeaa37834d3f798101f2b8b174bd')
+
+prepare() {
+  cd Shapely-$pkgver
+  rm -r _vendor
+  sed -i 's/from _vendor.packaging./from packaging./' setup.py
+}
+
+build() {
+  cd Shapely-$pkgver
+  python setup.py build
+}
+
+check() {
+  # TODO: make the hack less dirty...
+
+  cd Shapely-$pkgver
+  mv shapely shapely.bak
+  local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
+  PYTHONPATH="${PWD}"/build/lib.linux-$CARCH-${python_version} pytest -vv --color=yes
+  mv shapely.bak shapely
+}
+
+package() {
+  cd Shapely-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list