[arch-commits] Commit in python-gevent/repos/community-x86_64 (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Thu Apr 23 08:39:25 UTC 2020
Date: Thursday, April 23, 2020 @ 08:39:24
Author: felixonmars
Revision: 617794
archrelease: copy trunk to community-x86_64
Added:
python-gevent/repos/community-x86_64/PKGBUILD
(from rev 617793, python-gevent/trunk/PKGBUILD)
Deleted:
python-gevent/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 152 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 75 insertions(+), 77 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-04-23 08:39:14 UTC (rev 617793)
+++ PKGBUILD 2020-04-23 08:39:24 UTC (rev 617794)
@@ -1,77 +0,0 @@
-# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Ralf Schmitt <ralf at systemexit.de>
-
-pkgbase=python-gevent
-pkgname=(python-gevent python2-gevent)
-pkgver=1.4.0
-pkgrel=3
-arch=('x86_64')
-pkgdesc="Python network library that uses greenlet and libev for easy and scalable concurrency"
-license=("MIT")
-url="http://www.gevent.org/"
-makedepends=('python-greenlet' 'python2-greenlet' 'cython' 'cython2')
-checkdepends=('lsof' 'python-perf' 'python2-perf' 'python2-virtualenv' 'python-objgraph'
- 'python2-objgraph' 'python-zope-interface' 'python2-zope-interface' 'python-dnspython'
- 'python2-dnspython' 'python-requests' 'python2-requests' 'python-zope-event'
- 'python2-zope-event' 'python2-mock')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/gevent/gevent/archive/$pkgver.tar.gz")
-sha512sums=('3cfc9de24a21f544c53aa78314641c8208fb9c7e9a8366a2310e8847982a44b09bee046a24a36fe6ec09aa060ba64c151b7c67bafd740cc510520b8dc6f3b570')
-
-prepare() {
- sed -e 's/C.UTF-8/en_US.UTF-8/' -e '/@which/d' -i gevent-$pkgver/Makefile
-
- cp -a gevent-$pkgver{,-py2}
-}
-
-build() {
- cd "$srcdir"/gevent-$pkgver
-
- EMBED=1 \
- CYTHON=cython \
- PYTHON=python \
- python setup.py build
-
- cd "$srcdir"/gevent-$pkgver-py2
-
- EMBED=1 \
- CYTHON=cython2 \
- PYTHON=python2 \
- python2 setup.py build
-}
-
-check() {
- (
- cd "$srcdir"/gevent-$pkgver
- pyvenv "$srcdir/pyvenv" --system-site-packages
- . "$srcdir/pyvenv/bin/activate"
- export PYTHONPATH="$PYTHONPATH:/usr/lib/python3.6/site-packages"
- python setup.py install
- make bench alltest
- ) || warning "Tests failed"
-
- (
- cd "$srcdir"/gevent-$pkgver-py2
- virtualenv2 "$srcdir/pyvenv" --system-site-packages
- . "$srcdir/pyvenv/bin/activate"
- export PYTHONPATH="$PYTHONPATH:/usr/lib/python2.7/site-packages"
- python setup.py install
- PYTHON=python2 make bench alltest
- ) || warning "Tests failed"
-}
-
-package_python-gevent() {
- depends=('python-greenlet')
-
- cd gevent-$pkgver
- python setup.py install -O1 --root="$pkgdir"
- install -Dm0644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-package_python2-gevent() {
- depends=('python2-greenlet')
-
- cd gevent-$pkgver-py2
- python2 setup.py install -O1 --root="$pkgdir"
- install -Dm0644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
Copied: python-gevent/repos/community-x86_64/PKGBUILD (from rev 617793, python-gevent/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-04-23 08:39:24 UTC (rev 617794)
@@ -0,0 +1,75 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Ralf Schmitt <ralf at systemexit.de>
+
+pkgbase=python-gevent
+pkgname=(python-gevent python2-gevent)
+pkgver=20.04.0
+pkgrel=1
+arch=('x86_64')
+pkgdesc="Python network library that uses greenlet and libev for easy and scalable concurrency"
+license=("MIT")
+url="http://www.gevent.org/"
+makedepends=('python-greenlet' 'python2-greenlet' 'cython' 'cython2' 'c-ares' 'libev')
+checkdepends=('lsof' 'python-perf' 'python2-perf' 'python2-virtualenv' 'python-objgraph'
+ 'python2-objgraph' 'python-zope-interface' 'python2-zope-interface' 'python-dnspython'
+ 'python2-dnspython' 'python-requests' 'python2-requests' 'python-zope-event'
+ 'python2-zope-event' 'python2-mock')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/gevent/gevent/archive/$pkgver.tar.gz")
+sha512sums=('7dcc428ef861135e4dc66c748898ce04d4b6a25e134362c4aee0f42c085acb0af0057807028ba68a200239214e9d4dc565511fc3e5abfadeacdfcf043893db68')
+
+export EMBED=0
+
+prepare() {
+ cp -a gevent-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/gevent-$pkgver
+
+ CYTHON=cython \
+ PYTHON=python \
+ python setup.py build
+
+ cd "$srcdir"/gevent-$pkgver-py2
+
+ CYTHON=cython2 \
+ PYTHON=python2 \
+ python2 setup.py build
+}
+
+check() {
+ (
+ cd "$srcdir"/gevent-$pkgver
+ python -m venv "$srcdir/pyvenv" --system-site-packages
+ . "$srcdir/pyvenv/bin/activate"
+ export PYTHONPATH="$PYTHONPATH:/usr/lib/python3.6/site-packages"
+ python setup.py install
+ python -m gevent.tests
+ ) || warning "Tests failed"
+
+ (
+ cd "$srcdir"/gevent-$pkgver-py2
+ virtualenv2 "$srcdir/pyvenv" --system-site-packages
+ . "$srcdir/pyvenv/bin/activate"
+ export PYTHONPATH="$PYTHONPATH:/usr/lib/python2.7/site-packages"
+ python setup.py install
+ python2 -m gevent.tests
+ ) || warning "Tests failed"
+}
+
+package_python-gevent() {
+ depends=('c-ares' 'libev' 'python-greenlet')
+
+ cd gevent-$pkgver
+ python setup.py install -O1 --root="$pkgdir"
+ install -Dm0644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-gevent() {
+ depends=('c-ares' 'libev' 'python2-greenlet')
+
+ cd gevent-$pkgver-py2
+ python2 setup.py install -O1 --root="$pkgdir"
+ install -Dm0644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list