From ecdac123787b96ce6649f0f91da12ea6458cc2b1 Mon Sep 17 00:00:00 2001 From: Palica Date: Tue, 23 Jun 2020 22:35:08 +0200 Subject: Updating liguros repo --- dev-python/pytest-httpbin/Manifest | 1 + .../files/pytest-httpbin-1.0.0-pypy3-hang.patch | 31 +++++++++++++++++++++ dev-python/pytest-httpbin/metadata.xml | 17 ++++++++++++ .../pytest-httpbin/pytest-httpbin-1.0.0.ebuild | 32 ++++++++++++++++++++++ 4 files changed, 81 insertions(+) create mode 100644 dev-python/pytest-httpbin/Manifest create mode 100644 dev-python/pytest-httpbin/files/pytest-httpbin-1.0.0-pypy3-hang.patch create mode 100644 dev-python/pytest-httpbin/metadata.xml create mode 100644 dev-python/pytest-httpbin/pytest-httpbin-1.0.0.ebuild (limited to 'dev-python/pytest-httpbin') diff --git a/dev-python/pytest-httpbin/Manifest b/dev-python/pytest-httpbin/Manifest new file mode 100644 index 000000000000..43084e956131 --- /dev/null +++ b/dev-python/pytest-httpbin/Manifest @@ -0,0 +1 @@ +DIST pytest-httpbin-1.0.0.gh.tar.gz 17813 BLAKE2B b7e0ad9f131e4d236161b66b1d6d8e6087285a6d52df1accb044b30bcdac6c5f3350e9dbfe1cf33ab64b6d6aac6b463de81c31fd12dd950426b6ed8ef4eaf289 SHA512 2794134cc005cb969752e0c1119459d3f1e106f679942880a6b9ff507f2ee31c8ac4146a9c01b9a920368ea516443954b1b7044f7b1c270fe251f7d36adf7661 diff --git a/dev-python/pytest-httpbin/files/pytest-httpbin-1.0.0-pypy3-hang.patch b/dev-python/pytest-httpbin/files/pytest-httpbin-1.0.0-pypy3-hang.patch new file mode 100644 index 000000000000..02f63bffa72d --- /dev/null +++ b/dev-python/pytest-httpbin/files/pytest-httpbin-1.0.0-pypy3-hang.patch @@ -0,0 +1,31 @@ +diff -dupr a/pytest_httpbin/serve.py b/pytest_httpbin/serve.py +--- a/pytest_httpbin/serve.py 2019-02-11 20:54:14.000000000 +0100 ++++ b/pytest_httpbin/serve.py 2019-11-22 15:50:17.407769297 +0100 +@@ -116,6 +116,7 @@ class Server(object): + + def stop(self): + self._server.shutdown() ++ self._server.socket.close() + + @property + def url(self): +Only in b: pytest_httpbin.egg-info +Only in b/tests: __pycache__ +diff -dupr a/tests/test_httpbin.py b/tests/test_httpbin.py +--- a/tests/test_httpbin.py 2019-02-11 20:54:14.000000000 +0100 ++++ b/tests/test_httpbin.py 2019-11-22 15:59:53.955324547 +0100 +@@ -1,3 +1,4 @@ ++import sys + import unittest + import requests + import pytest_httpbin +@@ -40,6 +41,8 @@ def test_httpbin_join(httpbin): + def test_httpbin_str(httpbin): + assert httpbin + '/foo' == httpbin.url + '/foo' + ++@unittest.skipIf(hasattr(sys, 'pypy_version_info') ++ and sys.hexversion >= 0x03000000, 'hangs on PyPy3') + def test_chunked_encoding(httpbin_both): + assert requests.get(httpbin_both.url + '/stream/20').status_code == 200 + +Only in b: .tox diff --git a/dev-python/pytest-httpbin/metadata.xml b/dev-python/pytest-httpbin/metadata.xml new file mode 100644 index 000000000000..de36cdc2b6cd --- /dev/null +++ b/dev-python/pytest-httpbin/metadata.xml @@ -0,0 +1,17 @@ + + + + + python@gentoo.org + Python + + + pytest-httpbin + + me@kevinmccarthy.org + Kevin McCarthy + + kevin1024/pytest-httpbin + + gentoo-staging + diff --git a/dev-python/pytest-httpbin/pytest-httpbin-1.0.0.ebuild b/dev-python/pytest-httpbin/pytest-httpbin-1.0.0.ebuild new file mode 100644 index 000000000000..b5c375726734 --- /dev/null +++ b/dev-python/pytest-httpbin/pytest-httpbin-1.0.0.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_{6,7,8,9} pypy3 ) +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit distutils-r1 + +DESCRIPTION="Easily test your HTTP library against a local copy of httpbin" +HOMEPAGE="https://github.com/kevin1024/pytest-httpbin + https://pypi.org/project/pytest-httpbin/" +SRC_URI="https://github.com/kevin1024/pytest-httpbin/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + dev-python/httpbin[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( dev-python/requests[${PYTHON_USEDEP}] ) +" + +PATCHES=( + "${FILESDIR}"/pytest-httpbin-1.0.0-pypy3-hang.patch +) + +distutils_enable_tests pytest -- cgit v1.3.1