[arch-commits] Commit in python-grequests/repos/community-any (PKGBUILD PKGBUILD)
Massimiliano Torromeo
mtorromeo at archlinux.org
Mon Mar 23 09:43:09 UTC 2020
Date: Monday, March 23, 2020 @ 09:43:08
Author: mtorromeo
Revision: 603700
archrelease: copy trunk to community-any
Added:
python-grequests/repos/community-any/PKGBUILD
(from rev 603699, python-grequests/trunk/PKGBUILD)
Deleted:
python-grequests/repos/community-any/PKGBUILD
----------+
PKGBUILD | 72 ++++++++++++++++++++++---------------------------------------
1 file changed, 27 insertions(+), 45 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-03-23 09:43:01 UTC (rev 603699)
+++ PKGBUILD 2020-03-23 09:43:08 UTC (rev 603700)
@@ -1,45 +0,0 @@
-# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
-
-pkgbase=python-grequests
-pkgname=(python-grequests python2-grequests)
-_libname=grequests
-pkgver=0.4.0
-pkgrel=2
-pkgdesc="Allows you to use Requests with Gevent to make asyncronous HTTP Requests easily."
-url="https://pypi.python.org/pypi/grequests/"
-license=('custom: ISC')
-arch=('any')
-makedepends=('python-setuptools' 'python2-setuptools')
-source=(https://files.pythonhosted.org/packages/source/${_libname:0:1}/$_libname/$_libname-$pkgver.tar.gz
- $_libname-$pkgver-LICENSE::https://github.com/kennethreitz/grequests/raw/v$pkgver/LICENSE)
-sha256sums=('8aeccc15e60ec65c7e67ee32e9c596ab2196979815497f85cf863465a1626490'
- '4063882a8913e4b37457d58fe6600bd975ba053c8db2e8c6b218e7c9c8575ca8')
-
-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
- find ../buildpy2 -name \*.py -exec sed -r '1 s|^#!(.*)python$|#!\1python2|' -i {} +
-}
-
-package_python-grequests() {
- depends=('python-requests' 'python-gevent')
-
- cd "$srcdir"/$_libname-$pkgver
- rm -rf build; ln -s ../buildpy3 build
- python setup.py install --skip-build -O1 --root="$pkgdir"
- install -m0644 -D "$srcdir"/$_libname-$pkgver-LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-package_python2-grequests() {
- depends=('python2-requests' 'python2-gevent')
-
- cd "$srcdir"/$_libname-$pkgver
- rm -rf build; ln -s ../buildpy2 build
- python2 setup.py install --skip-build -O1 --root="$pkgdir"
- install -m0644 -D "$srcdir"/$_libname-$pkgver-LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
Copied: python-grequests/repos/community-any/PKGBUILD (from rev 603699, python-grequests/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-03-23 09:43:08 UTC (rev 603700)
@@ -0,0 +1,27 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=python-grequests
+_libname=grequests
+pkgver=0.4.0
+pkgrel=3
+pkgdesc="Allows you to use Requests with Gevent to make asyncronous HTTP Requests easily."
+url="https://pypi.python.org/pypi/grequests/"
+license=('custom: ISC')
+arch=('any')
+depends=('python-requests' 'python-gevent')
+makedepends=('python-setuptools')
+source=(https://files.pythonhosted.org/packages/source/${_libname:0:1}/$_libname/$_libname-$pkgver.tar.gz
+ $_libname-$pkgver-LICENSE::https://github.com/kennethreitz/grequests/raw/v$pkgver/LICENSE)
+sha256sums=('8aeccc15e60ec65c7e67ee32e9c596ab2196979815497f85cf863465a1626490'
+ '4063882a8913e4b37457d58fe6600bd975ba053c8db2e8c6b218e7c9c8575ca8')
+
+build() {
+ cd "$srcdir"/$_libname-$pkgver
+ python setup.py build
+}
+
+package_python-grequests() {
+ cd "$srcdir"/$_libname-$pkgver
+ python setup.py install --skip-build -O1 --root="$pkgdir"
+ install -m0644 -D "$srcdir"/$_libname-$pkgver-LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list