python-httpcore/python-httpcore.spec

66 lines
2.3 KiB
RPMSpec
Raw Normal View History

2023-07-27 17:03:29 +08:00
# Created by pyp2rpm-3.2.2
%global pypi_name httpcore
Name: python-%{pypi_name}
2024-02-29 19:50:29 +08:00
Version: 1.0.4
2023-07-27 17:03:29 +08:00
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
2024-02-29 19:50:29 +08:00
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-hatchling
BuildRequires: python3-hatch-fancy-pypi-readme
2023-07-27 17:03:29 +08:00
%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
2024-02-29 19:50:29 +08:00
%pyproject_build
2023-07-27 17:03:29 +08:00
%install
2024-02-29 19:50:29 +08:00
%pyproject_install
2023-07-27 17:03:29 +08:00
%files -n python3-%{pypi_name}
%license LICENSE.md
%doc README.md
2024-02-29 19:50:29 +08:00
%{python3_sitelib}/%{pypi_name}*.dist-info/
2023-07-27 17:03:29 +08:00
%{python3_sitelib}/%{pypi_name}/
%changelog
2024-02-29 19:50:29 +08:00
* 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.
2023-07-27 17:03:29 +08:00
* Mon Jul 24 2023 ysliu <ysliuci@isoftstone.com> - 0.17.3-1
- Initial package.