[arch-commits] Commit in python-h11/repos/community-staging-any (3 files)
Felix Yan
felixonmars at archlinux.org
Fri Nov 1 08:21:18 UTC 2019
Date: Friday, November 1, 2019 @ 08:21:17
Author: felixonmars
Revision: 521754
archrelease: copy trunk to community-staging-any
Added:
python-h11/repos/community-staging-any/PKGBUILD
(from rev 521753, python-h11/trunk/PKGBUILD)
python-h11/repos/community-staging-any/pytest5.patch
(from rev 521753, python-h11/trunk/pytest5.patch)
Deleted:
python-h11/repos/community-staging-any/PKGBUILD
---------------+
PKGBUILD | 107 ++++++++++++++++++++++++++++----------------------------
pytest5.patch | 12 ++++++
2 files changed, 67 insertions(+), 52 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-11-01 08:21:03 UTC (rev 521753)
+++ PKGBUILD 2019-11-01 08:21:17 UTC (rev 521754)
@@ -1,52 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Simon Sapin <simon dot sapin at exyr dot org>
-# Contributor: Kyle Keen <keenerd at gmail.com>
-
-pkgbase=python-h11
-pkgname=(python-h11 python2-h11)
-pkgver=0.8.1
-pkgrel=3
-pkgdesc="A pure-Python, bring-your-own-I/O implementation of HTTP/1.1"
-url="https://github.com/njsmith/h11"
-license=('MIT')
-arch=('any')
-makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner')
-source=("https://pypi.io/packages/source/h/h11/h11-$pkgver.tar.gz")
-sha512sums=('3310dcd8552de4440ed9669fd37b3fc4d76073a9801decb705bceee3c1e98ff83470bd124ecf36e1ec3457ff2fb4da6f4fbf077daa810c28ab73044dfab709d4')
-
-prepare() {
- cp -a h11-$pkgver{,-py2}
-}
-
-build() {
- cd "$srcdir"/h11-$pkgver
- python setup.py build
-
- cd "$srcdir"/h11-$pkgver-py2
- python2 setup.py build
-}
-
-check() {
- cd "$srcdir"/h11-$pkgver
- python setup.py pytest
-
- cd "$srcdir"/h11-$pkgver-py2
- python2 setup.py pytest
-}
-
-package_python-h11() {
- depends=('python')
-
- cd h11-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1
- install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
-}
-
-package_python2-h11() {
- depends=('python2')
-
- cd h11-$pkgver-py2
- python2 setup.py install --root="$pkgdir" --optimize=1
- install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
-}
Copied: python-h11/repos/community-staging-any/PKGBUILD (from rev 521753, python-h11/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-11-01 08:21:17 UTC (rev 521754)
@@ -0,0 +1,55 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Simon Sapin <simon dot sapin at exyr dot org>
+# Contributor: Kyle Keen <keenerd at gmail.com>
+
+pkgbase=python-h11
+pkgname=(python-h11 python2-h11)
+pkgver=0.8.1
+pkgrel=4
+pkgdesc="A pure-Python, bring-your-own-I/O implementation of HTTP/1.1"
+url="https://github.com/njsmith/h11"
+license=('MIT')
+arch=('any')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=("https://pypi.io/packages/source/h/h11/h11-$pkgver.tar.gz"
+ 'pytest5.patch')
+sha512sums=('3310dcd8552de4440ed9669fd37b3fc4d76073a9801decb705bceee3c1e98ff83470bd124ecf36e1ec3457ff2fb4da6f4fbf077daa810c28ab73044dfab709d4'
+ '7747ba51fa9350d4fa6a5c1654f237e4109a5f0b7175be777ca0e1da83af4f631a240a605c594076fefcec5c26693f55886c0cb47aa75236d65a42dd520cb6e1')
+
+prepare() {
+ patch -Np1 -d h11-$pkgver <pytest5.patch
+ cp -a h11-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/h11-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/h11-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/h11-$pkgver
+ python setup.py pytest
+
+ cd "$srcdir"/h11-$pkgver-py2
+ python2 setup.py pytest
+}
+
+package_python-h11() {
+ depends=('python')
+
+ cd h11-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}
+
+package_python2-h11() {
+ depends=('python2')
+
+ cd h11-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}
Copied: python-h11/repos/community-staging-any/pytest5.patch (from rev 521753, python-h11/trunk/pytest5.patch)
===================================================================
--- pytest5.patch (rev 0)
+++ pytest5.patch 2019-11-01 08:21:17 UTC (rev 521754)
@@ -0,0 +1,12 @@
+diff -upr h11-0.8.1.orig/h11/tests/test_events.py h11-0.8.1/h11/tests/test_events.py
+--- h11-0.8.1.orig/h11/tests/test_events.py 2017-03-18 23:56:02.000000000 +0200
++++ h11-0.8.1/h11/tests/test_events.py 2019-11-01 10:17:40.211258036 +0200
+@@ -43,7 +43,7 @@ def test_event_bundle():
+ with pytest.raises(TypeError) as exc:
+ T(b=0)
+ # make sure we error on the right missing kwarg
+- assert 'kwarg a' in str(exc)
++ assert 'kwarg a' in str(exc.value)
+
+ # _validate is called
+ with pytest.raises(ValueError):
More information about the arch-commits
mailing list