[arch-commits] Commit in python-treq/repos/community-any (PKGBUILD PKGBUILD)

Felix Yan felixonmars at archlinux.org
Tue Aug 1 15:24:52 UTC 2017


    Date: Tuesday, August 1, 2017 @ 15:24:51
  Author: felixonmars
Revision: 247325

archrelease: copy trunk to community-any

Added:
  python-treq/repos/community-any/PKGBUILD
    (from rev 247324, python-treq/trunk/PKGBUILD)
Deleted:
  python-treq/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  121 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 61 insertions(+), 60 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2017-08-01 15:24:35 UTC (rev 247324)
+++ PKGBUILD	2017-08-01 15:24:51 UTC (rev 247325)
@@ -1,60 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-treq
-pkgname=('python-treq' 'python2-treq')
-pkgver=17.3.1
-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'
-makedepends=('python-setuptools' 'python2-setuptools' 'python-incremental' 'python2-incremental'
-             'python-requests' 'python2-requests' 'python2-pyopenssl' 'python-pyopenssl'
-             'python-service-identity' 'python2-service-identity' 'python-idna' 'python2-idna'
-             'python-attrs' 'python2-attrs' 'python-twisted' 'python2-twisted')
-checkdepends=('python-mock' 'python2-mock')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/twisted/treq/archive/release-$pkgver.tar.gz")
-sha512sums=('43f166bd499d1ee9993c63a89fefa193aa57e7a37303f267ae80b6fd0d19233426c4bb5e1ce58a72211ee24bd3d318dd0c44c4993a02191862986383e54eeac1')
-
-prepare() {
-  cp -a treq-release-$pkgver{,-py2}
-}
-
-build() {
-  cd "$srcdir"/treq-release-$pkgver
-  python setup.py build
-
-  cd "$srcdir"/treq-release-$pkgver-py2
-  python2 setup.py build
-}
-
-check() {
-  # https://github.com/twisted/treq/issues/198
-
-  cd "$srcdir"/treq-release-$pkgver
-  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" trial3 treq || warning "Tests failed"
-
-  cd "$srcdir"/treq-release-$pkgver-py2
-  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" trial treq || warning "Tests failed"
-}
-
-package_python-treq() {
-  depends=('python-incremental' 'python-requests' 'python-pyopenssl' 'python-service-identity'
-           'python-idna' 'python-attrs' 'python-twisted')
-
-  cd treq-release-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-package_python2-treq() {
-  depends=('python2-incremental' 'python2-requests' 'python2-pyopenssl' 'python2-service-identity'
-           'python2-idna' 'python2-attrs' 'python2-twisted')
-
-  cd treq-release-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-# vim:set ts=2 sw=2 et:

Copied: python-treq/repos/community-any/PKGBUILD (from rev 247324, python-treq/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2017-08-01 15:24:51 UTC (rev 247325)
@@ -0,0 +1,61 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-treq
+pkgname=('python-treq' 'python2-treq')
+pkgver=17.7.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'
+makedepends=('python-setuptools' 'python2-setuptools' 'python-incremental' 'python2-incremental'
+             'python-requests' 'python2-requests' 'python2-pyopenssl' 'python-pyopenssl'
+             'python-service-identity' 'python2-service-identity' 'python-idna' 'python2-idna'
+             'python-attrs' 'python2-attrs' 'python-twisted' 'python2-twisted' 'httpbin'
+             'python2-httpbin')
+checkdepends=('python-mock' 'python2-mock' 'python-pytest-runner' 'python2-pytest-runner')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/twisted/treq/archive/release-$pkgver.tar.gz")
+sha512sums=('6e38dbf7a005b2d1cd4947cee0f30711ce16cc7731c53de4e489a533a3d76edfdd37b13ce603400c2f66a52378f3a23818248c36c6f940dc5fa10614480627b2')
+
+prepare() {
+  sed -e '1iimport os' -e '/childFDs=/i env=os.environ,' -i treq-release-$pkgver/src/treq/test/local_httpbin/parent.py
+
+  cp -a treq-release-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/treq-release-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/treq-release-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/treq-release-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/treq-release-$pkgver-py2
+  python2 setup.py pytest
+}
+
+package_python-treq() {
+  depends=('python-incremental' 'python-requests' 'python-pyopenssl' 'python-service-identity'
+           'python-idna' 'python-attrs' 'python-twisted')
+
+  cd treq-release-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-treq() {
+  depends=('python2-incremental' 'python2-requests' 'python2-pyopenssl' 'python2-service-identity'
+           'python2-idna' 'python2-attrs' 'python2-twisted')
+
+  cd treq-release-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list