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

Levente Polyak anthraxx at archlinux.org
Tue Apr 28 22:07:12 UTC 2020


    Date: Tuesday, April 28, 2020 @ 22:07:11
  Author: anthraxx
Revision: 622135

upgpkg: python-eventlet 0.25.1-4

Modified:
  python-eventlet/trunk/PKGBUILD

----------+
 PKGBUILD |   66 +++++++++++++++++--------------------------------------------
 1 file changed, 19 insertions(+), 47 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-28 21:58:46 UTC (rev 622134)
+++ PKGBUILD	2020-04-28 22:07:11 UTC (rev 622135)
@@ -1,56 +1,44 @@
 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
 
-pkgbase=python-eventlet
-pkgname=('python-eventlet' 'python2-eventlet')
+pkgname=python-eventlet
 _pyname=eventlet
 pkgver=0.25.1
-pkgrel=3
+pkgrel=4
 pkgdesc='Highly concurrent networking library'
 url='https://eventlet.net'
 arch=('any')
 license=('MIT')
-makedepends=('python-greenlet' 'python-setuptools' 'python-sphinx' 'python-monotonic' 'python-dnspython'
-             'python2-greenlet' 'python2-setuptools' 'python2-sphinx' 'python2-monotonic' 'python2-dnspython' 'python2-subprocess32')
-checkdepends=('python-psycopg2' 'python-nose' 'python-pyopenssl' 'python-httplib2' 'python-mock' 'python-pyzmq'
-              'python2-psycopg2' 'python2-nose' 'python2-pyopenssl' 'python2-httplib2' 'python2-mock' 'python2-pyzmq')
+depends=('python' 'python-greenlet' 'python-monotonic' 'python-dnspython')
+makedepends=('python-setuptools' 'python-sphinx')
+checkdepends=('python-psycopg2' 'python-nose' 'python-pyopenssl' 'python-httplib2' 'python-mock' 'python-pyzmq')
+optdepends=(
+  'python-psycopg2: non-blocking PostgreSQL support'
+  'python-pyopenssl: non-blocking SSL support'
+  'python-httplib2: non-blocking HTTP support'
+  'python-pyzmq: non-blocking ZeroMQ support'
+  'python-dnspython: non-blocking DNS support'
+)
 options=('!makeflags')
 source=(https://github.com/eventlet/eventlet/archive/v${pkgver}/${pkgbase}-${pkgver}.tar.gz)
 sha512sums=('ed3c1bfc17039c17730d4a8bb8ae3a3604b0210f3e6c326764fce748d7466a090b270c5dbc713aaf023681f33a80967adbe83f6280b61f5661a309a0bd43249a')
+b2sums=('55d776fff0bcf7bc82914b8e096b39c3ca5c34915ed20ec4fa1e6450c69184137a4cc09c62e1406f23e640c862f2cc3177b3ba7ef37f11113ae8a5ebd3caa2a7')
 
 prepare() {
   sed -r 's|(check_idle_cpu_usage\(.*,) .*\)|\1 0.8\)|g' -i ${_pyname}-${pkgver}/tests/*_test.py
-  cp -a ${_pyname}-${pkgver}{,-py2}
-  sed 's|python|python2|' -i ${_pyname}-${pkgver}-py2/examples/*
 }
 
 build() {
-  (cd ${_pyname}-${pkgver}
-    python setup.py build
-    make -C doc text
-  )
-  (cd ${_pyname}-${pkgver}-py2
-    python2 setup.py build
-    make -C doc text
-  )
+  cd ${_pyname}-${pkgver}
+  python setup.py build
+  make -C doc text
 }
 
 check() {
-  (cd ${_pyname}-${pkgver}
-    nosetests -sv tests
-  )
-  (cd ${_pyname}-${pkgver}-py2
-    nosetests2 -sv tests
-  )
+  cd ${_pyname}-${pkgver}
+  nosetests -sv tests
 }
 
-package_python-eventlet() {
-  depends=('python' 'python-greenlet' 'python-monotonic' 'python-dnspython')
-  optdepends=('python-psycopg2: non-blocking PostgreSQL support'
-              'python-pyopenssl: non-blocking SSL support'
-              'python-httplib2: non-blocking HTTP support'
-              'python-pyzmq: non-blocking ZeroMQ support'
-              'python-dnspython: non-blocking DNS support')
-
+package() {
   cd ${_pyname}-${pkgver}
   python setup.py install --prefix=/usr --root="${pkgdir}" -O1
   install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
@@ -59,20 +47,4 @@
   cp -r examples "${pkgdir}/usr/share/doc/${pkgname}"
 }
 
-package_python2-eventlet() {
-  depends=('python2' 'python2-greenlet' 'python2-monotonic' 'python2-dnspython' 'python2-subprocess32')
-  optdepends=('python2-psycopg2: non-blocking PostgreSQL support'
-              'python2-pyopenssl: non-blocking SSL support'
-              'python2-httplib2: non-blocking HTTP support'
-              'python2-pyzmq: non-blocking ZeroMQ support'
-              'python2-dnspython: non-blocking DNS support')
-
-  cd ${_pyname}-${pkgver}-py2
-  python2 setup.py install --prefix=/usr --root="${pkgdir}" -O1
-  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
-  install -d "${pkgdir}/usr/share/doc/${pkgname}"
-  cp -r doc/_build/text "${pkgdir}/usr/share/doc/${pkgname}"
-  cp -r examples "${pkgdir}/usr/share/doc/${pkgname}"
-}
-
 # vim: ts=2 sw=2 et:



More information about the arch-commits mailing list