[arch-commits] Commit in python-treq/repos/community-any (3 files)
Felix Yan
felixonmars at archlinux.org
Mon Mar 16 12:26:54 UTC 2020
Date: Monday, March 16, 2020 @ 12:26:53
Author: felixonmars
Revision: 599693
archrelease: copy trunk to community-any
Added:
python-treq/repos/community-any/PKGBUILD
(from rev 599692, python-treq/trunk/PKGBUILD)
Deleted:
python-treq/repos/community-any/PKGBUILD
python-treq/repos/community-any/py3.7.diff
------------+
PKGBUILD | 68 ++++++++++++++++++++++++++---------------------------------
py3.7.diff | 17 --------------
2 files changed, 31 insertions(+), 54 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-03-16 12:26:39 UTC (rev 599692)
+++ PKGBUILD 2020-03-16 12:26:53 UTC (rev 599693)
@@ -1,37 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-treq
-pkgver=18.6.0
-pkgrel=4
-pkgdesc="A requests-like API built on top of twisted.web's Agent"
-arch=('any')
-license=('MIT')
-url='https://github.com/twisted/treq'
-depends=('python-incremental' 'python-requests' 'python-pyopenssl' 'python-service-identity'
- 'python-idna' 'python-attrs' 'python-twisted')
-makedepends=('python-setuptools' 'httpbin')
-checkdepends=('python-mock' 'python-pytest-runner')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/twisted/treq/archive/release-$pkgver.tar.gz"
- py3.7.diff)
-sha512sums=('1d0d793725647c6b451853f166436040e49095fca43f6c74053f3ba18ec8f8ae0095ed78c7d141cc95dfba9674339ac44262943225bec7be0f0cb05253758688'
- '6806e8186c8742ac3c40e71d4e14b25b96d198995f03a8730755b3594b4a9e854fd799ceec4d6799571e14e02bca2d3797658b2f2eba38b76a8660156e44c84e')
-
-prepare() {
- patch -d treq-release-$pkgver -p1 < py3.7.diff
-}
-
-build() {
- cd treq-release-$pkgver
- python setup.py build
-}
-
-check() {
- cd treq-release-$pkgver
- python setup.py pytest
-}
-
-package() {
- cd treq-release-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1
- install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
Copied: python-treq/repos/community-any/PKGBUILD (from rev 599692, python-treq/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-03-16 12:26:53 UTC (rev 599693)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-treq
+pkgver=20.3.0
+pkgrel=1
+pkgdesc="A requests-like API built on top of twisted.web's Agent"
+arch=('any')
+license=('MIT')
+url='https://github.com/twisted/treq'
+depends=('python-incremental' 'python-requests' 'python-pyopenssl' 'python-service-identity'
+ 'python-idna' 'python-attrs' 'python-twisted')
+makedepends=('python-setuptools' 'httpbin')
+checkdepends=('python-mock')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/twisted/treq/archive/release-$pkgver.tar.gz")
+sha512sums=('8daacffd94f0547c9b11e49cea9fe6f11f27493b9434333679aad0db4f7cb869890fdacc6aefad9c4590e38f522b31a45039dc37a784dd755e5cce807583d9e8')
+
+build() {
+ cd treq-release-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd treq-release-$pkgver
+ PYTHONPATH="$PWD/build/lib" trial3 treq
+}
+
+package() {
+ cd treq-release-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
Deleted: py3.7.diff
===================================================================
--- py3.7.diff 2020-03-16 12:26:39 UTC (rev 599692)
+++ py3.7.diff 2020-03-16 12:26:53 UTC (rev 599693)
@@ -1,17 +0,0 @@
-diff -u -r treq-release-18.6.0/src/treq/test/test_multipart.py treq-release-18.6.0-py3.7/src/treq/test/test_multipart.py
---- treq-release-18.6.0/src/treq/test/test_multipart.py 2018-06-29 07:26:36.000000000 +0200
-+++ treq-release-18.6.0-py3.7/src/treq/test/test_multipart.py 2018-07-29 18:37:15.842395815 +0200
-@@ -594,8 +594,11 @@
- )
- )
-
-- form = cgi.parse_multipart(BytesIO(output), {"boundary": b"heyDavid"})
-- self.assertEqual(set([b'just a string\r\n', b'another string']),
-+ form = cgi.parse_multipart(BytesIO(output), {
-+ "boundary": b"heyDavid",
-+ "CONTENT-LENGTH": str(len(output)),
-+ })
-+ self.assertEqual(set(['just a string\r\n', 'another string']),
- set(form['cfield']))
-
- self.assertEqual(set([b'my lovely bytes2']), set(form['efield']))
More information about the arch-commits
mailing list