[arch-commits] Commit in python-cherrypy/repos/community-any (PKGBUILD PKGBUILD)
Jelle van der Waa
jelle at archlinux.org
Thu Jan 12 19:33:48 UTC 2017
Date: Thursday, January 12, 2017 @ 19:33:47
Author: jelle
Revision: 207073
archrelease: copy trunk to community-any
Added:
python-cherrypy/repos/community-any/PKGBUILD
(from rev 207072, python-cherrypy/trunk/PKGBUILD)
Deleted:
python-cherrypy/repos/community-any/PKGBUILD
----------+
PKGBUILD | 117 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 60 insertions(+), 57 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2017-01-12 19:33:39 UTC (rev 207072)
+++ PKGBUILD 2017-01-12 19:33:47 UTC (rev 207073)
@@ -1,57 +0,0 @@
-# $Id$
-# Maintainer: Angel Velasquez <angvp at archlinux.org>
-# Contributor: Kaiting Chen <kaitocracy at gmail.com>
-# Contributor: Douglas Soares de Andrade <dsa at aur.archlinux.org>
-# Contributor: Armando M. Baratti <amblistas at ajato.com.br>
-# Contributor: Florian Richter <Florian_Richter at gmx.de>
-pkgname=('python-cherrypy' 'python2-cherrypy')
-pkgver=8.7.0
-pkgrel=1
-pkgdesc="A pythonic, object-oriented web development framework"
-arch=('any')
-url="http://www.cherrypy.org"
-license=('BSD')
-makedepends=('python' 'python2' 'python-setuptools' 'python2-setuptools')
-source=("https://pypi.python.org/packages/7e/22/05ad0115a8bf4be740f650d1a220bbb11e8217a160a4c2e93bb62191879c/CherryPy-8.7.0.tar.gz")
-md5sums=('4cd92f109933e737c8e372ab51e865a8')
-
-build() {
- cp -r CherryPy-${pkgver} CherryPy-${pkgver}-py2
-
- cd CherryPy-${pkgver}
- python ./setup.py build
-
- cd "${srcdir}/CherryPy-${pkgver}-py2"
- python2 ./setup.py build
-}
-
-package_python-cherrypy() {
- depends=('python' 'python-six')
-
- cd CherryPy-${pkgver}
-
- python ./setup.py install --root="${pkgdir}" --optimize=1
-
- install -Dm644 LICENSE.md \
- "${pkgdir}/usr/share/licenses/python-cherrypy/LICENSE.md"
-}
-
-package_python2-cherrypy() {
- depends=('python2')
-
- cd CherryPy-${pkgver}-py2
-
- python2 ./setup.py install --root="${pkgdir}" --optimize=1
- mv "${pkgdir}/usr/bin/cherryd" "${pkgdir}/usr/bin/cherryd2"
-
- install -Dm644 LICENSE.md \
- "${pkgdir}/usr/share/licenses/python2-cherrypy/LICENSE.md"
-}
-
-check() {
- cd CherryPy-${pkgver}
-# python2 ./setup.py test
-
- cd ../CherryPy-${pkgver}
-# python3 ./setup.py check
-}
Copied: python-cherrypy/repos/community-any/PKGBUILD (from rev 207072, python-cherrypy/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2017-01-12 19:33:47 UTC (rev 207073)
@@ -0,0 +1,60 @@
+# $Id$
+# Maintainer: Angel Velasquez <angvp at archlinux.org>
+# Contributor: Kaiting Chen <kaitocracy at gmail.com>
+# Contributor: Douglas Soares de Andrade <dsa at aur.archlinux.org>
+# Contributor: Armando M. Baratti <amblistas at ajato.com.br>
+# Contributor: Florian Richter <Florian_Richter at gmx.de>
+pkgname=('python-cherrypy' 'python2-cherrypy')
+pkgver=8.8.0
+pkgrel=1
+pkgdesc="A pythonic, object-oriented web development framework"
+arch=('any')
+url="http://www.cherrypy.org"
+license=('BSD')
+makedepends=('python' 'python2' 'python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest' 'python2-pytest' 'python-mock' 'python2-mock')
+source=("https://pypi.python.org/packages/1c/db/af94992bb0fb74f5968248e9e3ec5f405703c97cd97578874c9fb08a3bfa/CherryPy-8.8.0.tar.gz")
+md5sums=('71bb74990ff2016826a4fe762d0c07a2')
+
+build() {
+ cp -r CherryPy-${pkgver} CherryPy-${pkgver}-py2
+
+ cd CherryPy-${pkgver}
+ python ./setup.py build
+
+ cd "${srcdir}/CherryPy-${pkgver}-py2"
+ python2 ./setup.py build
+}
+
+package_python-cherrypy() {
+ depends=('python' 'python-six')
+
+ cd CherryPy-${pkgver}
+
+ python ./setup.py install --root="${pkgdir}" --optimize=1
+
+ install -Dm644 LICENSE.md \
+ "${pkgdir}/usr/share/licenses/python-cherrypy/LICENSE.md"
+}
+
+package_python2-cherrypy() {
+ depends=('python2')
+
+ cd CherryPy-${pkgver}-py2
+
+ python2 ./setup.py install --root="${pkgdir}" --optimize=1
+ mv "${pkgdir}/usr/bin/cherryd" "${pkgdir}/usr/bin/cherryd2"
+
+ install -Dm644 LICENSE.md \
+ "${pkgdir}/usr/share/licenses/python2-cherrypy/LICENSE.md"
+}
+
+check() {
+ # backports.unittest_mock is not packaged..
+ cd CherryPy-${pkgver}-py2/cherrypy
+ #LANG="en_US.UTF-8" pytest2 test/
+
+ cd $srcdir/CherryPy-${pkgver}/cherrypy
+ LANG="en_US.UTF-8" pytest test/
+
+}
More information about the arch-commits
mailing list