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

Massimiliano Torromeo mtorromeo at archlinux.org
Mon Mar 23 09:38:54 UTC 2020


    Date: Monday, March 23, 2020 @ 09:38:53
  Author: mtorromeo
Revision: 603697

upgpkg: python-oauthlib 3.1.0-4: Removed python2-oauthlib

Modified:
  python-oauthlib/trunk/PKGBUILD

----------+
 PKGBUILD |   30 +++++-------------------------
 1 file changed, 5 insertions(+), 25 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-23 09:17:12 UTC (rev 603696)
+++ PKGBUILD	2020-03-23 09:38:53 UTC (rev 603697)
@@ -1,9 +1,8 @@
 # Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
 
-pkgbase=python-oauthlib
-pkgname=(python-oauthlib python2-oauthlib)
+pkgname=python-oauthlib
 pkgver=3.1.0
-pkgrel=3
+pkgrel=4
 _libname=oauthlib
 pkgdesc="A generic, spec-compliant, thorough implementation of the OAuth request-signing logic"
 arch=(any)
@@ -10,37 +9,18 @@
 url="https://github.com/idan/oauthlib"
 license=('BSD')
 source=(https://files.pythonhosted.org/packages/source/${_libname:0:1}/$_libname/$_libname-$pkgver.tar.gz)
-makedepends=(python-setuptools python2-setuptools)
+depends=(python-cryptography)
+makedepends=(python-setuptools)
 sha256sums=('bee41cc35fcca6e988463cacc3bcb8a96224f470ca547e697b604cc697b2f889')
 
 build() {
 	cd "$srcdir/$_libname-$pkgver"
-
-	rm -rf ../buildpy3; mkdir ../buildpy3
-	python setup.py build -b ../buildpy3
-
-	rm -rf ../buildpy2; mkdir ../buildpy2
-	python2 setup.py build -b ../buildpy2
+	python setup.py build
 }
 
 package_python-oauthlib() {
-	depends=(python-cryptography)
-
 	cd "$srcdir/$_libname-$pkgver"
-	rm -rf build; ln -s ../buildpy3 build
 	python setup.py install --skip-build -O1 --root="$pkgdir"
 	install -m0644 -D "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-
 	chmod -R a+r "$pkgdir/usr/lib"
 }
-
-package_python2-oauthlib() {
-	depends=(python2-cryptography)
-
-	cd "$srcdir/$_libname-$pkgver"
-	rm -rf build; ln -s ../buildpy2 build
-	python2 setup.py install --skip-build -O1 --root="$pkgdir"
-	install -m0644 -D "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-
-	chmod -R a+r "$pkgdir/usr/lib"
-}



More information about the arch-commits mailing list