[arch-commits] Commit in python-flask-paranoid/repos/community-any (3 files)
Antonio Rojas
arojas at gemini.archlinux.org
Tue Jul 19 20:37:40 UTC 2022
Date: Tuesday, July 19, 2022 @ 20:37:40
Author: arojas
Revision: 1254733
archrelease: copy trunk to community-any
Added:
python-flask-paranoid/repos/community-any/PKGBUILD
(from rev 1254732, python-flask-paranoid/trunk/PKGBUILD)
Deleted:
python-flask-paranoid/repos/community-any/PKGBUILD
python-flask-paranoid/repos/community-any/no-hyphens-in-cookie-dates.patch
----------------------------------+
PKGBUILD | 86 ++++++++++++++++---------------------
no-hyphens-in-cookie-dates.patch | 12 -----
2 files changed, 39 insertions(+), 59 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-07-19 20:37:31 UTC (rev 1254732)
+++ PKGBUILD 2022-07-19 20:37:40 UTC (rev 1254733)
@@ -1,47 +0,0 @@
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
-
-_pkgname=flask-paranoid
-pkgname=python-flask-paranoid
-pkgver=0.2
-pkgrel=8
-pkgdesc='Simple user session protection for Flask applications'
-url='https://github.com/miguelgrinberg/flask-paranoid/'
-arch=('any')
-license=('MIT')
-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
- no-hyphens-in-cookie-dates.patch)
-sha256sums=('cda72c43fd17e6b782e079942b79ec9b19ac40c06337c871cc1dfedbe49297d3'
- '2a2f746a795b442b2894af1754fc7db18fb90594099df0af169d190aafb0f7b1')
-sha512sums=('0d642999fa4d5b795c3dcecc586fc1600cdfceec4adb38bb87ca8be9825d9ddafabb07d98df573a89e61a44a0abd27cbbd21524237b0e23b337a7d5e32ddfdae'
- '2cbabd825d962a79ce9f53694f4f9223156094d586754a64fd51216a8cf2486b1638f3668e85783ec46de184cf6cd9e2628fc860df3835295792d657bc2d2f19')
-
-prepare() {
- cd ${_pkgname}-${pkgver}
- patch -Np1 -i ../no-hyphens-in-cookie-dates.patch
-}
-
-build() {
- cd ${_pkgname}-${pkgver}
- python setup.py build
- sphinx-build -b text docs docs/_build/text
- sphinx-build -b man docs docs/_build/man
-}
-
-check() {
- cd ${_pkgname}-${pkgver}
- python setup.py test
-}
-
-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}"
- install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
- install -Dm 644 docs/_build/text/*.txt -t "${pkgdir}/usr/share/doc/${pkgname}"
- install -Dm 644 docs/_build/man/flask-paranoid.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
-}
-
-# vim: ts=2 sw=2 et:
Copied: python-flask-paranoid/repos/community-any/PKGBUILD (from rev 1254732, python-flask-paranoid/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-07-19 20:37:40 UTC (rev 1254733)
@@ -0,0 +1,39 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+_pkgname=flask-paranoid
+pkgname=python-flask-paranoid
+pkgver=0.3.0
+pkgrel=1
+pkgdesc='Simple user session protection for Flask applications'
+url='https://github.com/miguelgrinberg/flask-paranoid/'
+arch=('any')
+license=('MIT')
+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=('cab9f54e382707c31eb5ad58e1ce3b371ecd0d5d4f3385f9cf01bd13a2e1d9ec')
+sha512sums=('68e49a79e7e00c3a89bcc0347c41b80634b3f5f64227f4ae44db95a286a57b6101dff8f7aba592b8d325b38effc58744ee15d56bd8be30507b76c5dc836fc112')
+
+build() {
+ cd ${_pkgname}-${pkgver}
+ python setup.py build
+ sphinx-build -b text docs docs/_build/text
+ sphinx-build -b man docs docs/_build/man
+}
+
+check() {
+ cd ${_pkgname}-${pkgver}
+ python setup.py test
+}
+
+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}"
+ install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -Dm 644 docs/_build/text/*.txt -t "${pkgdir}/usr/share/doc/${pkgname}"
+ install -Dm 644 docs/_build/man/flask-paranoid.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
+}
+
+# vim: ts=2 sw=2 et:
Deleted: no-hyphens-in-cookie-dates.patch
===================================================================
--- no-hyphens-in-cookie-dates.patch 2022-07-19 20:37:31 UTC (rev 1254732)
+++ no-hyphens-in-cookie-dates.patch 2022-07-19 20:37:40 UTC (rev 1254733)
@@ -1,12 +0,0 @@
-diff -upr flask-paranoid-0.2.orig/tests/test_paranoid.py flask-paranoid-0.2/tests/test_paranoid.py
---- flask-paranoid-0.2.orig/tests/test_paranoid.py 2017-11-17 21:44:46.000000000 +0200
-+++ flask-paranoid-0.2/tests/test_paranoid.py 2021-12-02 21:05:34.088953533 +0200
-@@ -7,7 +7,7 @@ from flask_paranoid import Paranoid
-
- class ParanoidTests(unittest.TestCase):
- def _delete_cookie(self, name):
-- return (name + '=; Expires=Thu, 01-Jan-1970 00:00:00 GMT; '
-+ return (name + '=; Expires=Thu, 01 Jan 1970 00:00:00 GMT; '
- 'Max-Age=0; Path=/')
-
- def test_401(self):
More information about the arch-commits
mailing list