[arch-commits] Commit in python-paste/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Wed Feb 12 17:05:21 UTC 2020
Date: Wednesday, February 12, 2020 @ 17:05:19
Author: felixonmars
Revision: 569528
archrelease: copy trunk to community-testing-any
Added:
python-paste/repos/community-testing-any/
python-paste/repos/community-testing-any/PKGBUILD
(from rev 569527, python-paste/trunk/PKGBUILD)
----------+
PKGBUILD | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 63 insertions(+)
Copied: python-paste/repos/community-testing-any/PKGBUILD (from rev 569527, python-paste/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2020-02-12 17:05:19 UTC (rev 569528)
@@ -0,0 +1,63 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: David Campbell <davekong at archlinux.us>
+# Contributor: Cilyan Olowen <gaknar at gmail.com>
+
+pkgbase=python-paste
+pkgname=(python-paste python2-paste)
+pkgver=3.4.0
+pkgrel=1
+pkgdesc="Tools for using a Web Server Gateway Interface stack"
+arch=('any')
+url="http://pythonpaste.org/index.html"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-six' 'python2-six')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-flup' 'python2-flup'
+ 'python2-openid')
+source=("https://files.pythonhosted.org/packages/source/P/Paste/Paste-${pkgver}.tar.gz")
+sha512sums=('fbe0d1f39d8147846b3a30f18e6776c31eb5bcd8f461c0bf7afc35533c65c2ddf74263807be1b73b76c49cd6cc73c210a37ca651ef1f34e727ccf0687478085a')
+
+prepare() {
+ cp -a Paste-${pkgver}{,-py2}
+
+ cd Paste-${pkgver}-py2
+ sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
+ -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
+ $(find . -name '*.py')
+}
+
+build() {
+ cd "$srcdir"/Paste-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/Paste-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/Paste-$pkgver
+ python setup.py pytest
+
+ cd "$srcdir"/Paste-$pkgver-py2
+ python2 setup.py pytest
+}
+
+package_python-paste() {
+ depends=('python-six')
+ optdepends=('python-flup: WSGI utilities')
+
+ cd Paste-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+
+ install -Dm644 docs/license.txt "$pkgdir"/usr/share/licenses/$pkgname/license.txt
+}
+
+package_python2-paste() {
+ depends=('python2-six')
+ optdepends=('python2-flup: WSGI utilities'
+ 'python2-openid: Support for OpenID')
+
+ cd Paste-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+
+ install -Dm644 docs/license.txt "$pkgdir"/usr/share/licenses/$pkgname/license.txt
+}
More information about the arch-commits
mailing list