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

Jelle van der Waa jelle at archlinux.org
Tue May 12 19:16:44 UTC 2020


    Date: Tuesday, May 12, 2020 @ 19:16:42
  Author: jelle
Revision: 627172

upgpkg: python-paramiko 2.7.1-2

Remove python2 unused module

Modified:
  python-paramiko/trunk/PKGBUILD

----------+
 PKGBUILD |   32 +++++---------------------------
 1 file changed, 5 insertions(+), 27 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-12 19:16:23 UTC (rev 627171)
+++ PKGBUILD	2020-05-12 19:16:42 UTC (rev 627172)
@@ -3,37 +3,26 @@
 # Contributor: Douglas Soares de Andrade <douglas at archlinux.org>
 # Contributor: Mario Danic <mario.danic at gmail.com>
 
-pkgbase=python-paramiko
-pkgname=(python-paramiko python2-paramiko)
+pkgname=python-paramiko
 pkgver=2.7.1
-pkgrel=1
+pkgrel=2
 pkgdesc="Python module that implements the SSH2 protocol"
 url="https://github.com/paramiko/paramiko/"
 license=('LGPL')
 arch=('any')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-bcrypt' 'python2-bcrypt'
-             'python-cryptography' 'python2-cryptography' 'python-pynacl' 'python2-pynacl')
+depends=('python-bcrypt' 'python-cryptography' 'python-pynacl')
+makedepends=('python-setuptools' 'python-bcrypt' 'python-cryptography' 'python-pynacl')
 checkdepends=('python-pytest-runner' 'python-pytest-relaxed' 'python-pyasn1' 'python-invoke'
              'python-mock')
 source=("$pkgbase-$pkgver.tar.gz::https://github.com/paramiko/paramiko/archive/$pkgver.tar.gz")
 sha512sums=('2cebed2420cf9af77cb0d459b64a74adcffcdb15bd58c8fc9243855ae91f43e16706665b64ce2851f6e99e59ca6a47d7299a2aae35a4c9d01ab97b343569c4b2')
 
-prepare() {
-  cp -a paramiko-$pkgver{,-py2}
-
-  find paramiko-$pkgver-py2 -name '*.py' -print0 | xargs -0 \
-    sed -i -e 's,^#!/usr/bin/env python$,#!/usr/bin/env python2,' \
-        -e 's,^#!/usr/bin/python$,#!/usr/bin/python2,'
-}
-
 check() {
   cd paramiko-$pkgver
   LANG=en_US.UTF-8 python setup.py pytest
 }
 
-package_python-paramiko() {
-  depends=('python-bcrypt' 'python-cryptography' 'python-pynacl')
-
+package() {
   cd paramiko-$pkgver
 
   python setup.py install --root="$pkgdir" --optimize=1
@@ -41,14 +30,3 @@
   install -m644 demos/* "$pkgdir"/usr/share/doc/$pkgname/demos
   chmod 755 "$pkgdir"/usr/share/doc/$pkgname/demos/*.py
 }
-
-package_python2-paramiko() {
-  depends=('python2-bcrypt' 'python2-cryptography' 'python2-pynacl')
-
-  cd paramiko-$pkgver-py2
-
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -dm755 "$pkgdir"/usr/share/doc/$pkgname/demos
-  install -m644 demos/* "$pkgdir"/usr/share/doc/$pkgname/demos
-  chmod 755 "$pkgdir"/usr/share/doc/$pkgname/demos/*.py
-}


More information about the arch-commits mailing list