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

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


    Date: Wednesday, March 30, 2022 @ 23:13:37
  Author: anthraxx
Revision: 1177871

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |   57 ++++++++++++++++++++++++++++++++++-----------------------
 1 file changed, 34 insertions(+), 23 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-03-30 23:13:33 UTC (rev 1177870)
+++ PKGBUILD	2022-03-30 23:13:37 UTC (rev 1177871)
@@ -1,23 +0,0 @@
-# Maintainer: Sven-Hendrik Haase <svenstaro at archlinux.org>
-# Contributor: Alexander Rødseth <rodseth at gmail.com>
-
-pkgname=python-itsdangerous
-pkgver=2.1.2
-pkgrel=1
-pkgdesc='Various helpers to pass trusted data to untrusted environments'
-arch=('any')
-url="http://pypi.python.org/pypi/itsdangerous"
-license=('BSD')
-depends+=('python')
-makedepends=('python' 'python-setuptools')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/mitsuhiko/itsdangerous/archive/${pkgver}.tar.gz")
-sha256sums=('a983dd8e49b9374c942b7946f9bfbcf639ed4a22838d353e4cd30d45e20cc943')
-
-package() {
-  cd "itsdangerous-$pkgver"
-
-  python setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE.rst "$pkgdir/usr/share/licenses/$pkgname/LICENSE.rst"
-}
-
-# vim:set ts=2 sw=2 et:

Copied: python-itsdangerous/repos/community-any/PKGBUILD (from rev 1177870, python-itsdangerous/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-03-30 23:13:37 UTC (rev 1177871)
@@ -0,0 +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=2
+pkgdesc='Various helpers to pass trusted data to untrusted environments'
+arch=('any')
+url='https://palletsprojects.com/p/itsdangerous/'
+license=('BSD')
+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')
+
+build() {
+  cd "itsdangerous-$pkgver"
+  python -m build --wheel --no-isolation
+}
+
+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