[arch-commits] Commit in python-requests-toolbelt/repos/community-staging-any (2 files)
Felix Yan
felixonmars at archlinux.org
Thu Nov 12 06:42:08 UTC 2020
Date: Thursday, November 12, 2020 @ 06:42:07
Author: felixonmars
Revision: 751318
archrelease: copy trunk to community-staging-any
Added:
python-requests-toolbelt/repos/community-staging-any/PKGBUILD
(from rev 751317, python-requests-toolbelt/trunk/PKGBUILD)
Deleted:
python-requests-toolbelt/repos/community-staging-any/PKGBUILD
----------+
PKGBUILD | 80 ++++++++++++++++++++++---------------------------------------
1 file changed, 30 insertions(+), 50 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-11-12 06:41:56 UTC (rev 751317)
+++ PKGBUILD 2020-11-12 06:42:07 UTC (rev 751318)
@@ -1,50 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: eolianoe <eolianoe At GoogleMAIL DoT com>
-
-pkgbase=python-requests-toolbelt
-pkgname=('python-requests-toolbelt' 'python2-requests-toolbelt')
-pkgver=0.9.1
-pkgrel=4
-pkgdesc="A toolbelt of useful classes and functions to be used with python-requests."
-arch=('any')
-url="https://github.com/requests/toolbelt"
-license=('Apache')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-requests' 'python2-requests')
-checkdepends=('python-pytest' 'python2-pytest' 'python-betamax' 'python2-betamax'
- 'python-mock' 'python2-mock' 'python-pyopenssl' 'python2-pyopenssl')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/requests/toolbelt/archive/$pkgver.tar.gz")
-sha512sums=('12667056c225ce0bc88a5959660103feed23810890abd3890ef15581aa64c09c0552c3974473e1742cbe6200bd37d6475ad34ec051e83d4fbf0a33f320dbc0cc')
-
-prepare() {
- cp -a toolbelt-$pkgver{,-py2}
-}
-
-build() {
- cd "$srcdir"/toolbelt-$pkgver
- python setup.py build
-
- cd "$srcdir"/toolbelt-$pkgver-py2
- python2 setup.py build
-}
-
-check() {
- cd "$srcdir"/toolbelt-$pkgver
- py.test
-
- cd "$srcdir"/toolbelt-$pkgver-py2
- py.test2
-}
-
-package_python-requests-toolbelt() {
- depends=('python-requests')
-
- cd toolbelt-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1
-}
-
-package_python2-requests-toolbelt() {
- depends=('python2-requests')
-
- cd toolbelt-$pkgver-py2
- python2 setup.py install --root="$pkgdir" --optimize=1
-}
Copied: python-requests-toolbelt/repos/community-staging-any/PKGBUILD (from rev 751317, python-requests-toolbelt/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-11-12 06:42:07 UTC (rev 751318)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: eolianoe <eolianoe At GoogleMAIL DoT com>
+
+pkgname=python-requests-toolbelt
+pkgver=0.9.1
+pkgrel=5
+pkgdesc="A toolbelt of useful classes and functions to be used with python-requests."
+arch=('any')
+url="https://github.com/requests/toolbelt"
+license=('Apache')
+depends=('python-requests')
+makedepends=('python-setuptools' 'python-requests')
+checkdepends=('python-pytest' 'python-betamax' 'python-mock' 'python-pyopenssl')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/requests/toolbelt/archive/$pkgver.tar.gz")
+sha512sums=('12667056c225ce0bc88a5959660103feed23810890abd3890ef15581aa64c09c0552c3974473e1742cbe6200bd37d6475ad34ec051e83d4fbf0a33f320dbc0cc')
+
+build() {
+ cd "$srcdir"/toolbelt-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd "$srcdir"/toolbelt-$pkgver
+ py.test -k 'not test_no_content_length_header and not test_read_file and not test_reads_file_from_url_wrapper'
+}
+
+package() {
+ cd toolbelt-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
More information about the arch-commits
mailing list