From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 27D61138334 for ; Fri, 22 Nov 2019 16:21:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 08E3CE0831; Fri, 22 Nov 2019 16:21:13 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DA322E0831 for ; Fri, 22 Nov 2019 16:21:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 256F434D21C for ; Fri, 22 Nov 2019 16:21:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F36518BB for ; Fri, 22 Nov 2019 16:21:08 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1574439664.2265797ee76d7c0bf2a07259dfa41b77c86bcd65.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-httpbin/files/, dev-python/pytest-httpbin/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pytest-httpbin/Manifest dev-python/pytest-httpbin/files/pytest-httpbin-1.0.0-pypy3-hang.patch dev-python/pytest-httpbin/pytest-httpbin-1.0.0.ebuild X-VCS-Directories: dev-python/pytest-httpbin/files/ dev-python/pytest-httpbin/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 2265797ee76d7c0bf2a07259dfa41b77c86bcd65 X-VCS-Branch: master Date: Fri, 22 Nov 2019 16:21:08 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 36fdefb2-435b-4cc7-95ac-4d5e7f8399f2 X-Archives-Hash: d0446110b54720de2fe9f372acb899e2 commit: 2265797ee76d7c0bf2a07259dfa41b77c86bcd65 Author: Michał Górny gentoo org> AuthorDate: Fri Nov 22 14:29:35 2019 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Nov 22 16:21:04 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2265797e dev-python/pytest-httpbin: Bump to 1.0.0, fix tests Signed-off-by: Michał Górny gentoo.org> dev-python/pytest-httpbin/Manifest | 1 + .../files/pytest-httpbin-1.0.0-pypy3-hang.patch | 31 ++++++++++++++++++++++ .../pytest-httpbin/pytest-httpbin-1.0.0.ebuild | 30 +++++++++++++++++++++ 3 files changed, 62 insertions(+) diff --git a/dev-python/pytest-httpbin/Manifest b/dev-python/pytest-httpbin/Manifest index c25da0561c3..1425c261b39 100644 --- a/dev-python/pytest-httpbin/Manifest +++ b/dev-python/pytest-httpbin/Manifest @@ -1 +1,2 @@ DIST pytest-httpbin-0.2.3.tar.gz 9498 BLAKE2B ad41f72c80430eeea8c7f48185daf63c6adddfad36798179df27677aacc8af85419a678ba6f3df5281ca7f7ba0b3ee721cd97e5fe86eb5117417be53332f98e8 SHA512 f3c4eb67d1b02c27d8edb42622793fa3604e3f0bd5086e4986b8f0402a9fb8d7969a466be92fc6a7e301e829dbeb300183b40dccc9ec5da1d158cb4d08274f8b +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 00000000000..02f63bffa72 --- /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/pytest-httpbin-1.0.0.ebuild b/dev-python/pytest-httpbin/pytest-httpbin-1.0.0.ebuild new file mode 100644 index 00000000000..e13e8f79c0b --- /dev/null +++ b/dev-python/pytest-httpbin/pytest-httpbin-1.0.0.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_{5,6,7} pypy{,3} ) + +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="~amd64 ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + dev-python/httpbin[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}]" + +PATCHES=( + "${FILESDIR}"/pytest-httpbin-1.0.0-pypy3-hang.patch +) + +distutils_enable_tests pytest