summaryrefslogtreecommitdiff
path: root/dev-python/treq
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-01-31 18:57:01 +0000
committerV3n3RiX <venerix@redcorelinux.org>2021-01-31 18:57:01 +0000
commit69051588e2f955485fe5d45d45e616bc60a2de57 (patch)
treeef8699cca7ce3773b1de747b167ceeacdc60cb92 /dev-python/treq
parentd7ed2b01311f15ba54fe8ea872aab7d59ab2b193 (diff)
gentoo resync : 31.01.2021
Diffstat (limited to 'dev-python/treq')
-rw-r--r--dev-python/treq/Manifest4
-rw-r--r--dev-python/treq/treq-20.9.0.ebuild2
-rw-r--r--dev-python/treq/treq-21.1.0.ebuild63
3 files changed, 67 insertions, 2 deletions
diff --git a/dev-python/treq/Manifest b/dev-python/treq/Manifest
index 15eac49f1231..5921837cc80c 100644
--- a/dev-python/treq/Manifest
+++ b/dev-python/treq/Manifest
@@ -1,3 +1,5 @@
DIST treq-20.9.0.tar.gz 60142 BLAKE2B a495b73221ee86163a5fefd03c8019f4b671a1f32d2ab304b89566339a36aaec7245d33b738b646fa48c42f4db9744938637ece058e067ee3f747e53ce442ab8 SHA512 c595ad69d5a9c688ca966cc897db669a57d14027e0bdc345d550f791390099743749be4a41294e61428cdc7bc0fa197474be780323b00f17a712505e081e7073
-EBUILD treq-20.9.0.ebuild 1553 BLAKE2B 551fac7f2eea2daad82d29de7555cc46baeda002a00db1f521d2e6fd762d8263b7128074913ce2251da9b5a3f4e7d5f54ccb987c5a47a8224913638475b00711 SHA512 bcf0657d0b228b9502933c18932439f647404f074bf0bbcb057b8be21266fe4f253bf77897f90f569b634111eeec276af65f0c1a5712a56cd9b9442609481165
+DIST treq-21.1.0.tar.gz 71018 BLAKE2B 44223c0ad618f4a57283db60063ee2fd263f958ff18d90b055733fc3bb24c87483a7b833e2210197a4edd003cb3f86647bbb636a9692e5535908b19e0186dba8 SHA512 b68ded90021cb801b276d6310e729a985205bb0701b1d0576b00c6c4efd97400625efffa35763ceef8f0f8d94172cae6fc1abdd3de1c0a4871223d4f06758d89
+EBUILD treq-20.9.0.ebuild 1551 BLAKE2B ef384831ea1df1b4281ea4218544d67346e5c76c5ae61ac286a70c53678c556190e692e323da2cae79fb778b4ed0293e523cd98ce14f3db64bfc16eeda6aa5da SHA512 3e16644ffb5220c75eacb223988018ec73c1b3c8818fb7c40892672e534f376b7bc89f615a88af734d0357e4d206788636ec6d577c21a0710f1c4985b9b1e1fd
+EBUILD treq-21.1.0.ebuild 1562 BLAKE2B c6b4c9eb48d0013ad9acc4c72150aa2fc7921831768ac44aca42449746fa5ab08dcadb0d9de528784a85b18594da5d7b953727936f6ac29d659fc191e1a24bc5 SHA512 1c2f9161618c58183bc6b1a81cc6ad0e9738d8319927367ae8984ff08b74a3d921c07e6bdc91636f4238bd5ef3232163220d020b9351528a62ceafccdc3a7268
MISC metadata.xml 679 BLAKE2B 1218e13a10ef3e4b63b892d3ba444116d8ae3bdc625c9b95ef73f9c4d59dc7bad527e919568306e7744b79a9bb00dea90ee0b83146bc4314d224e2dc7657cb7d SHA512 b3d2aadc2c43d03d80d50fd67830e62ba7543dc7ea7e0f834b32a7738031a49a8ab57069b8d5c7a9b0f88405bae8d59333e50ecab87286f8be5504141081914e
diff --git a/dev-python/treq/treq-20.9.0.ebuild b/dev-python/treq/treq-20.9.0.ebuild
index 34acd45f6492..0899f2b509cb 100644
--- a/dev-python/treq/treq-20.9.0.ebuild
+++ b/dev-python/treq/treq-20.9.0.ebuild
@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-PYTHON_COMPAT=( python3_{6,7,8} )
+PYTHON_COMPAT=( python3_{7,8} )
DISTUTILS_USE_SETUPTOOLS="bdepend"
inherit distutils-r1
diff --git a/dev-python/treq/treq-21.1.0.ebuild b/dev-python/treq/treq-21.1.0.ebuild
new file mode 100644
index 000000000000..8ba0d791aae3
--- /dev/null
+++ b/dev-python/treq/treq-21.1.0.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python3_{7,8,9} )
+DISTUTILS_USE_SETUPTOOLS="bdepend"
+
+inherit distutils-r1
+
+DESCRIPTION="A requests-like API built on top of twisted.web's Agent"
+HOMEPAGE="https://github.com/twisted/treq https://pypi.org/project/treq/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+IUSE="doc test"
+RESTRICT="!test? ( test )"
+
+COMMON_DEPEND="
+ dev-python/incremental[${PYTHON_USEDEP}]
+ >=dev-python/hyperlink-21.0.0[${PYTHON_USEDEP}]
+"
+
+RDEPEND="${COMMON_DEPEND}
+ dev-python/six[${PYTHON_USEDEP}]
+ >=dev-python/twisted-18.7.0[crypt,${PYTHON_USEDEP}]
+ >=dev-python/requests-2.1.0[${PYTHON_USEDEP}]
+ dev-python/attrs[${PYTHON_USEDEP}]
+"
+
+DEPEND="${COMMON_DEPEND}
+ doc? ( dev-python/sphinx
+ ${RDEPEND} )
+ test? (
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/httpbin[${PYTHON_USEDEP}]
+ )"
+
+python_compile_all() {
+ use doc && emake -C "${S}/docs" html
+}
+
+python_install_all() {
+ use doc && HTML_DOCS=( docs/_build/html/ )
+
+ distutils-r1_python_install_all
+}
+
+test_instructions(){
+ ewarn "The 'test' USE flag and FEATURE only ensures that the correct"
+ ewarn "dependenciess are installed for this package."
+ ewarn "Please run eg:"
+ ewarn "$ python3.7 /usr/bin/trial treq"
+ ewarn "as a user for each of the python versions it is installed to"
+ ewarn "to correctly test this package."
+}
+
+python_test() {
+ # Tests fail when run via emerge
+ # they need proper network access
+ test_instructions
+}