python-httpcore/python-httpcore.spec
2024-03-01 08:21:05 +08:00

66 lines
2.3 KiB
RPMSpec

# Created by pyp2rpm-3.2.2
%global pypi_name httpcore
Name: python-%{pypi_name}
Version: 1.0.4
Release: 1
Summary: A minimal low-level HTTP client
License: BSD
URL: https://github.com/encode/httpcore
Source0: https://files.pythonhosted.org/packages/source/h/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-hatchling
BuildRequires: python3-hatch-fancy-pypi-readme
%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.
%package -n python3-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
%description -n python3-%{pypi_name}
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.
%prep
%autosetup -n %{pypi_name}-%{version}
%build
%pyproject_build
%install
%pyproject_install
%files -n python3-%{pypi_name}
%license LICENSE.md
%doc README.md
%{python3_sitelib}/%{pypi_name}*.dist-info/
%{python3_sitelib}/%{pypi_name}/
%changelog
* Thu Feb 29 2024 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 1.0.4-1
- Upgrade package with version 1.0.4
Add support for HTTPS proxies.
Handle sni_hostname extension with SOCKS proxy.
Handle HTTP/1.1 half-closed connections gracefully.
Add support for Python 3.12 and drop Python 3.7 support.
Async support becomes fully optional.
Add support for synchronous TLS-in-TLS streams.
* Mon Jul 24 2023 ysliu <ysliuci@isoftstone.com> - 0.17.3-1
- Initial package.