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

Felix Yan felixonmars at archlinux.org
Sun Jul 8 13:52:38 UTC 2018


    Date: Sunday, July 8, 2018 @ 13:52:38
  Author: felixonmars
Revision: 354918

archrelease: copy trunk to community-staging-any

Added:
  python-responses/repos/community-staging-any/
  python-responses/repos/community-staging-any/PKGBUILD
    (from rev 354917, python-responses/trunk/PKGBUILD)

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

Copied: python-responses/repos/community-staging-any/PKGBUILD (from rev 354917, python-responses/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-07-08 13:52:38 UTC (rev 354918)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-responses
+pkgname=('python-responses' 'python2-responses')
+pkgver=0.9.0
+pkgrel=2
+pkgdesc='A utility library for mocking out the `requests` Python library.'
+arch=('any')
+license=('Apache')
+url='https://github.com/getsentry/responses'
+makedepends=('python-setuptools' 'python2-setuptools' 'python-requests' 'python2-requests'
+             'python-cookies' 'python2-cookies' 'python-six' 'python2-six' 'python2-mock')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-pytest-cov'
+              'python2-pytest-cov' 'flake8' 'python2-flake8' 'python-pytest-localserver'
+              'python2-pytest-localserver')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/getsentry/responses/archive/$pkgver.tar.gz")
+sha512sums=('94e55dba36b15c508b65d96539c9b5d7ae58b9a488d86442389e7d5cb5ecc1153370b0573907bc56e90aac03d64323ea7ea183ca3b095fced6a5d75b2b6db5a3')
+
+prepare() {
+  cp -a responses-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/responses-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/responses-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/responses-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/responses-$pkgver-py2
+  python2 setup.py pytest
+}
+
+package_python-responses() {
+  depends=('python-requests' 'python-cookies' 'python-six')
+
+  cd responses-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-responses() {
+  depends=('python2-requests' 'python2-cookies' 'python2-six' 'python2-mock')
+
+  cd responses-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list