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 EA1AA158092 for ; Sat, 18 Sep 2021 19:44:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C24A8E092C; Sat, 18 Sep 2021 19:44:02 +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-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9801FE092D for ; Sat, 18 Sep 2021 19:44:02 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B0EA73433CB for ; Sat, 18 Sep 2021 19:44:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1ACB311F for ; Sat, 18 Sep 2021 19:43:58 +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: <1631994231.5c469f40fba70bc6b32a8d0dffcf97f2702534d0.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/httpx/, dev-python/httpx/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/httpx/Manifest dev-python/httpx/files/httpx-0.18.2-big-endian.patch dev-python/httpx/httpx-0.18.2.ebuild X-VCS-Directories: dev-python/httpx/files/ dev-python/httpx/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 5c469f40fba70bc6b32a8d0dffcf97f2702534d0 X-VCS-Branch: master Date: Sat, 18 Sep 2021 19:43:58 +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: 23459147-52d3-4bca-9a5f-86bdf8e5040f X-Archives-Hash: 082f4d0bb0966ecd7a9a0184ab4b9af6 commit: 5c469f40fba70bc6b32a8d0dffcf97f2702534d0 Author: Michał Górny gentoo org> AuthorDate: Sat Sep 18 18:12:29 2021 +0000 Commit: Michał Górny gentoo org> CommitDate: Sat Sep 18 19:43:51 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c469f40 dev-python/httpx: Remove old Signed-off-by: Michał Górny gentoo.org> dev-python/httpx/Manifest | 1 - .../httpx/files/httpx-0.18.2-big-endian.patch | 40 -------------- dev-python/httpx/httpx-0.18.2.ebuild | 63 ---------------------- 3 files changed, 104 deletions(-) diff --git a/dev-python/httpx/Manifest b/dev-python/httpx/Manifest index fb87c3c7508..eae53688531 100644 --- a/dev-python/httpx/Manifest +++ b/dev-python/httpx/Manifest @@ -1,2 +1 @@ -DIST httpx-0.18.2.tar.gz 1666756 BLAKE2B 3d1e25d503ae5306150c157bc83afdac9a475110d042e041b58de448a0dcfd75de3f4c15836b838dc799cd5f8b7e0d646e43bbe107ffad87d51ff016afe585cd SHA512 727974e5d5924fdd653987dd4f528d27bb2653085b01ef5efcdac39dc92ef2ed586f872c202349aa31105ad970cff914de4315c2d79338a6aa18bebb8126f392 DIST httpx-0.19.0.tar.gz 1667455 BLAKE2B b8d4cb0b6e7f643b62b507930ccf1534d73d93261cab9281ef57d6392f00da325e897d5339aebacfa07aeae8278d3a81b78d6501a1587ffeaef68cc5087bfdaa SHA512 3b327f07d62cf0430672d4f1a4f884618e588496f049522de327f5c34f7260eb21739b7f1fbd6f43a21962bc8737547f3eddbc22751546647f56c9cd7212840a diff --git a/dev-python/httpx/files/httpx-0.18.2-big-endian.patch b/dev-python/httpx/files/httpx-0.18.2-big-endian.patch deleted file mode 100644 index 794609d86a5..00000000000 --- a/dev-python/httpx/files/httpx-0.18.2-big-endian.patch +++ /dev/null @@ -1,40 +0,0 @@ -From 88a0a85ff795d8c23d5cd2cd113eeac957cc818a Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= -Date: Thu, 5 Aug 2021 17:35:54 +0200 -Subject: [PATCH] Fix JSON wrong encoding tests on big endian platforms - -Fix test_json_without_specified_encoding_*_error tests on big endian -platforms. The tests wrongly assume that data encoded as "utf-32-be" -can not be decoded as "utf-32". This is true on little endian platforms -but on big endian platforms "utf-32" is equivalent to "utf-32-be". -To avoid the problem, explicitly decode as "utf-32-le", as this should -trigger the expected exception independently of platform's endianness. ---- - tests/models/test_responses.py | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/tests/models/test_responses.py b/tests/models/test_responses.py -index f1815dc..b7c2d57 100644 ---- a/tests/models/test_responses.py -+++ b/tests/models/test_responses.py -@@ -735,7 +735,7 @@ def test_json_without_specified_encoding_decode_error(): - content = json.dumps(data).encode("utf-32-be") - headers = {"Content-Type": "application/json"} - # force incorrect guess from `guess_json_utf` to trigger error -- with mock.patch("httpx._models.guess_json_utf", return_value="utf-32"): -+ with mock.patch("httpx._models.guess_json_utf", return_value="utf-32-le"): - response = httpx.Response( - 200, - content=content, -@@ -750,7 +750,7 @@ def test_json_without_specified_encoding_value_error(): - content = json.dumps(data).encode("utf-32-be") - headers = {"Content-Type": "application/json"} - # force incorrect guess from `guess_json_utf` to trigger error -- with mock.patch("httpx._models.guess_json_utf", return_value="utf-32"): -+ with mock.patch("httpx._models.guess_json_utf", return_value="utf-32-le"): - response = httpx.Response(200, content=content, headers=headers) - with pytest.raises(json.decoder.JSONDecodeError): - response.json() --- -2.32.0 - diff --git a/dev-python/httpx/httpx-0.18.2.ebuild b/dev-python/httpx/httpx-0.18.2.ebuild deleted file mode 100644 index a91225037d5..00000000000 --- a/dev-python/httpx/httpx-0.18.2.ebuild +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -# Docs builder mkdocs not keyworded on all these arches yet -# DOCS_BUILDER="mkdocs" -# DOCS_DEPEND="dev-python/mkdocs-material" -# DOCS_AUTODOC=1 -PYTHON_COMPAT=( python3_{8..10} ) - -inherit distutils-r1 # docs - -DESCRIPTION="Fully-featured HTTP client which provides sync and async APIs" -HOMEPAGE="https://www.python-httpx.org/" -SRC_URI="https://github.com/encode/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="amd64 arm arm64 ppc ppc64 sparc x86" - -RDEPEND=" - dev-python/certifi[${PYTHON_USEDEP}] - dev-python/sniffio[${PYTHON_USEDEP}] - =dev-python/httpcore-0.13*[${PYTHON_USEDEP}] - >=dev-python/rfc3986-1.3[${PYTHON_USEDEP}] -