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

Antonio Rojas arojas at archlinux.org
Fri Nov 1 23:37:51 UTC 2019


    Date: Friday, November 1, 2019 @ 23:37:50
  Author: arojas
Revision: 522107

Drop python2

Modified:
  python-flask-socketio/trunk/PKGBUILD

----------+
 PKGBUILD |   48 +++++++++++-------------------------------------
 1 file changed, 11 insertions(+), 37 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-11-01 23:34:30 UTC (rev 522106)
+++ PKGBUILD	2019-11-01 23:37:50 UTC (rev 522107)
@@ -1,7 +1,6 @@
 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
 
-pkgbase=python-flask-socketio
-pkgname=('python-flask-socketio' 'python2-flask-socketio')
+pkgname=python-flask-socketio
 _pkgname=Flask-SocketIO
 pkgver=3.2.1
 pkgrel=1
@@ -9,41 +8,26 @@
 url='https://flask-socketio.readthedocs.org/'
 arch=('any')
 license=('MIT')
-makedepends=('python-setuptools' 'python-sphinx' 'python-flask' 'python-eventlet' 'python-socketio'
-             'python2-setuptools' 'python2-sphinx' 'python2-flask' 'python2-eventlet' 'python2-socketio')
-checkdepends=('python-coverage' 'python-pytest'
-              'python2-coverage' 'python2-pytest')
+depends=('python-flask' 'python-eventlet' 'python-socketio')
+makedepends=('python-setuptools' 'python-sphinx')
+checkdepends=('python-coverage' 'python-pytest')
 options=('!makeflags')
-source=(${pkgbase}-${pkgver}.tar.gz::https://github.com/miguelgrinberg/Flask-SocketIO/archive/v${pkgver}.tar.gz)
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/miguelgrinberg/Flask-SocketIO/archive/v${pkgver}.tar.gz)
 sha256sums=('aa2ce476d70600fb8fef04107677612e370602ac0d1c5ece5a6e01f297b3d8b0')
 sha512sums=('8f2009a34142f669fbc2711a12f202554f01da695d0f62a4dcc0d3b5a1f55d8b21a9d66fa0651d316e31979dd0400d5c2f9d4b24c3ff915e5a54682e7d877a06')
 
-prepare() {
-  cp -ra ${_pkgname}-${pkgver}{,-py2}
-}
-
 build() {
-  (cd ${_pkgname}-${pkgver}
-    python setup.py build
-    make -C docs man text SPHINXBUILD=sphinx-build
-  )
-  (cd ${_pkgname}-${pkgver}-py2
-    python2 setup.py build
-    make -C docs man text SPHINXBUILD=sphinx-build2
-  )
+  cd ${_pkgname}-${pkgver}
+  python setup.py build
+  make -C docs man text SPHINXBUILD=sphinx-build
 }
 
 check() {
-  (cd ${_pkgname}-${pkgver}
-    py.test test_socketio.py
-  )
-  (cd ${_pkgname}-${pkgver}-py2
-    py.test2 test_socketio.py
-  )
+  cd ${_pkgname}-${pkgver}
+  py.test test_socketio.py
 }
 
-package_python-flask-socketio() {
-  depends=('python-flask' 'python-eventlet' 'python-socketio')
+package() {
   cd ${_pkgname}-${pkgver}
   python setup.py install -O1 --root="${pkgdir}" --skip-build
   install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
@@ -52,14 +36,4 @@
   install -Dm 644 docs/_build/man/flask-socketio.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
 }
 
-package_python2-flask-socketio() {
-  depends=('python2-flask' 'python2-eventlet' 'python-socketio')
-  cd ${_pkgname}-${pkgver}-py2
-  python2 setup.py install -O1 --root="${pkgdir}" --skip-build
-  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
-  install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
-  install -Dm 644 docs/_build/text/index.txt "${pkgdir}/usr/share/doc/${pkgname}/DOCUMENTATION"
-  install -Dm 644 docs/_build/man/flask-socketio.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
-}
-
 # vim: ts=2 sw=2 et:



More information about the arch-commits mailing list