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

Antonio Rojas arojas at archlinux.org
Fri Nov 8 23:51:05 UTC 2019


    Date: Friday, November 8, 2019 @ 23:51:05
  Author: arojas
Revision: 524739

Drop python2

Modified:
  python-flask-paranoid/trunk/PKGBUILD

----------+
 PKGBUILD |   29 ++++++-----------------------
 1 file changed, 6 insertions(+), 23 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-11-08 23:50:03 UTC (rev 524738)
+++ PKGBUILD	2019-11-08 23:51:05 UTC (rev 524739)
@@ -1,8 +1,7 @@
 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
 
 _pkgname=flask-paranoid
-pkgbase=python-flask-paranoid
-pkgname=('python-flask-paranoid' 'python2-flask-paranoid')
+pkgname=python-flask-paranoid
 pkgver=0.2
 pkgrel=3
 pkgdesc='Simple user session protection for Flask applications'
@@ -9,11 +8,10 @@
 url='https://github.com/miguelgrinberg/flask-paranoid/'
 arch=('any')
 license=('MIT')
-makedepends=('python-flask' 'python-sphinx' 'python-setuptools'
-             'python2-flask' 'python2-sphinx' 'python2-setuptools')
-checkdepends=('python-pytest'
-              'python2-pytest')
-source=(${pkgbase}-${pkgver}.tar.gz::https://github.com/miguelgrinberg/flask-paranoid/archive/v${pkgver}.tar.gz)
+depends=('python' 'python-flask')
+makedepends=('python-sphinx' 'python-setuptools')
+checkdepends=('python-pytest')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/miguelgrinberg/flask-paranoid/archive/v${pkgver}.tar.gz)
 sha256sums=('cda72c43fd17e6b782e079942b79ec9b19ac40c06337c871cc1dfedbe49297d3')
 sha512sums=('0d642999fa4d5b795c3dcecc586fc1600cdfceec4adb38bb87ca8be9825d9ddafabb07d98df573a89e61a44a0abd27cbbd21524237b0e23b337a7d5e32ddfdae')
 
@@ -22,19 +20,14 @@
   python setup.py build
   sphinx-build -b text docs docs/_build/text
   sphinx-build -b man docs docs/_build/man
-  python2 setup.py build
-  sphinx-build2 -b text docs docs/_build-py2/text
-  sphinx-build2 -b man docs docs/_build-py2/man
 }
 
 check() {
   cd ${_pkgname}-${pkgver}
   python setup.py test
-  python2 setup.py test
 }
 
-package_python-flask-paranoid() {
-  depends=('python' 'python-flask')
+package() {
   cd ${_pkgname}-${pkgver}
   python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
   install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
@@ -43,14 +36,4 @@
   install -Dm 644 docs/_build/man/flask-paranoid.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
 }
 
-package_python2-flask-paranoid() {
-  depends=('python2' 'python2-flask')
-  cd ${_pkgname}-${pkgver}
-  python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-  install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
-  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
-  install -Dm 644 docs/_build-py2/text/*.txt -t "${pkgdir}/usr/share/doc/${pkgname}"
-  install -Dm 644 docs/_build-py2/man/flask-paranoid.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
-}
-
 # vim: ts=2 sw=2 et:



More information about the arch-commits mailing list