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

Felix Yan felixonmars at archlinux.org
Sat Jan 16 08:54:39 UTC 2021


    Date: Saturday, January 16, 2021 @ 08:54:39
  Author: felixonmars
Revision: 821076

archrelease: copy trunk to community-testing-any

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

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

Copied: python-treq/repos/community-testing-any/PKGBUILD (from rev 821074, python-treq/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2021-01-16 08:54:39 UTC (rev 821076)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-treq
+pkgver=21.1.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=('9bcca6e4acd316529608654a15e70459693a877920bce262bdce505c2b6ad9397a84b9c4b24a56e123f98975a8271eb9306babd5808d840bff19117d7e64ff3f')
+
+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
+}



More information about the arch-commits mailing list