[arch-commits] Commit in python-paste/repos/community-any (3 files)
Felix Yan
felixonmars at archlinux.org
Thu Nov 1 11:15:18 UTC 2018
Date: Thursday, November 1, 2018 @ 11:15:18
Author: felixonmars
Revision: 401070
archrelease: copy trunk to community-any
Added:
python-paste/repos/community-any/PKGBUILD
(from rev 401069, python-paste/trunk/PKGBUILD)
Deleted:
python-paste/repos/community-any/PKGBUILD
python-paste/repos/community-any/python3.7.patch
-----------------+
PKGBUILD | 139 ++++++++++++++++++++++++++----------------------------
python3.7.patch | 22 --------
2 files changed, 67 insertions(+), 94 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2018-11-01 11:15:04 UTC (rev 401069)
+++ PKGBUILD 2018-11-01 11:15:18 UTC (rev 401070)
@@ -1,72 +0,0 @@
-# $Id$
-# 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=2.0.3
-pkgrel=3
-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-nose' 'python2-nose')
-optdepends=('python2-flup: WSGI utilities'
- 'python-openid: Support for OpenID')
-source=("https://files.pythonhosted.org/packages/source/P/Paste/Paste-${pkgver}.tar.gz"
- python3.7.patch)
-md5sums=('1231e14eae62fa7ed76e9130b04bc61e'
- 'eaec86c9ff3da59a784163d6252bb18f')
-
-prepare() {
- rm Paste-${pkgver}/paste/httpserver.py.orig
-
- # https://bitbucket.org/ianb/paste/pull-requests/41
- patch -d Paste-${pkgver} -Np1 < python3.7.patch
-
- 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() {
- # Excluding 'test_paste_website' because pythonpaste.org
- # redirects to web.archive.org, and thus breaks the test
-
- cd "$srcdir"/Paste-$pkgver
- PYTHONPATH="$PWD/build/lib:$PYTHONPATH" nosetests3 -e '.*test_paste_website'
-
- cd "$srcdir"/Paste-$pkgver-py2
- PYTHONPATH="$PWD/build/lib:$PYTHONPATH" nosetests2 -e '.*test_paste_website'
-}
-
-package_python-paste() {
- depends=('python-six')
-
- 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')
-
- cd Paste-$pkgver-py2
- python2 setup.py install --root="$pkgdir" --optimize=1
-
- install -Dm644 docs/license.txt "$pkgdir"/usr/share/licenses/$pkgname/license.txt
-}
Copied: python-paste/repos/community-any/PKGBUILD (from rev 401069, python-paste/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2018-11-01 11:15:18 UTC (rev 401070)
@@ -0,0 +1,67 @@
+# 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.0.2
+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')
+optdepends=('python2-flup: WSGI utilities'
+ 'python-openid: Support for OpenID')
+source=("https://files.pythonhosted.org/packages/source/P/Paste/Paste-${pkgver}.tar.gz")
+sha512sums=('cd825a4c9bbadf6d6f69eb2de18dd5b4ec8dd433981bed2432f784a58b4991155184afd20e9f15719ed22ae54760c0f75ac919c99fa3ed46ade34136207547ed')
+
+prepare() {
+ # https://github.com/cdent/paste/pull/13
+ sed -i 's/nose/pytest/' Paste-${pkgver}/setup.py
+
+ 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() {
+ # Excluding 'test_paste_website' because pythonpaste.org
+ # redirects to web.archive.org, and thus breaks the test
+
+ cd "$srcdir"/Paste-$pkgver
+ python setup.py pytest
+
+ cd "$srcdir"/Paste-$pkgver-py2
+ python2 setup.py pytest
+}
+
+package_python-paste() {
+ depends=('python-six')
+
+ 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')
+
+ cd Paste-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+
+ install -Dm644 docs/license.txt "$pkgdir"/usr/share/licenses/$pkgname/license.txt
+}
Deleted: python3.7.patch
===================================================================
--- python3.7.patch 2018-11-01 11:15:04 UTC (rev 401069)
+++ python3.7.patch 2018-11-01 11:15:18 UTC (rev 401070)
@@ -1,22 +0,0 @@
-# HG changeset patch
-# User Miro Hrončok <miro at hroncok.cz>
-# Date 1528476582 -7200
-# Branch py37
-# Node ID c5a2c7e3191cdcebf3fa5f0e52f55910ed2120b9
-# Parent 0e5a48796ab969d874c6b772c5c33561ac2d1b0d
-Don't raise StopIteration from generator, return instead
-
-See https://www.python.org/dev/peps/pep-0479/
-
-diff --git a/paste/auth/digest.py b/paste/auth/digest.py
---- a/paste/auth/digest.py
-+++ b/paste/auth/digest.py
-@@ -57,7 +57,7 @@
- prev = item
-
- yield prev.strip()
-- raise StopIteration
-+ return
-
- def _auth_to_kv_pairs(auth_string):
- """ split a digest auth string into key, value pairs """
More information about the arch-commits
mailing list