[arch-commits] Commit in python-flask-talisman/repos/community-any (PKGBUILD PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Fri Sep 13 17:16:11 UTC 2019


    Date: Friday, September 13, 2019 @ 17:16:10
  Author: anthraxx
Revision: 510370

archrelease: copy trunk to community-any

Added:
  python-flask-talisman/repos/community-any/PKGBUILD
    (from rev 510369, python-flask-talisman/trunk/PKGBUILD)
Deleted:
  python-flask-talisman/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   77 +++++++++++++++++++++++++++----------------------------------
 1 file changed, 35 insertions(+), 42 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-13 17:16:06 UTC (rev 510369)
+++ PKGBUILD	2019-09-13 17:16:10 UTC (rev 510370)
@@ -1,42 +0,0 @@
-# Maintainer: Jelle van der Waa <jelle at archlinux.org>
-
-_pyname=flask-talisman
-pkgbase=python-flask-talisman
-pkgname=('python-flask-talisman' 'python2-flask-talisman')
-pkgver=0.6.0
-pkgrel=1
-pkgdesc='HTTP security headers for Flask'
-url='https://github.com/GoogleCloudPlatform/flask-talisman'
-arch=('any')
-license=('APACHE')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-flask' 'python2-flask' 'python-six' 'python2-six')
-checkdepends=('python-nose' 'python2-nose')
-source=("${pkgname}-${pkgver}.tar.gz"::https://github.com/GoogleCloudPlatform/flask-talisman/archive/v${pkgver}.tar.gz)
-sha256sums=('bfa74e9a6172ca877e087ba6c832182d93e7da96010f4951a1f95dfddd064505')
-
-package_python-flask-talisman() {
-  depends=('python-flask' 'python-six')
-  cd ${_pyname}-${pkgver}
-
-  python setup.py install --root="${pkgdir}" -O1
-  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
-  install -Dm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
-}
-
-package_python2-flask-talisman() {
-  depends=('python2-flask' 'python2-six')
-  cd ${_pyname}-${pkgver}
-
-  python2 setup.py install --root="${pkgdir}" -O1
-  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
-  install -Dm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
-}
-
-check() {
-  cd ${_pyname}-${pkgver}
-
-  nosetests flask_talisman
-  nosetests2 flask_talisman
-}
-
-# vim: ts=2 sw=2 et:

Copied: python-flask-talisman/repos/community-any/PKGBUILD (from rev 510369, python-flask-talisman/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-09-13 17:16:10 UTC (rev 510370)
@@ -0,0 +1,35 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgname=python-flask-talisman
+_pyname=${pkgname/python-/}
+pkgver=0.7.0
+pkgrel=1
+pkgdesc='HTTP security headers for Flask'
+url='https://github.com/GoogleCloudPlatform/flask-talisman'
+arch=('any')
+license=('APACHE')
+depends=('python-flask' 'python-six')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=(https://github.com/GoogleCloudPlatform/flask-talisman/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('b34cd6c61bd8417ef6ac9628d0768e43505dbb5e07b11efd913a17d5ac5394ad')
+
+build() {
+  cd ${_pyname}-${pkgver}
+  python setup.py build
+}
+
+check() {
+  cd ${_pyname}-${pkgver}
+  pytest flask_talisman
+}
+
+package() {
+  cd ${_pyname}-${pkgver}
+  python setup.py install --root="${pkgdir}" -O1 --skip-build
+  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -Dm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:


More information about the arch-commits mailing list