#3 Fix automatic dependency on httpcore
Merged 19 days ago by carlwgeorge. Opened 19 days ago by carlwgeorge.
rpms/ carlwgeorge/python-httpx epel8-httpcore-dep  into  epel8

@@ -0,0 +1,25 @@ 

+ From c09e61d50c8f169187cada6dbf14b89c7763c63f Mon Sep 17 00:00:00 2001

+ From: Simon L <simon.lessage@gmail.com>

+ Date: Wed, 3 Mar 2021 12:25:21 +0100

+ Subject: [PATCH] Incompatible with httpcore 0.12.0 (#1495)

+ 

+ ---

+  setup.py | 2 +-

+  1 file changed, 1 insertion(+), 1 deletion(-)

+ 

+ diff --git a/setup.py b/setup.py

+ index 0c59851..0f1b286 100644

+ --- a/setup.py

+ +++ b/setup.py

+ @@ -59,7 +59,7 @@ setup(

+          "certifi",

+          "sniffio",

+          "rfc3986[idna2008]>=1.3,<2",

+ -        "httpcore==0.12.*",

+ +        "httpcore>=0.12.1,<0.13",

+      ],

+      extras_require={

+          "http2": "h2==3.*",

+ -- 

+ 2.41.0

+ 

file modified
+11 -2
@@ -2,12 +2,18 @@ 

  

  Name:           python-%{pypi_name}

  Version:        0.16.1

- Release:        1%{?dist}

+ Release:        2%{?dist}

  Summary:        Python HTTP client

  

  License:        BSD

  URL:            https://github.com/encode/httpx

  Source0:        %{pypi_source}

+ # Version 0.16.1 has a dependency specified as "httpcore==0.12.*".  This is not

+ # properly parsed by EL8's automatic dependency generator, resulting in the

+ # httpcore dependency missing.  Upstream later changed this dependency to

+ # "httpcore>=0.12.1,<0.13", which does parse correctly.  We'll include that

+ # patch so our automatic depencency gets added.

+ Patch0:         0001-Incompatible-with-httpcore-0.12.0-1495.patch

  BuildArch:      noarch

  

  %description
@@ -26,7 +32,7 @@ 

  async APIs, and support for both HTTP/1.1 and HTTP/2.

  

  %prep

- %autosetup -n %{pypi_name}-%{version}

+ %autosetup -n %{pypi_name}-%{version} -p 1

  rm -rf %{pypi_name}.egg-info

  

  %build
@@ -42,6 +48,9 @@ 

  %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/

  

  %changelog

+ * Tue Sep 12 2023 Carl George <carlwgeorge@fedoraproject.org> - 0.16.1-2

+ - Fix automatic dependency on httpcore, resolves rhbz#2237570

+ 

  * Fri Oct 09 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.16.1-1

  - Update to new upstream release 0.16.1 (#1884265)

  

Pull-Request has been merged by carlwgeorge

19 days ago