[arch-commits] Commit in python-h11/repos/community-staging-any (4 files)
Evangelos Foutras
foutrelis at archlinux.org
Sun Nov 10 10:31:23 UTC 2019
Date: Sunday, November 10, 2019 @ 10:31:23
Author: foutrelis
Revision: 524977
archrelease: copy trunk to community-staging-any
Added:
python-h11/repos/community-staging-any/PKGBUILD
(from rev 524976, python-h11/trunk/PKGBUILD)
python-h11/repos/community-staging-any/pytest5.patch
(from rev 524976, python-h11/trunk/pytest5.patch)
Deleted:
python-h11/repos/community-staging-any/PKGBUILD
python-h11/repos/community-staging-any/pytest5.patch
---------------+
PKGBUILD | 93 ++++++++++++++++++++++----------------------------------
pytest5.patch | 24 +++++++-------
2 files changed, 50 insertions(+), 67 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-11-10 10:31:18 UTC (rev 524976)
+++ PKGBUILD 2019-11-10 10:31:23 UTC (rev 524977)
@@ -1,55 +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=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/PKGBUILD (from rev 524976, python-h11/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-11-10 10:31:23 UTC (rev 524977)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Simon Sapin <simon dot sapin at exyr dot org>
+# Contributor: Kyle Keen <keenerd at gmail.com>
+
+pkgname=python-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')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-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
+}
+
+build() {
+ cd "$srcdir"/h11-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd "$srcdir"/h11-$pkgver
+ python setup.py pytest
+}
+
+package_python-h11() {
+ cd h11-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}
Deleted: pytest5.patch
===================================================================
--- pytest5.patch 2019-11-10 10:31:18 UTC (rev 524976)
+++ pytest5.patch 2019-11-10 10:31:23 UTC (rev 524977)
@@ -1,12 +0,0 @@
-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):
Copied: python-h11/repos/community-staging-any/pytest5.patch (from rev 524976, python-h11/trunk/pytest5.patch)
===================================================================
--- pytest5.patch (rev 0)
+++ pytest5.patch 2019-11-10 10:31:23 UTC (rev 524977)
@@ -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