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

Jelle van der Waa jelle at archlinux.org
Fri May 8 18:49:55 UTC 2020


    Date: Friday, May 8, 2020 @ 18:49:55
  Author: jelle
Revision: 625745

upgpkg: python-itsdangerous 1.1.0-4

Remove unused pyton2 module

Modified:
  python-itsdangerous/trunk/PKGBUILD

----------+
 PKGBUILD |   25 ++++++-------------------
 1 file changed, 6 insertions(+), 19 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-08 18:46:26 UTC (rev 625744)
+++ PKGBUILD	2020-05-08 18:49:55 UTC (rev 625745)
@@ -1,36 +1,23 @@
 # Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
 # Contributor: Alexander Rødseth <rodseth at gmail.com>
 
-pkgname=('python-itsdangerous' 'python2-itsdangerous')
+pkgname=python-itsdangerous
 pkgver=1.1.0
-pkgrel=3
+pkgrel=4
 pkgdesc='Various helpers to pass trusted data to untrusted environments'
 arch=('any')
 url="http://pypi.python.org/pypi/itsdangerous"
 license=('BSD')
-makedepends=('python' 'python2' 'python-setuptools' 'python2-setuptools')
+depends+=('python')
+makedepends=('python' 'python-setuptools')
 source=("$pkgname-$pkgver.tar.gz::https://github.com/mitsuhiko/itsdangerous/archive/${pkgver}.tar.gz")
 sha256sums=('2fbc62987b9f7aa646083326e5746ab5d791628e63575851a8ce5d5d5e8754b9')
 
-prepare() {
-  cp -r "itsdangerous-$pkgver" "python-itsdangerous-$pkgver"
-  cp -r "itsdangerous-$pkgver" "python2-itsdangerous-$pkgver"
-}
+package() {
+  cd "itsdangerous-$pkgver"
 
-package_python-itsdangerous() {
-  cd "$pkgname-$pkgver"
-  depends+=('python')
-
   python setup.py install --root="$pkgdir" --optimize=1
   install -Dm644 LICENSE.rst "$pkgdir/usr/share/licenses/$pkgname/LICENSE.rst"
 }
 
-package_python2-itsdangerous() {
-  cd "$pkgname-$pkgver"
-  depends+=('python2')
-
-  python2 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:


More information about the arch-commits mailing list