[arch-commits] Commit in python-itsdangerous/trunk (PKGBUILD)

Levente Polyak anthraxx at gemini.archlinux.org
Wed Mar 30 23:13:34 UTC 2022


    Date: Wednesday, March 30, 2022 @ 23:13:33
  Author: anthraxx
Revision: 1177870

upgpkg: python-itsdangerous 2.1.2-2: running test suite

Modified:
  python-itsdangerous/trunk/PKGBUILD

----------+
 PKGBUILD |   27 +++++++++++++++++++--------
 1 file changed, 19 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-03-30 22:05:49 UTC (rev 1177869)
+++ PKGBUILD	2022-03-30 23:13:33 UTC (rev 1177870)
@@ -1,23 +1,34 @@
 # Maintainer: Sven-Hendrik Haase <svenstaro at archlinux.org>
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
 # Contributor: Alexander Rødseth <rodseth at gmail.com>
 
 pkgname=python-itsdangerous
 pkgver=2.1.2
-pkgrel=1
+pkgrel=2
 pkgdesc='Various helpers to pass trusted data to untrusted environments'
 arch=('any')
-url="http://pypi.python.org/pypi/itsdangerous"
+url='https://palletsprojects.com/p/itsdangerous/'
 license=('BSD')
-depends+=('python')
-makedepends=('python' 'python-setuptools')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/mitsuhiko/itsdangerous/archive/${pkgver}.tar.gz")
+depends=('python')
+makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
+checkdepends=('python-pytest' 'python-freezegun')
+source=("https://github.com/mitsuhiko/itsdangerous/archive/${pkgver}/$pkgname-$pkgver.tar.gz")
 sha256sums=('a983dd8e49b9374c942b7946f9bfbcf639ed4a22838d353e4cd30d45e20cc943')
 
-package() {
+build() {
   cd "itsdangerous-$pkgver"
+  python -m build --wheel --no-isolation
+}
 
-  python setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE.rst "$pkgdir/usr/share/licenses/$pkgname/LICENSE.rst"
+check() {
+  cd "itsdangerous-$pkgver"
+  PYTHONPATH="build/lib" pytest
 }
 
+package() {
+  cd "itsdangerous-$pkgver"
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -Dm 644 LICENSE.rst -t "$pkgdir/usr/share/licenses/$pkgname"
+}
+
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list