[arch-commits] Commit in python-flask-gravatar/trunk (PKGBUILD)
Jelle van der Waa
jelle at archlinux.org
Wed Oct 30 21:05:11 UTC 2019
Date: Wednesday, October 30, 2019 @ 21:05:11
Author: jelle
Revision: 521006
remove python2 variant
Modified:
python-flask-gravatar/trunk/PKGBUILD
----------+
PKGBUILD | 27 ++++-----------------------
1 file changed, 4 insertions(+), 23 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-30 20:59:35 UTC (rev 521005)
+++ PKGBUILD 2019-10-30 21:05:11 UTC (rev 521006)
@@ -1,8 +1,7 @@
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
_pkgname=Flask-Gravatar
-pkgbase=python-flask-gravatar
-pkgname=('python-flask-gravatar' 'python2-flask-gravatar')
+pkgname=python-flask-gravatar
pkgver=0.5.0
pkgrel=2
pkgdesc='Small and simple gravatar usage in Flask'
@@ -9,10 +8,8 @@
url='https://github.com/zzzsochi/Flask-Gravatar/'
arch=('any')
license=('BSD')
-makedepends=('python-flask' 'python-sphinx' 'python-setuptools'
- 'python2-flask' 'python2-sphinx' 'python2-setuptools')
-checkdepends=('python-pytest'
- 'python2-pytest')
+makedepends=('python-flask' 'python-sphinx' 'python-setuptools')
+checkdepends=('python-pytest')
source=(${pkgbase}-${pkgver}.tar.gz::https://github.com/zzzsochi/Flask-Gravatar/archive/v${pkgver}.tar.gz)
sha256sums=('9f9ea35b3537f635a25a09390821b768c9c3cf53274e16ffabbfc1f8c6e77d55')
sha512sums=('8acc5374e559687cc1b5fbaa90c1d17e96fd91e8b01d3df8083bc10c92afefb3725c03c4640e92e73d727320fc26235f80f6dfe36a06aeff49268af44110a23c')
@@ -22,18 +19,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-gravatar() {
+package() {
depends=('python' 'python-flask')
cd ${_pkgname}-${pkgver}
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
@@ -42,15 +35,3 @@
install -Dm 644 docs/_build/text/*.txt -t "${pkgdir}/usr/share/doc/${pkgname}"
install -Dm 644 docs/_build/man/flaskgravatar.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
}
-
-package_python2-flask-gravatar() {
- depends=('python2' 'python2-flask')
- cd ${_pkgname}-${pkgver}
- python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
- install -Dm 644 README.rst CHANGES.rst -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/flaskgravatar.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
-}
-
-# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list