From unknown Mon Jun 23 02:22:26 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#53179 <53179@debbugs.gnu.org> To: bug#53179 <53179@debbugs.gnu.org> Subject: Status: [PATCH 0/3] Update httpx and add pytest-httpx. Reply-To: bug#53179 <53179@debbugs.gnu.org> Date: Mon, 23 Jun 2025 09:22:26 +0000 retitle 53179 [PATCH 0/3] Update httpx and add pytest-httpx. reassign 53179 guix-patches submitter 53179 Vinicius Monego severity 53179 normal tag 53179 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 11 00:21:12 2022 Received: (at submit) by debbugs.gnu.org; 11 Jan 2022 05:21:12 +0000 Received: from localhost ([127.0.0.1]:53876 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n79aq-0004jX-1I for submit@debbugs.gnu.org; Tue, 11 Jan 2022 00:21:12 -0500 Received: from lists.gnu.org ([209.51.188.17]:35802) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n79an-0004jN-SX for submit@debbugs.gnu.org; Tue, 11 Jan 2022 00:21:10 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35416) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n79an-0007tq-NZ for guix-patches@gnu.org; Tue, 11 Jan 2022 00:21:09 -0500 Received: from mout01.posteo.de ([185.67.36.65]:34303) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n79al-00013b-9D for guix-patches@gnu.org; Tue, 11 Jan 2022 00:21:09 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id B9050240026 for ; Tue, 11 Jan 2022 06:21:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1641878465; bh=uZg4fn9zp6d83TY0PSyATSvbc7iTeEworxytQo2WQ/A=; h=From:To:Cc:Subject:Date:From; b=UuihKq9REjPon7SBBo6HR56Z0sJ0qvM5BcL6XN8Dnzbh/UOq5cdaU1Tu4FNpZiu1X b8F5u5/wYRYrXWwGyvgyZ8oOt6NmW7HbHOS+d+xPfNCXu4YbEGEuKnxBU683YbBNqX iZ4+FqxwPSl17daYK0vyCbqN9xN89K4SMR58yvIvjThHcHA9xurRpiMRdbT5XwcsAf bF7ufGcP92uVV1wkkdv4UU2Q7XBCTE4fOTK0DJRc37VxY7lWIngdUxh3VP01Ts5zmh juzJ4PK2eSza59ld6/AXL7OLeODzWNe3RNv24xrxF613pkZ0Ed6x3jfaw5YfYQgsPv GKIyyuOQnZp0A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4JXzYr5495z6tm4; Tue, 11 Jan 2022 06:21:04 +0100 (CET) From: Vinicius Monego To: guix-patches@gnu.org Subject: [PATCH 0/3] Update httpx and add pytest-httpx. Date: Tue, 11 Jan 2022 05:20:48 +0000 Message-Id: <20220111052048.33674-1-monego@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.67.36.65; envelope-from=monego@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: Vinicius Monego X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) I am updating httpcore, httpx and pytest-httpx to older versions to keep compatibility with Orange (must be httpx < 0.20 for the latest version). See https://issues.guix.gnu.org/52696 for the Orange update on which this one depends. Vinicius Monego (3): gnu: python-httpcore: Update to 0.13.7. gnu: python-httpx: Update to 0.19.0. gnu: Add python-pytest-httpx. gnu/packages/python-check.scm | 34 ++++++++++++++++++++++++++++- gnu/packages/python-web.scm | 41 +++++++++++++++-------------------- 2 files changed, 50 insertions(+), 25 deletions(-) base-commit: 9d613c36de1ea52e745d30bad841b6cdeaca65f4 -- 2.30.2 From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 11 00:24:50 2022 Received: (at 53179) by debbugs.gnu.org; 11 Jan 2022 05:24:51 +0000 Received: from localhost ([127.0.0.1]:53884 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n79eM-0004pY-LV for submit@debbugs.gnu.org; Tue, 11 Jan 2022 00:24:50 -0500 Received: from mout01.posteo.de ([185.67.36.65]:60241) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n79eK-0004pE-DN for 53179@debbugs.gnu.org; Tue, 11 Jan 2022 00:24:48 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id A7B3424002A for <53179@debbugs.gnu.org>; Tue, 11 Jan 2022 06:24:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1641878682; bh=8Q0n5qMQwAw7wjFNVIXyemti4qjvb5yLw4BUSBZHL9c=; h=From:To:Cc:Subject:Date:From; b=fKBrVXYCANNIkfVyrV6vqmRBldAru3+bteYUFIBW+RZcPIFqWs/B8t4gBYKOSyCJ1 zXY9o1cJofbS8ZSakp9Uk3lMJiUHDrJ1sOseA4OP/mmbydqSb+kXU5+dlFZRNy9jhk LcwYdjKVMlXvDlu/2d9BKW+uhe5ONcir9D1fnH+uh4tfuQGwReFcK2aPB0Oz0KrzcM mtVTuDPqtDQkreeeRZt/20CRCSnk4Xkt4jYRh+rgcQVI35o6AyKcBCV6ZxH7avTxAB R7E9H8Fc8UmVArdMCxzK6jXRfVHcKSyOAy6gveG4fnqp1qjpFbj4jrpIj/qUb5sH0+ mQlvoJIvxYCMA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4JXzf15CyMz9rxR; Tue, 11 Jan 2022 06:24:41 +0100 (CET) From: Vinicius Monego To: 53179@debbugs.gnu.org Subject: [PATCH 2/3] gnu: python-httpx: Update to 0.19.0. Date: Tue, 11 Jan 2022 05:24:28 +0000 Message-Id: <20220111052429.34592-2-monego@posteo.net> In-Reply-To: <20220111052429.34592-1-monego@posteo.net> References: <20220111052429.34592-1-monego@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 53179 Cc: Vinicius Monego X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/python-web.scm (python-httpx): Update to 0.19.0. [arguments]: Adjust skipped tests in the custom 'check phase. [propagated-inputs]: Add python-async-generator, python-charset-normalizer. Remove python-chardet. --- gnu/packages/python-web.scm | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index ccce679933..c41860f4c9 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -5089,17 +5089,16 @@ Some things HTTP Core does do: (define-public python-httpx (package (name "python-httpx") - (version "0.16.1") + (version "0.19.0") (source (origin - ;; PyPI tarball does not contain tests. - (method git-fetch) + (method git-fetch) ; no tests in PyPI (uri (git-reference (url "https://github.com/encode/httpx") (commit version))) (file-name (git-file-name name version)) (sha256 - (base32 "00gmq45fckcqkj910bvd7pyqz1mvgsdvz4s0k7dzbnc5czzq1f4a")))) + (base32 "1w2wk6f07s6liyhsrq0qjj9vm2khp40kv85x91k70f1a8rwp2k3d")))) (build-system python-build-system) (arguments `(#:phases @@ -5107,16 +5106,10 @@ Some things HTTP Core does do: (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? - (invoke "pytest" "-vv" "-k" - ;; These tests try to open an outgoing connection. + (invoke "python" "-m" "pytest" "-k" (string-append - "not test_connect_timeout" - " and not test_that_send_cause_async_client_to_be_not_" - "closed" - " and not test_that_async_client_caused_warning_when_" - "being_deleted" - " and not test_that_send_cause_client_to_be_not_closed" - " and not test_async_proxy_close" + ;; These tests open outgoing connections. + "not test_async_proxy_close" " and not test_sync_proxy_close")))))))) (native-inputs (list python-autoflake @@ -5136,9 +5129,10 @@ Some things HTTP Core does do: python-trustme python-uvicorn)) (propagated-inputs - (list python-brotli + (list python-async-generator + python-brotli python-certifi - python-chardet + python-charset-normalizer python-httpcore python-idna python-rfc3986 -- 2.30.2 From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 11 00:24:56 2022 Received: (at 53179) by debbugs.gnu.org; 11 Jan 2022 05:24:56 +0000 Received: from localhost ([127.0.0.1]:53886 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n79eM-0004pa-UO for submit@debbugs.gnu.org; Tue, 11 Jan 2022 00:24:56 -0500 Received: from mout02.posteo.de ([185.67.36.66]:44701) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n79eI-0004pB-BL for 53179@debbugs.gnu.org; Tue, 11 Jan 2022 00:24:49 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 4B064240107 for <53179@debbugs.gnu.org>; Tue, 11 Jan 2022 06:24:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1641878680; bh=qJUmarrXKhsQgMJBRmJ8p+8qNeiifbglUHylIexKwxY=; h=From:To:Cc:Subject:Date:From; b=KZJ9HT9TwNuUDIFCDk15lKb1TYR9RzGiUI2rtuUl9XVSYbGdwB4KkKcOAcvZJFhz6 s4YFwLXOTjOJszPekpXvr/PhW5xKMyp4vPvX4uh56NW52z8cBAjhlAY4QdVd5bYgdu VgSefKhEDVMjW/g3DAK3Tn6uVNWs4KsCn0Znf060x0oOGk2yQfszvCmG+ys/2aOpjC ffDYRHZms5Mp3LVvmLuhYiVD03Ss+pi1kpQErQlKAH0MCu00GVOldw4ieJvFQtliRy Cvd3oqQeUVfbBI2h/uThzUCwJ0d/aa5fW9ucyLRzLfW5uFZnUwq8NKIMF7L3uTV9/O FA2HxmUGZY/1g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4JXzdx3k5Pz9rxR; Tue, 11 Jan 2022 06:24:36 +0100 (CET) From: Vinicius Monego To: 53179@debbugs.gnu.org Subject: [PATCH 1/3] gnu: python-httpcore: Update to 0.13.7. Date: Tue, 11 Jan 2022 05:24:27 +0000 Message-Id: <20220111052429.34592-1-monego@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 53179 Cc: Vinicius Monego X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/python-web.scm (python-httpcore): Update to 0.13.7. [native-inputs]: Order alphabetically. [propagated-inputs]: Add python-anyio. --- gnu/packages/ebook.scm | 2 +- gnu/packages/python-web.scm | 17 ++++++++--------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/gnu/packages/ebook.scm b/gnu/packages/ebook.scm index 03671ee902..5a02e79d1a 100644 --- a/gnu/packages/ebook.scm +++ b/gnu/packages/ebook.scm @@ -6,7 +6,7 @@ ;;; Copyright © 2017 Roel Janssen ;;; Copyright © 2018–2021 Tobias Geerinckx-Rice ;;; Copyright © 2020 Marius Bakke -;;; Copyright © 2020, 2021 Vinicius Monego +;;; Copyright © 2020, 2021, 2022 Vinicius Monego ;;; Copyright © 2020 Zheng Junjie <873216071@qq.com> ;;; Copyright © 2021 la snesne ;;; Copyright © 2021 Petr Hodina diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 253b68e02c..ccce679933 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -5030,20 +5030,19 @@ and serve updated contents upon changes to the directory.") (define-public python-httpcore (package (name "python-httpcore") - (version "0.12.2") + (version "0.13.7") (source (origin - ;; PyPI tarball does not contain tests. - (method git-fetch) + (method git-fetch) ; no tests in PyPI (uri (git-reference (url "https://github.com/encode/httpcore") - (commit version))) + (commit version))) (file-name (git-file-name name version)) (sha256 - (base32 "1nrwwfdqjfc2a1k3j41cdwkprwvplf95fwmypdl2aq2qgp3209q0")))) + (base32 "1qf1kdscqs566qjzkxz9jxn0g30rx3s6jmxvizvc8q44m8rbs4gn")))) (build-system python-build-system) (arguments - `(#:tests? #f ; Tests hang at 98% + `(#:tests? #f ; Tests hang at 99% #:phases (modify-phases %standard-phases (replace 'check @@ -5064,10 +5063,10 @@ and serve updated contents upon changes to the directory.") python-pytest-asyncio python-pytest-cov python-pytest-trio - python-uvicorn - python-trustme)) + python-trustme + python-uvicorn)) (propagated-inputs - (list python-h11 python-h2 python-sniffio python-trio + (list python-anyio python-h11 python-h2 python-sniffio python-trio python-trio-typing)) (home-page "https://github.com/encode/httpcore") (synopsis "Minimal, low-level HTTP client") base-commit: 9d613c36de1ea52e745d30bad841b6cdeaca65f4 -- 2.30.2 From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 11 00:25:01 2022 Received: (at 53179) by debbugs.gnu.org; 11 Jan 2022 05:25:02 +0000 Received: from localhost ([127.0.0.1]:53890 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n79eS-0004pv-Pg for submit@debbugs.gnu.org; Tue, 11 Jan 2022 00:25:01 -0500 Received: from mout01.posteo.de ([185.67.36.65]:55313) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n79eN-0004pI-To for 53179@debbugs.gnu.org; Tue, 11 Jan 2022 00:24:52 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 5E87A240029 for <53179@debbugs.gnu.org>; Tue, 11 Jan 2022 06:24:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1641878686; bh=BaiKr1040M+66kXKxE+7Shs3eSB9sFLlWXxAfIbbw4o=; h=From:To:Cc:Subject:Date:From; b=kUjCqao/2mBrV9VKwiWTkOVTjUPG0esW+g/wBquWcFgKtnVSMLndOnYOdx93rsce4 BNhdJP365aNx1JhSSqQLj2SGR8B3ICFZLzf2cojDXEPj3jf0XJABbQCNqj8ZzzWI4/ 5u0pHjSg2V5itrvFE90TIERDi9bwO5wsvriGh6/+jcw5ESeB1heA/Ah8dF5K05maNl oZdDu+MEcRvRn2ljBvT9RYudGtF2b8Xs1sb0DV3rgZoHdJ2MSne0vvr/xq66c6lX9J AaUlQGJ2LI1fMiYC6UPE5h9b46fB0RhyawJvZpKu6rCIGaGIPqFbpklwREiiMi/mcR tdPbBa4/4UlMg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4JXzf54HTrz9rxM; Tue, 11 Jan 2022 06:24:45 +0100 (CET) From: Vinicius Monego To: 53179@debbugs.gnu.org Subject: [PATCH 3/3] gnu: Add python-pytest-httpx. Date: Tue, 11 Jan 2022 05:24:29 +0000 Message-Id: <20220111052429.34592-3-monego@posteo.net> In-Reply-To: <20220111052429.34592-1-monego@posteo.net> References: <20220111052429.34592-1-monego@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 53179 Cc: Vinicius Monego X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/python-check.scm (python-pytest-httpx): New variable. --- gnu/packages/python-check.scm | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index b4e2765d72..da044b7acb 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -7,7 +7,7 @@ ;;; Copyright © 2020 Julien Lepiller ;;; Copyright © 2020 Marius Bakke ;;; Copyright © 2020 Edouard Klein -;;; Copyright © 2020, 2021 Vinicius Monego +;;; Copyright © 2020, 2021, 2022 Vinicius Monego ;;; Copyright © 2020 Tanguy Le Carrour ;;; Copyright © 2021 Sharlatan Hellseher ;;; Copyright © 2021 Brendan Tildesley @@ -1735,6 +1735,38 @@ execution of a test suite. It will also store a history of all test runs to help in debugging failures and optimizing the scheduler to improve speed.") (license license:asl2.0))) +(define-public python-pytest-httpx + (package + (name "python-pytest-httpx") + (version "0.13.0") + (source + (origin + (method git-fetch) ; no tests in PyPI release + (uri (git-reference + (url "https://github.com/Colin-b/pytest_httpx") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0lh7df3ysxmjzvx6242xb6qiwpfxrnj70kjmw5sndvzmy5dfpxfc")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + (invoke "python" "-m" "pytest"))))))) + (propagated-inputs + (list python-httpx)) + (native-inputs + (list python-pytest-asyncio python-pytest python-pytest-cov)) + (home-page "https://colin-b.github.io/pytest_httpx/") + (synopsis "Pytest fixture to mock HTTPX") + (description "This package provides a Pytest fixture that will make sure +every @code{httpx} request will be replied to with user provided responses.") + (license license:expat))) + ;; This is only used by python-sanic (define-public python-pytest-sanic (package -- 2.30.2 From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 14 16:09:18 2022 Received: (at 53179) by debbugs.gnu.org; 14 Jan 2022 21:09:18 +0000 Received: from localhost ([127.0.0.1]:38372 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8Tov-0005V9-BR for submit@debbugs.gnu.org; Fri, 14 Jan 2022 16:09:18 -0500 Received: from mout01.posteo.de ([185.67.36.65]:34039) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8Tos-0005Uo-Pg for 53179@debbugs.gnu.org; Fri, 14 Jan 2022 16:09:11 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id D3171240029 for <53179@debbugs.gnu.org>; Fri, 14 Jan 2022 22:09:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1642194544; bh=acUyDzr60Jykm5RXOVzqZ3PE8ZOuhlIqHlh1a0koFP8=; h=From:To:Cc:Subject:Date:From; b=ThKSubjXOQnCu+apWFlVSgU3o1zzPU3ednmqK50oMMPiQ51xh/7LmC9xJNq2+Ahvi DXhAAvM8H0tjnU9qqYcDgIMi7xaN5LXfE5kjuYYIC6rMv77LZMblYoh/dEIaoxwkGE 4v+gQhMagXK/s7us7JDoNvlU58ce6RKU+KZ3SMjvxLjLJS1SC7JYJq12qqjnW7rZaH 4FuwfOvSVnUMmuM7udQwcqvGNDApAA+PsbGTL8e+wpNXsXxJ/pCzK8zZch3w7iMv8f KXhsaEzdfM6sAJMG5l957Yxl5pxP66zzAlijyfXv48MURTDzHlwzfBUqM+S3jlWIoW pf4iAW7fn299g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4JbDSH0gJrz9rxT; Fri, 14 Jan 2022 22:09:01 +0100 (CET) From: Vinicius Monego To: 53179@debbugs.gnu.org Subject: [PATCH v2 1/3] gnu: python-httpcore: Update to 0.13.7. Date: Fri, 14 Jan 2022 21:08:44 +0000 Message-Id: <20220114210846.171922-1-monego@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 53179 Cc: Vinicius Monego X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/python-web.scm (python-httpcore): Update to 0.13.7. [native-inputs]: Order alphabetically. [propagated-inputs]: Add python-anyio. --- Fixed the copyright being added in the wrong file. gnu/packages/python-web.scm | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 708528983c..639470d7d4 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -37,7 +37,7 @@ ;;; Copyright © 2020 Holger Peters ;;; Copyright © 2020 Noisytoot ;;; Copyright © 2020 Edouard Klein -;;; Copyright © 2020, 2021 Vinicius Monego +;;; Copyright © 2020, 2021, 2022 Vinicius Monego ;;; Copyright © 2020 Konrad Hinsen ;;; Copyright © 2020 Giacomo Leidi ;;; Copyright © 2021 Ekaitz Zarraga @@ -5124,20 +5124,19 @@ and serve updated contents upon changes to the directory.") (define-public python-httpcore (package (name "python-httpcore") - (version "0.12.2") + (version "0.13.7") (source (origin - ;; PyPI tarball does not contain tests. - (method git-fetch) + (method git-fetch) ; no tests in PyPI (uri (git-reference (url "https://github.com/encode/httpcore") - (commit version))) + (commit version))) (file-name (git-file-name name version)) (sha256 - (base32 "1nrwwfdqjfc2a1k3j41cdwkprwvplf95fwmypdl2aq2qgp3209q0")))) + (base32 "1qf1kdscqs566qjzkxz9jxn0g30rx3s6jmxvizvc8q44m8rbs4gn")))) (build-system python-build-system) (arguments - `(#:tests? #f ; Tests hang at 98% + `(#:tests? #f ; Tests hang at 99% #:phases (modify-phases %standard-phases (replace 'check @@ -5158,10 +5157,10 @@ and serve updated contents upon changes to the directory.") python-pytest-asyncio python-pytest-cov python-pytest-trio - python-uvicorn - python-trustme)) + python-trustme + python-uvicorn)) (propagated-inputs - (list python-h11 python-h2 python-sniffio python-trio + (list python-anyio python-h11 python-h2 python-sniffio python-trio python-trio-typing)) (home-page "https://github.com/encode/httpcore") (synopsis "Minimal, low-level HTTP client") base-commit: 36f4745dc10e5d0e8b2a62cd2c8439629debae4f -- 2.30.2 From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 14 16:09:18 2022 Received: (at 53179) by debbugs.gnu.org; 14 Jan 2022 21:09:18 +0000 Received: from localhost ([127.0.0.1]:38376 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8Tp0-0005VL-5m for submit@debbugs.gnu.org; Fri, 14 Jan 2022 16:09:18 -0500 Received: from mout01.posteo.de ([185.67.36.65]:39101) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8Tov-0005Uv-SZ for 53179@debbugs.gnu.org; Fri, 14 Jan 2022 16:09:14 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 5981424002A for <53179@debbugs.gnu.org>; Fri, 14 Jan 2022 22:09:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1642194548; bh=JyG/Y8zZpCFUyYrUUbZebdsxUpZ8BcBJPwIiJsz9BNI=; h=From:To:Cc:Subject:Date:From; b=XRbARbYRrc7RKNzie71f8FHWNC78JXJmnJDenWF/pwMMcyx7mJ3esLrUC/Z7cmc5D a2O+kgQ14QjVa2LH+VzTGsbOxHmpBf365HZ+zmvGUUBNLdTx71RgOXkNsovwOxXmqN pcUDLDYCdDyJlmKqHJzvIRFaVZ1yaKVf00bk10sJkSuy1DmrYTmJoCKTnmX79wirgm SfbOj8rqjGFWmIY6K3m7e0lP9iB2JfBgwigNFrL7nkHzWZIL+NZv9jREjRFKDGp45l jF8CUTREdUitrG+a0rQ1PM4oBmIi7KSrjG0SiC+I0Cw9cvPk05hDtmOiOD8ZMAIIDq 1+n/apZcOf78A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4JbDSM3p7Dz6tng; Fri, 14 Jan 2022 22:09:06 +0100 (CET) From: Vinicius Monego To: 53179@debbugs.gnu.org Subject: [PATCH v2 2/3] gnu: python-httpx: Update to 0.19.0. Date: Fri, 14 Jan 2022 21:08:45 +0000 Message-Id: <20220114210846.171922-2-monego@posteo.net> In-Reply-To: <20220114210846.171922-1-monego@posteo.net> References: <20220114210846.171922-1-monego@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 53179 Cc: Vinicius Monego X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/python-web.scm (python-httpx): Update to 0.19.0. [arguments]: Adjust skipped tests in the custom 'check phase. [propagated-inputs]: Add python-async-generator, python-charset-normalizer. Remove python-chardet. --- gnu/packages/python-web.scm | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 639470d7d4..0a1d6d3d29 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -5183,17 +5183,16 @@ Some things HTTP Core does do: (define-public python-httpx (package (name "python-httpx") - (version "0.16.1") + (version "0.19.0") (source (origin - ;; PyPI tarball does not contain tests. - (method git-fetch) + (method git-fetch) ; no tests in PyPI (uri (git-reference (url "https://github.com/encode/httpx") (commit version))) (file-name (git-file-name name version)) (sha256 - (base32 "00gmq45fckcqkj910bvd7pyqz1mvgsdvz4s0k7dzbnc5czzq1f4a")))) + (base32 "1w2wk6f07s6liyhsrq0qjj9vm2khp40kv85x91k70f1a8rwp2k3d")))) (build-system python-build-system) (arguments `(#:phases @@ -5201,16 +5200,10 @@ Some things HTTP Core does do: (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? - (invoke "pytest" "-vv" "-k" - ;; These tests try to open an outgoing connection. + (invoke "python" "-m" "pytest" "-k" (string-append - "not test_connect_timeout" - " and not test_that_send_cause_async_client_to_be_not_" - "closed" - " and not test_that_async_client_caused_warning_when_" - "being_deleted" - " and not test_that_send_cause_client_to_be_not_closed" - " and not test_async_proxy_close" + ;; These tests open outgoing connections. + "not test_async_proxy_close" " and not test_sync_proxy_close")))))))) (native-inputs (list python-autoflake @@ -5230,9 +5223,10 @@ Some things HTTP Core does do: python-trustme python-uvicorn)) (propagated-inputs - (list python-brotli + (list python-async-generator + python-brotli python-certifi - python-chardet + python-charset-normalizer python-httpcore python-idna python-rfc3986 -- 2.30.2 From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 14 16:09:28 2022 Received: (at 53179) by debbugs.gnu.org; 14 Jan 2022 21:09:29 +0000 Received: from localhost ([127.0.0.1]:38380 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8Tp6-0005Vl-H5 for submit@debbugs.gnu.org; Fri, 14 Jan 2022 16:09:28 -0500 Received: from mout01.posteo.de ([185.67.36.65]:57593) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8Tp1-0005VG-Qe for 53179@debbugs.gnu.org; Fri, 14 Jan 2022 16:09:22 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 4AE39240027 for <53179@debbugs.gnu.org>; Fri, 14 Jan 2022 22:09:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1642194554; bh=zjtxGGCs2Clcvlkx96C77UERay4prSAZzEn+o7iMiQc=; h=From:To:Cc:Subject:Date:From; b=S4MMckDW6PnRlBPhoK2ZNepdHGK2XxD5yrX3XKXsPlM5gR7ZGSpcv6TSHYeAeiQcS s+hEo2T6tUN+JY7xbPwY+YovJRhrYX7AKaYSc0LdV/xoXCZDnOSAj2vZowWNWds2Xe AzNz9bL4djbRyeVlIBIz3iFXsWNmGJzrz+iI5iyEhEbOZfjcf1tv8asEU2hI4xGKaQ 6ElxxfkElNBwOsQ8xO6xoHMNd5DitRe4u23I/AVZV86P2lkffstJcfmklgmzK0rDfg +pWlPL36zATgB1dii/gDzmb3SAhrJUYxoHAjSucSTy//WFnzWp6+vRs13EdP89A/h8 BQeBOMzLlZ8VA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4JbDSR43YYz6tmb; Fri, 14 Jan 2022 22:09:11 +0100 (CET) From: Vinicius Monego To: 53179@debbugs.gnu.org Subject: [PATCH v2 3/3] gnu: Add python-pytest-httpx. Date: Fri, 14 Jan 2022 21:08:46 +0000 Message-Id: <20220114210846.171922-3-monego@posteo.net> In-Reply-To: <20220114210846.171922-1-monego@posteo.net> References: <20220114210846.171922-1-monego@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 53179 Cc: Vinicius Monego X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/python-check.scm (python-pytest-httpx): New variable. --- gnu/packages/python-check.scm | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 181aa8b05c..8df1dd67eb 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -7,7 +7,7 @@ ;;; Copyright © 2020 Julien Lepiller ;;; Copyright © 2020 Marius Bakke ;;; Copyright © 2020 Edouard Klein -;;; Copyright © 2020, 2021 Vinicius Monego +;;; Copyright © 2020, 2021, 2022 Vinicius Monego ;;; Copyright © 2020 Tanguy Le Carrour ;;; Copyright © 2021 Sharlatan Hellseher ;;; Copyright © 2021 Brendan Tildesley @@ -1789,6 +1789,38 @@ execution of a test suite. It will also store a history of all test runs to help in debugging failures and optimizing the scheduler to improve speed.") (license license:asl2.0))) +(define-public python-pytest-httpx + (package + (name "python-pytest-httpx") + (version "0.13.0") + (source + (origin + (method git-fetch) ; no tests in PyPI release + (uri (git-reference + (url "https://github.com/Colin-b/pytest_httpx") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0lh7df3ysxmjzvx6242xb6qiwpfxrnj70kjmw5sndvzmy5dfpxfc")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + (invoke "python" "-m" "pytest"))))))) + (propagated-inputs + (list python-httpx)) + (native-inputs + (list python-pytest-asyncio python-pytest python-pytest-cov)) + (home-page "https://colin-b.github.io/pytest_httpx/") + (synopsis "Pytest fixture to mock HTTPX") + (description "This package provides a Pytest fixture that will make sure +every @code{httpx} request will be replied to with user provided responses.") + (license license:expat))) + ;; This is only used by python-sanic (define-public python-pytest-sanic (package -- 2.30.2 From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 22 12:11:28 2022 Received: (at 53179-close) by debbugs.gnu.org; 22 Jun 2022 16:11:28 +0000 Received: from localhost ([127.0.0.1]:36428 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o42wy-0005SD-FY for submit@debbugs.gnu.org; Wed, 22 Jun 2022 12:11:28 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:57563) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o42wv-0005Rx-OK for 53179-close@debbugs.gnu.org; Wed, 22 Jun 2022 12:11:26 -0400 Received: from hermia.goebel-consult.de ([79.211.183.96]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1N79q6-1ncgtX04Wi-017TgV; Wed, 22 Jun 2022 18:11:19 +0200 Received: from [192.168.110.2] (lenashee.goebel-consult.de [192.168.110.2]) by hermia.goebel-consult.de (Postfix) with ESMTP id 941D25F535; Wed, 22 Jun 2022 18:11:24 +0200 (CEST) Message-ID: <9aa28517-3084-2d30-c4d2-046bd5613094@crazy-compilers.com> Date: Wed, 22 Jun 2022 18:11:16 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 To: monego@posteo.net, 53179-close@debbugs.gnu.org Subject: Re: bug#53179: [PATCH 0/3] Update httpx and add pytest-httpx. Content-Language: de-DE From: Hartmut Goebel Organization: crazy-compilers.com Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:Ofj41N6gctG+Cc+u9hW9NCeJQKCPFKnhm+hixuj4zYECKq2DwG5 cKE4MrzNodDFwjXVcEsw1o0Qm01Hx3yrqB2Dlh31lUUuSGl1P+bixdoA54RmLkEqrMASfi6 pg/mPvZyHyhQv8K2UbJKRKCbquTeIDiI79QSQ8EGwbuPhFgJ3yJvlbuNOC7uvaeBALHBjC3 qR7XtVhqWAM5Xh4l+gW9Q== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:n4jnEVik1vs=:jRDDrA69PFskmOz2XE3yrn WGavQ9aGmnIXnbKq9ioUZCLWFS3+oPosH8ExBdkF3K5F3U9hUiQE1zWJhJo7n2z3tR8mMQSg3 R8qNi9zgEB35St7J7LGqQ9/PRMnnMRTvxU4P4W24vo1MGyKmarNL9X8FUk2sRAtth59cXdf9A VUlf8Sp8YaScyV9UGcr48I/5uo5hqStM6QLKTZU1hEMKdfaHxXP4ID/kz48D9KahRka4Ojy2+ gX79viry8PrEJyjSfxG/eDhKV20ujaCaReBW4rBe52VXn7QwAuQY7w5ye5CoRJBQpYVpHm1m1 4yK4q1ocm8lG0q6uJcBuZ+HOozPde7Bl9PUHf9L7x+vdwT6rLGjzEf6Tcj9YUrUx4+fuuRD1i IiAFkpj3OTojtWZihtCG52DBfhXk7LJ/UqjHHF58pT6G/mMG25fWXaooci/0WQ3JAgw8AKK0j HxFoYZmf7ZeXMhWsi2wKqVYDvQ+ugTbN0ccUM6C4It3gInyV8xf8XewtHwlO/8dZd1xnRGkqm JZwRuzzryabjxnqyXCpPUxAle3SoyDijO7iD656S6HdL+zf05c0WYRHRP02NJdNxOvjZr0Pw/ 0EUzj5WvF9a/Liy0GOC7/e7YT0S8YQvV4VDAz7jbgPSxJrtMho+F6RWmQNJ8V59tgkgX2ZzlO SvhE1FnV07kRibaiFzRK31MphGyMPoZJpEF0Q41ACBTOyKPBJWnNUVQUtW177aG1SGTu7nP0N Qr0ncdFJIVcmW6CureJlzX/z4zoFJCVW5J9S7hn19IOZn+uSR69jLly0ho0= X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 53179-close X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Thanks for submitting these patches. It has been quite a while now and nobody did review it. Sorry for that. I'm clonsing this since these packages are already in Guix now. -- Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible | From unknown Mon Jun 23 02:22:26 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 21 Jul 2022 11:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator