summaryrefslogtreecommitdiff
path: root/dev-python/requests-toolbelt
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-python/requests-toolbelt
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-python/requests-toolbelt')
-rw-r--r--dev-python/requests-toolbelt/Manifest10
-rw-r--r--dev-python/requests-toolbelt/files/requests-toolbelt-0.8.0-test-tracebacks.patch36
-rw-r--r--dev-python/requests-toolbelt/metadata.xml10
-rw-r--r--dev-python/requests-toolbelt/requests-toolbelt-0.5.1.ebuild21
-rw-r--r--dev-python/requests-toolbelt/requests-toolbelt-0.7.0.ebuild21
-rw-r--r--dev-python/requests-toolbelt/requests-toolbelt-0.7.1.ebuild31
-rw-r--r--dev-python/requests-toolbelt/requests-toolbelt-0.8.0.ebuild40
7 files changed, 169 insertions, 0 deletions
diff --git a/dev-python/requests-toolbelt/Manifest b/dev-python/requests-toolbelt/Manifest
new file mode 100644
index 000000000000..2bcb1c47927c
--- /dev/null
+++ b/dev-python/requests-toolbelt/Manifest
@@ -0,0 +1,10 @@
+AUX requests-toolbelt-0.8.0-test-tracebacks.patch 1428 BLAKE2B 6f9645f2a456cde3a080337c00697493958d9bfd424eef9b9998233336ccea06ecea345cd55ff1321939421bbbb5c7ea566de8ed3d5d8133d62083c80f2bc2a6 SHA512 22332dceb704750d1d6ca7d640251dacea764dbbda4e530977f6788e19c1d1a857471d8cd94d99465e146bc96be9c35b67a9608a31997725b6284e7c10117f8f
+DIST requests-toolbelt-0.5.1.tar.gz 187981 BLAKE2B 1e3cfafd8e0b8625dc92ff40bf88d9cf67d40a679eef8c6825de032d51107d2486aed34611818a3b97c286ea9e452ad3b196a8ba7a4b7f57a9377366991d33a3 SHA512 fff70b7262efae616fe9fe8e25af9856d42ccecdaca71cfde0dd81c5d7c509aec30f7c99f4b886d844c168937197ed8287e873fffe6073e93e48412b5a902997
+DIST requests-toolbelt-0.7.0.tar.gz 194062 BLAKE2B ea7120e58ea23dbe1d17bc2f8c346ec00bd00d62a4c8fdefa1490b9b3ed62a0dcf45ce60b071fcbc7e510d943ec4f10a7031525bd24f5fb02749125cbccc9f0b SHA512 77f11d12643d7cacf0c5dab5c5490359fc6f11c038d56d6ae27939394c5788622edb230d38d2202192eec6a7b1229feeb5669cd6a33c78f6891699d017e8205e
+DIST requests-toolbelt-0.7.1.tar.gz 194670 BLAKE2B 3f8b5950d3a87f519f40e2d21bce13ba2d3ed205b5d7f4fa0872339df391e5477f262b104697b264a75783d686eb44231ff2943bfe56f13695d63869227c48c5 SHA512 2559db13054c4d9b7c459603809a16d8d9a9c1a348369e1bc68e557bae10c41291286112e3b4a71e83b42203d40fa5cbc8441028693eeb986162d212a65f68ac
+DIST requests-toolbelt-0.8.0.tar.gz 196129 BLAKE2B 435059ff2879c44a274641c49adae9986c761fcabe567826454d3f055db7e3e5c95905f1d178dcb37e2173bf856a9fb168a856c1301026e8c5d0de6cafb4be51 SHA512 71a4ed8961b742cb1b5b0deec7f9052a2a177d2ed6e4f13ebe22b56b7f1b6b1bad2736f1640c8b41398b082eddc1c1205f0c446602d979d5bf370fb0e10ecc88
+EBUILD requests-toolbelt-0.5.1.ebuild 496 BLAKE2B c5bedc4e7b17cc2932e3801f98c29f8885a83e4071f08bffee3cf07af2dd78a876950949be5851f0abb9f619123a730c4e2ea265215b0189ed4698b696af0e5f SHA512 8d91f3a4637944a9b19e8abf93caaf4be208f7a52a1760351b95037485980ace11ca6be63bb1b5465fda5ea8e245e437426e46595d6d5ba1f5754fe9478df801
+EBUILD requests-toolbelt-0.7.0.ebuild 496 BLAKE2B 4be3275cb8b4140a1ebfdc1fbf74edd711154d58c180f80da133e61937267dab47af989de3955c74bfbb67f277137a39b125bdee422a8a36e9046ff8fcc0a02b SHA512 440173c9a947e5a8f591fcf7aa8c75d5ea2b78ef80db14c59e4da68fcd4d438d1be3247054a89ec17049e102457ba02b928616435ddeb5e775991da3c7cff721
+EBUILD requests-toolbelt-0.7.1.ebuild 766 BLAKE2B 3011c5a00c9c8bb2025b02bcfb626fea0e79841b2bf63760a876aaef8a757b6e64c60c2b661e88e00852e66f30d000bae6106c6e85959bb5ca68a5d99ed554cb SHA512 103507c91c951cbb1a3af1860c31634cd386d33903667b73978580854290dd47d421e313cae9105c4a4656b35eba803e73afec6628105654a5b92d973580c50d
+EBUILD requests-toolbelt-0.8.0.ebuild 1042 BLAKE2B 87d1bd489afeb105998023c668cd99dd4a6690799d8565e779026b017cb622e869fd719ddac7da733baaf873f903dadbd1a56280a5c700755613ba00a98f6728 SHA512 11876d884aed542d23013d62e10b369889c068fa8e3ea06911f712497e6be513dc3d867eb51461f392affdd9b89c8879206553ff12fc8438b567bcce043f697f
+MISC metadata.xml 297 BLAKE2B 0dbab9c3d9697a1ac5ab03c7111a1862d977546c23cf42967669a6e3a19eff6e81b2a0701cfc2e11904c220026a5bc7b19934cca17339ab7f9037891ab5b2c8f SHA512 46897583f3474724b466e1d1a6b5e0d4c4d557730ce38c809ac2224d2b1dec3e844c0b66b7b6d9f5e60f82cd51a791c1a3ddf545d9898d70038ea2af183a8691
diff --git a/dev-python/requests-toolbelt/files/requests-toolbelt-0.8.0-test-tracebacks.patch b/dev-python/requests-toolbelt/files/requests-toolbelt-0.8.0-test-tracebacks.patch
new file mode 100644
index 000000000000..418039bc7f94
--- /dev/null
+++ b/dev-python/requests-toolbelt/files/requests-toolbelt-0.8.0-test-tracebacks.patch
@@ -0,0 +1,36 @@
+From e130ad521d3b5a14cd9494213e6ca9f52d0d9a2e Mon Sep 17 00:00:00 2001
+From: Brian Dolbec <brian.dolbec@sony.com>
+Date: Wed, 7 Mar 2018 21:52:25 +0000
+Subject: [PATCH] threaded/thread.py: Fix unhandled Nonetype job queue
+
+Adding this check and return prevents numerous test tracebacks:
+
+Exception in thread 12f554d5-f61f-44d9-bc69-023714627952:
+Traceback (most recent call last):
+ File "/usr/lib64/python3.4/threading.py", line 911, in _bootstrap_inner
+ self.run()
+ File "/usr/lib64/python3.4/threading.py", line 859, in run
+ self._target(*self._args, **self._kwargs)
+ File "/home/bdolbec/git/toolbelt/requests_toolbelt/threaded/thread.py", line 43, in _make_request
+ kwargs = self._jobs.get_nowait()
+AttributeError: 'NoneType' object has no attribute 'get_nowait'
+
+Signed-off-by: Brian Dolbec <brian.dolbec@sony.com>
+Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
+---
+ requests_toolbelt/threaded/thread.py | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/requests_toolbelt/threaded/thread.py b/requests_toolbelt/threaded/thread.py
+index 542813c..f33b759 100644
+--- a/requests_toolbelt/threaded/thread.py
++++ b/requests_toolbelt/threaded/thread.py
+@@ -36,6 +36,8 @@ def _handle_request(self, kwargs):
+ self._jobs.task_done()
+
+ def _make_request(self):
++ if self._jobs is None:
++ return
+ while True:
+ try:
+ kwargs = self._jobs.get_nowait()
diff --git a/dev-python/requests-toolbelt/metadata.xml b/dev-python/requests-toolbelt/metadata.xml
new file mode 100644
index 000000000000..33dacd3a88b7
--- /dev/null
+++ b/dev-python/requests-toolbelt/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>amynka@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">requests-toolbelt</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/requests-toolbelt/requests-toolbelt-0.5.1.ebuild b/dev-python/requests-toolbelt/requests-toolbelt-0.5.1.ebuild
new file mode 100644
index 000000000000..f7193a7674e2
--- /dev/null
+++ b/dev-python/requests-toolbelt/requests-toolbelt-0.5.1.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+
+inherit distutils-r1
+
+DESCRIPTION="A utility belt for advanced users of python-requests"
+HOMEPAGE="https://toolbelt.readthedocs.org/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="<=dev-python/requests-3.0.0"
+
+DOCS=( AUTHORS.rst HISTORY.rst README.rst )
diff --git a/dev-python/requests-toolbelt/requests-toolbelt-0.7.0.ebuild b/dev-python/requests-toolbelt/requests-toolbelt-0.7.0.ebuild
new file mode 100644
index 000000000000..89f3470743e7
--- /dev/null
+++ b/dev-python/requests-toolbelt/requests-toolbelt-0.7.0.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+
+inherit distutils-r1
+
+DESCRIPTION="A utility belt for advanced users of python-requests"
+HOMEPAGE="https://toolbelt.readthedocs.org/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="<=dev-python/requests-3.0.0"
+
+DOCS=( AUTHORS.rst HISTORY.rst README.rst )
diff --git a/dev-python/requests-toolbelt/requests-toolbelt-0.7.1.ebuild b/dev-python/requests-toolbelt/requests-toolbelt-0.7.1.ebuild
new file mode 100644
index 000000000000..45243e68e4e0
--- /dev/null
+++ b/dev-python/requests-toolbelt/requests-toolbelt-0.7.1.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+inherit distutils-r1
+
+DESCRIPTION="A utility belt for advanced users of python-requests"
+HOMEPAGE="https://toolbelt.readthedocs.org/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND="<dev-python/requests-3.0.0[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ dev-python/betamax[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/pytest[${PYTHON_USEDEP}]
+ )"
+
+DOCS=( AUTHORS.rst HISTORY.rst README.rst )
+
+python_test() {
+ py.test -v || die "Tests failed with ${EPYTHON}"
+}
diff --git a/dev-python/requests-toolbelt/requests-toolbelt-0.8.0.ebuild b/dev-python/requests-toolbelt/requests-toolbelt-0.8.0.ebuild
new file mode 100644
index 000000000000..7bfbf3543a2a
--- /dev/null
+++ b/dev-python/requests-toolbelt/requests-toolbelt-0.8.0.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+inherit distutils-r1
+
+DESCRIPTION="A utility belt for advanced users of python-requests"
+HOMEPAGE="https://toolbelt.readthedocs.org/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~ppc64 x86"
+IUSE="test"
+
+RDEPEND="<dev-python/requests-3.0.0[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ dev-python/betamax[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/pytest[${PYTHON_USEDEP}]
+ )"
+
+DOCS=( AUTHORS.rst HISTORY.rst README.rst )
+PATCHES=(
+ "${FILESDIR}/requests-toolbelt-0.8.0-test-tracebacks.patch"
+)
+
+# Known python2.7 test failures do to upstream
+# not testing with newer requests versions
+# bug: https://bugs.gentoo.org/635824
+# https://github.com/requests/toolbelt/issues/213
+RESTRICT=test
+
+python_test() {
+ py.test -v || die "Tests failed with ${EPYTHON}"
+}