diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-03-13 09:48:28 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-03-13 10:55:52 +0100 |
commit | bf18ca1e51abe9f2402de3cf771bf116c23ff020 (patch) | |
tree | 6dfc8a990681f15d852c4a215b86a5f7d859801e /dev-python/requests-oauthlib | |
parent | dev-python/oauthlib: Bump to 3.1.0, py3.8 (diff) | |
download | gentoo-bf18ca1e51abe9f2402de3cf771bf116c23ff020.tar.gz gentoo-bf18ca1e51abe9f2402de3cf771bf116c23ff020.tar.bz2 gentoo-bf18ca1e51abe9f2402de3cf771bf116c23ff020.zip |
dev-python/requests-oauthlib: Tests, py3.8
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/requests-oauthlib')
-rw-r--r-- | dev-python/requests-oauthlib/requests-oauthlib-1.3.0.ebuild | 37 |
1 files changed, 18 insertions, 19 deletions
diff --git a/dev-python/requests-oauthlib/requests-oauthlib-1.3.0.ebuild b/dev-python/requests-oauthlib/requests-oauthlib-1.3.0.ebuild index 754769b8f0a1..0fc21af6fbec 100644 --- a/dev-python/requests-oauthlib/requests-oauthlib-1.3.0.ebuild +++ b/dev-python/requests-oauthlib/requests-oauthlib-1.3.0.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{6,7} ) +PYTHON_COMPAT=( python3_{6,7,8} ) inherit distutils-r1 @@ -14,24 +14,23 @@ SRC_URI="https://github.com/requests/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" SLOT="0" LICENSE="ISC" KEYWORDS="~amd64 ~x86" -IUSE="test" -# tests fail with network-sandbox -RESTRICT="!test? ( test ) - test" - -DEPEND="test? ( - dev-python/mock[${PYTHON_USEDEP}] - dev-python/requests-mock[${PYTHON_USEDEP}] - )" + RDEPEND=" >=dev-python/requests-2.0.0[${PYTHON_USEDEP}] - >=dev-python/oauthlib-0.6.2[${PYTHON_USEDEP}]" - -#Refrain from a doc build for now -#python_compile_all() { -# use doc && emake -C docs html -#} - -python_test() { - esetup.py test + >=dev-python/oauthlib-3.0.0[${PYTHON_USEDEP}]" +BDEPEND=" + test? ( + dev-python/requests-mock[${PYTHON_USEDEP}] + )" + +distutils_enable_tests unittest + +src_prepare() { + # require Internet access + sed -e 's:testCanPostBinaryData:_&:' \ + -e 's:test_content_type_override:_&:' \ + -e 's:test_url_is_native_str:_&:' \ + -i tests/test_core.py || die + + distutils-r1_src_prepare } |