[arch-commits] Commit in python-paste/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Jan 28 19:48:32 UTC 2020


    Date: Tuesday, January 28, 2020 @ 19:48:31
  Author: felixonmars
Revision: 558273

archrelease: copy trunk to community-testing-any

Added:
  python-paste/repos/community-testing-any/
  python-paste/repos/community-testing-any/PKGBUILD
    (from rev 558272, python-paste/trunk/PKGBUILD)

----------+
 PKGBUILD |   63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 63 insertions(+)

Copied: python-paste/repos/community-testing-any/PKGBUILD (from rev 558272, python-paste/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2020-01-28 19:48:31 UTC (rev 558273)
@@ -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.3.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=('3219a6a4b8bfe5679337f93cbbfb77c422f2e542d11dd6593eeffef2255b289819b53b37bdf3d46624c6e8cd5dbb12829b0ec95d9390d3e29552fb01a73bfd84')
+
+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