Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37505367
en ru br
ALT Linux repos
S:0.17.0-alt1

Group :: Development/Python3
RPM: python3-module-httpcore

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define  modulename httpcore

Name:    python3-module-%modulename
Version: 0.17.0
Release: alt1

Summary: A minimal HTTP client

License: BSD-3-Clause
Group:   Development/Python3
URL:     https://www.encode.io/httpcore/

# Source-url: https://github.com/encode/httpcore/archive/%version.tar.gz

Source:  %modulename-%version.tar

BuildRequires(pre): rpm-build-python3
BuildRequires: python3-dev python3-module-setuptools

BuildArch: noarch

%description
The HTTP Core package provides a minimal low-level HTTP client,
which does one thing only. Sending HTTP requests.

It does not provide any high level model abstractions over the API,
does not handle redirects, multipart uploads, building authentication headers,
transparent HTTP caching, URL parsing, session cookie handling,
content or charset decoding, handling JSON,
environment based configuration defaults, or any of that Jazz.

Some things HTTP Core does do:

* Sending HTTP requests.
* Provides both sync and async interfaces.
* Supports HTTP/1.1 and HTTP/2.
* Async backend support for asyncio and trio.
* Automatic connection pooling.
* HTTP(S) proxy support.

%prep
%setup -n %modulename-%version
sed -ri 's/,\s+"anyio==[^"]+"//' setup.py
sed -ri '/h11/ s/,<[^,"]+//p' setup.py

%build
%python3_build

%install
%python3_install

# asyncio alternatives, optional

%add_python3_req_skip anyio.abc
%add_python3_req_skip anyio.streams.tls
%add_python3_req_skip curio.io

%files
%python3_sitelibdir/%modulename/
%python3_sitelibdir/*.egg-info/

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin