[arch-commits] Commit in python-geographiclib/repos/community-any (PKGBUILD PKGBUILD)

David Runge dvzrv at gemini.archlinux.org
Sat Apr 23 15:04:30 UTC 2022


    Date: Saturday, April 23, 2022 @ 15:04:30
  Author: dvzrv
Revision: 1187640

archrelease: copy trunk to community-any

Added:
  python-geographiclib/repos/community-any/PKGBUILD
    (from rev 1187639, python-geographiclib/trunk/PKGBUILD)
Deleted:
  python-geographiclib/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   73 +++++++++++++++++++++++++++----------------------------------
 1 file changed, 33 insertions(+), 40 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-04-23 15:04:21 UTC (rev 1187639)
+++ PKGBUILD	2022-04-23 15:04:30 UTC (rev 1187640)
@@ -1,40 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=geographiclib
-pkgname=python-geographiclib
-pkgver=1.52
-pkgrel=3
-pkgdesc="Python implementation of the geodesic routines in GeographicLib"
-arch=('any')
-url="https://geographiclib.sourceforge.io/1.50/python/"
-license=('MIT')
-depends=('python')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha512sums=('c6c41a6c571f2028c24c0905155d0ea443e0c250963a89ae62237664d02df8b22977c2b6b230553ecbad01b61075a2f4874a6dcd86a041fd871eea3e9801d533')
-b2sums=('b5251e3d3b0e1053ab063213d0616d9268e22ebff248d30cb3eb2f421315808b0a31c34a21008cb219db9364ef37fdf67adf63770e43e9ff287462284a3ec919')
-
-prepare() {
-  mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
-}
-
-build() {
-  cd "$pkgname-$pkgver"
-  python setup.py build
-}
-
-check() {
-  cd "$pkgname-$pkgver"
-  export PYTHONPATH="build:${PYTHONPATH}"
-  pytest -v
-}
-
-package() {
-  cd "$pkgname-$pkgver"
-  python setup.py install --skip-build \
-    --optimize=1 \
-    --root="${pkgdir}"
-  install -vDm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
-  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
-}

Copied: python-geographiclib/repos/community-any/PKGBUILD (from rev 1187639, python-geographiclib/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-04-23 15:04:30 UTC (rev 1187640)
@@ -0,0 +1,33 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=geographiclib
+pkgname=python-geographiclib
+pkgver=2.0
+pkgrel=1
+pkgdesc="Python implementation of the geodesic routines in GeographicLib"
+arch=(any)
+url="https://geographiclib.sourceforge.io/1.50/python/"
+license=(MIT)
+depends=(python)
+makedepends=(python-build python-installer python-poetry python-wheel)
+checkdepends=(python-pytest)
+source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
+sha512sums=('08e67317b83ed96dc45b013bfc0eac771f015250da07b1574252f566f48ce944ad0a5a0623b1bfc96c14e65658f2f39a069af5ceb6ffe153677cc2a023eeef91')
+b2sums=('31759eda6b77b191c34c18c2c6abdcf04214391e7d77eb68aa000aff8ec35519ab705b358f76bb0a50aff74708bcada664bdf3a97a3fb3e482ca773d6f410eed')
+
+build() {
+  cd $_name-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd $_name-$pkgver
+  pytest -vv
+}
+
+package() {
+  cd $_name-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -vDm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
+  install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
+}



More information about the arch-commits mailing list