[arch-commits] Commit in python-treq/repos (2 files)

Felix Yan felixonmars at archlinux.org
Wed May 26 17:32:07 UTC 2021


    Date: Wednesday, May 26, 2021 @ 17:32:07
  Author: felixonmars
Revision: 946833

archrelease: copy trunk to community-testing-any

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

----------+
 PKGBUILD |   31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

Copied: python-treq/repos/community-testing-any/PKGBUILD (from rev 946832, python-treq/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2021-05-26 17:32:07 UTC (rev 946833)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-treq
+pkgver=21.5.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' 'python-hyperlink')
+makedepends=('python-setuptools' 'httpbin')
+checkdepends=('python-mock')
+source=("https://github.com/twisted/treq/archive/release-$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('a1bd7b1eac38b5c713406d6731d0873abd400c1e3dcb637f05a669a9909576df48f1e0d5410af3efde591b7047f3e901297dd592561c6d08870debe263822413')
+
+build() {
+  cd treq-release-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd treq-release-$pkgver
+  PYTHONPATH="$PWD/build/lib" trial treq
+}
+
+package() {
+  cd treq-release-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list