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

Jelle van der Waa jelle at archlinux.org
Wed Nov 11 21:41:51 UTC 2020


    Date: Wednesday, November 11, 2020 @ 21:41:51
  Author: jelle
Revision: 751254

Remove python2-bebop

Modified:
  python-webob/trunk/PKGBUILD

----------+
 PKGBUILD |   25 ++++---------------------
 1 file changed, 4 insertions(+), 21 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-11 21:34:17 UTC (rev 751253)
+++ PKGBUILD	2020-11-11 21:41:51 UTC (rev 751254)
@@ -3,7 +3,7 @@
 # Contributor: Cilyan Olowen <gaknar at gmail.com>
 
 pkgbase='python-webob'
-pkgname=('python-webob' 'python2-webob' 'python-webob-docs')
+pkgname=('python-webob' 'python-webob-docs')
 pkgver=1.8.6
 pkgrel=2
 pkgdesc="WSGI request and response object"
@@ -10,14 +10,14 @@
 arch=('any')
 url="http://pythonpaste.org/webob/"
 license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-sphinx')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+depends=('python')
+makedepends=('python-setuptools' 'python-sphinx')
+checkdepends=('python-pytest-runner')
 optdepends=('python-webob-docs: documentation')
 source=("https://pypi.io/packages/source/W/WebOb/WebOb-$pkgver.tar.gz")
 sha512sums=('b9a3faac114c55f3e9a6eb71a78dd921d928da99a427dea05bc798bc1fe249f0f1cf8c9b9fcb1b73be2737b9132bbfe2250a8652e3a8a1199ac74fa62a59d44c')
 
 prepare() {
-  cp -a WebOb-$pkgver{,-py2}
   cp -a WebOb-$pkgver{,-docs}
   sed -i "s/pkg_resources.get_distribution('webob').version/'$pkgver'/" WebOb-$pkgver-docs/docs/conf.py
 }
@@ -26,9 +26,6 @@
   cd "$srcdir"/WebOb-$pkgver
   python setup.py build
 
-  cd "$srcdir"/WebOb-$pkgver-py2
-  python2 setup.py build
-
   cd "$srcdir"/WebOb-$pkgver-docs
   PYTHONPATH="$PWD/src" make -C docs html
 }
@@ -36,14 +33,9 @@
 check() {
   cd "$srcdir"/WebOb-$pkgver
   python setup.py pytest --addopts "--ignore=docs"
-
-  cd "$srcdir"/WebOb-$pkgver-py2
-  python2 setup.py pytest --addopts "--ignore=docs"
 }
 
 package_python-webob() {
-  depends=('python')
-
   cd "$srcdir"/WebOb-$pkgver
   python setup.py install -O1 --root="$pkgdir"
   install -D -m644 "docs/license.txt" \
@@ -50,15 +42,6 @@
                    "$pkgdir"/usr/share/licenses/$pkgname/license.txt
 }
 
-package_python2-webob() {
-  depends=('python2')
-
-  cd "$srcdir"/WebOb-$pkgver-py2
-  python2 setup.py install -O1 --root="$pkgdir"
-  install -D -m644 "docs/license.txt" \
-                   "$pkgdir"/usr/share/licenses/$pkgname/license.txt
-}
-
 package_python-webob-docs() {
   optdepends=()
 


More information about the arch-commits mailing list