[arch-commits] Commit in python-beaker/repos/extra-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Mon Oct 24 00:52:51 UTC 2016
Date: Monday, October 24, 2016 @ 00:52:51
Author: felixonmars
Revision: 279194
archrelease: copy trunk to extra-any
Added:
python-beaker/repos/extra-any/PKGBUILD
(from rev 279193, python-beaker/trunk/PKGBUILD)
Deleted:
python-beaker/repos/extra-any/PKGBUILD
----------+
PKGBUILD | 120 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 60 insertions(+), 60 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2016-10-24 00:52:30 UTC (rev 279193)
+++ PKGBUILD 2016-10-24 00:52:51 UTC (rev 279194)
@@ -1,60 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Ionut Biru <ibiru at archlinux.org>
-# Contributor: Massimiliano Torromeo < massimiliano DOT torromeo AT gmail DOT com >
-
-pkgbase=python-beaker
-pkgname=('python-beaker' 'python2-beaker')
-pkgver=1.8.0
-pkgrel=1
-arch=('any')
-license=('custom')
-pkgdesc="Caching and sessions WSGI middleware for use with web applications and stand-alone Python scripts and applications"
-url="http://beaker.groovie.org/"
-makedepends=('python-setuptools' 'python2-setuptools' 'git')
-checkdepends=('python-nose' 'python2-nose' 'python-mock' 'python2-mock' 'python-sqlalchemy' 'python2-sqlalchemy'
- 'python-crypto' 'python2-crypto' 'python-coverage' 'python2-coverage' 'python-webtest' 'python2-webtest'
- 'python-beautifulsoup4' 'python2-beautifulsoup4')
-source=("git+https://github.com/bbangert/beaker.git#tag=$pkgver")
-md5sums=('SKIP')
-
-prepare() {
- cp -a beaker{,-py2}
-
- sed -i "s#/usr/bin/python#/usr/bin/python3#" beaker/beaker/crypto/pbkdf2.py
- sed -i "s#/usr/bin/python#/usr/bin/python2#" beaker-py2/beaker/crypto/pbkdf2.py
-}
-
-build() {
- cd "${srcdir}/beaker"
- python3 setup.py build
-
- cd "${srcdir}/beaker-py2"
- python2 setup.py build
-}
-
-check() {
- cd "${srcdir}/beaker"
- mkdir tests_py3
- 2to3 -w -n -o tests_py3 tests/*.py
- PYTHONPATH="$PWD/build/lib:$PYTHONPATH" nosetests3 --py3where=tests_py3
-
- cd "${srcdir}/beaker-py2"
- PYTHONPATH="$PWD/build/lib:$PYTHONPATH" nosetests2
-}
-
-package_python-beaker() {
- depends=('python')
-
- cd "${srcdir}/beaker"
- python3 setup.py install --root="${pkgdir}" --optimize=1
- install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/python-beaker/LICENSE"
-}
-
-package_python2-beaker() {
- depends=('python2')
-
- cd "${srcdir}/beaker-py2"
- python2 setup.py install --root="${pkgdir}" --optimize=1
- install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/python2-beaker/LICENSE"
-}
Copied: python-beaker/repos/extra-any/PKGBUILD (from rev 279193, python-beaker/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2016-10-24 00:52:51 UTC (rev 279194)
@@ -0,0 +1,60 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Ionut Biru <ibiru at archlinux.org>
+# Contributor: Massimiliano Torromeo < massimiliano DOT torromeo AT gmail DOT com >
+
+pkgbase=python-beaker
+pkgname=('python-beaker' 'python2-beaker')
+pkgver=1.8.1
+pkgrel=1
+arch=('any')
+license=('custom')
+pkgdesc="Caching and sessions WSGI middleware for use with web applications and stand-alone Python scripts and applications"
+url="http://beaker.groovie.org/"
+makedepends=('python-setuptools' 'python2-setuptools' 'git')
+checkdepends=('python-nose' 'python2-nose' 'python-mock' 'python2-mock' 'python-sqlalchemy' 'python2-sqlalchemy'
+ 'python-crypto' 'python2-crypto' 'python-coverage' 'python2-coverage' 'python-webtest' 'python2-webtest'
+ 'python-beautifulsoup4' 'python2-beautifulsoup4')
+source=("git+https://github.com/bbangert/beaker.git#tag=$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+ cp -a beaker{,-py2}
+
+ sed -i "s#/usr/bin/python#/usr/bin/python3#" beaker/beaker/crypto/pbkdf2.py
+ sed -i "s#/usr/bin/python#/usr/bin/python2#" beaker-py2/beaker/crypto/pbkdf2.py
+}
+
+build() {
+ cd "$srcdir"/beaker
+ python3 setup.py build
+
+ cd "$srcdir"/beaker-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/beaker
+ mkdir tests_py3
+ 2to3 -w -n -o tests_py3 tests/*.py
+ PYTHONPATH="$PWD/build/lib:$PYTHONPATH" nosetests3 --py3where=tests_py3
+
+ cd "$srcdir"/beaker-py2
+ PYTHONPATH="$PWD/build/lib:$PYTHONPATH" nosetests2
+}
+
+package_python-beaker() {
+ depends=('python')
+
+ cd beaker
+ python3 setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/python-beaker/LICENSE
+}
+
+package_python2-beaker() {
+ depends=('python2')
+
+ cd beaker-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/python2-beaker/LICENSE
+}
More information about the arch-commits
mailing list