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

Jelle van der Waa jelle at gemini.archlinux.org
Wed Oct 27 20:21:44 UTC 2021


    Date: Wednesday, October 27, 2021 @ 20:21:44
  Author: jelle
Revision: 1034788

Drop python2 module

Modified:
  python-pexpect/trunk/PKGBUILD

----------+
 PKGBUILD |   24 +++++-------------------
 1 file changed, 5 insertions(+), 19 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-10-27 20:20:35 UTC (rev 1034787)
+++ PKGBUILD	2021-10-27 20:21:44 UTC (rev 1034788)
@@ -1,37 +1,23 @@
 # Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
 # Contributor: Aaron Schaefer <aaron at elasticdog.com>
 
-pkgname=(python-pexpect python2-pexpect)
+pkgname=python-pexpect
 pkgver=4.8.0
-pkgrel=3
+pkgrel=4
 pkgdesc='For controlling and automating applications'
 arch=(any)
 url='https://pexpect.readthedocs.org/en/stable/'
 license=(MIT)
-makedepends=(git python python2)
+depends=(python python-ptyprocess)
+makedepends=(git python)
 source=("git+https://github.com/pexpect/pexpect#commit=5eed1a31a2853a09b7367c59fbd1a4a0b53341df") # 4.8.0
 sha512sums=('SKIP')
 
-prepare() {
-  cp -r pexpect python2-pexpect
-  sed -i 's,env python,env python2,' python2-pexpect/pexpect/FSM.py
-}
-
-package_python-pexpect() {
-  depends+=(python python-ptyprocess)
-
+package() {
   cd pexpect
   python setup.py install --root="$pkgdir"
   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
 
-package_python2-pexpect() {
-  depends+=(python2 python2-ptyprocess)
-
-  cd python2-pexpect
-  python2 setup.py install --root="$pkgdir"
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
-
 # getver: pypi.python.org/pypi/pexpect
 # vim: ts=2 sw=2 et:



More information about the arch-commits mailing list