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

Jelle van der Waa jelle at archlinux.org
Sun Jul 12 11:49:28 UTC 2020


    Date: Sunday, July 12, 2020 @ 11:49:27
  Author: jelle
Revision: 663319

Remove python2 module

Modified:
  python-future/trunk/PKGBUILD

----------+
 PKGBUILD |   43 ++++++++-----------------------------------
 1 file changed, 8 insertions(+), 35 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-12 11:45:16 UTC (rev 663318)
+++ PKGBUILD	2020-07-12 11:49:27 UTC (rev 663319)
@@ -3,45 +3,33 @@
 # Contributor: Gaute Hope <eg at gaute.vetsj.com>
 # Contributor: Melissa Padilla <mpadilla2 at hotmail dot com>
 
-pkgbase=python-future
-pkgname=(python-future python2-future)
+pkgname=python-future
 pkgver=0.18.2
-pkgrel=2
+pkgrel=3
 pkgdesc="Clean single-source support for Python 3 and 2"
 url="https://python-future.org/"
 arch=('any')
 license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-requests' 'python2-requests')
+depends=('python')
+provides=('futurize' 'pasteurize')
+checkdepends=('python-requests')
+makedepends=('python-setuptools')
+optdepends=('python-setuptools: futurize and pasteurize scripts')
 options=('!emptydirs')
 source=("https://pypi.io/packages/source/f/future/future-$pkgver.tar.gz")
 sha512sums=('91c025f7d94bcdf93df838fab67053165a414fc84e8496f92ecbb910dd55f6b6af5e360bbd051444066880c5a6877e75157bd95e150ead46e5c605930dfc50f2')
 
-prepare() {
-  cp -a future-$pkgver{,-py2}
-}
-
 build() {
   cd "$srcdir"/future-$pkgver
   python setup.py build
-
-  cd "$srcdir"/future-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
   cd "$srcdir"/future-$pkgver
 #PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python setup.py test || warning "Tests failed"
-
-  cd "$srcdir"/future-$pkgver-py2
-#PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python2 setup.py test
 }
 
-package_python-future() {
-  depends=('python')
-  optdepends=('python-setuptools: futurize and pasteurize scripts')
-  provides=('futurize' 'pasteurize')
-
+package() {
   cd future-$pkgver
 
   python setup.py install --root="$pkgdir" --optimize=1
@@ -48,18 +36,3 @@
   install -D -m644 LICENSE.txt \
     "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
 }
-
-package_python2-future() {
-  depends=('python2')
-  optdepends=('python2-setuptools: futurize2 and pasteurize2 scripts')
-
-  cd future-$pkgver-py2
-
-  python2 setup.py install --root="$pkgdir" --optimize=1
-
-  mv "$pkgdir"/usr/bin/futurize{,2}
-  mv "$pkgdir"/usr/bin/pasteurize{,2}
-
-  install -D -m644 LICENSE.txt \
-    "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
-}



More information about the arch-commits mailing list