!2 Upgrade package with version 1.0.4

From: @desert-sailor 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
This commit is contained in:
openeuler-ci-bot 2024-03-01 01:19:23 +00:00 committed by Gitee
commit 2dbd9270b8
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 17 additions and 13 deletions

Binary file not shown.

BIN
httpcore-1.0.4.tar.gz Normal file

Binary file not shown.

View File

@ -2,7 +2,7 @@
%global pypi_name httpcore
Name: python-%{pypi_name}
Version: 0.17.3
Version: 1.0.4
Release: 1
Summary: A minimal low-level HTTP client
@ -13,6 +13,10 @@ 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.
@ -24,12 +28,6 @@ decoding, handling JSON, environment based configuration defaults, or any of tha
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
Requires: python3-h11 < 0.15
Requires: python3-h11 >= 0.13
Requires: python3-sniffio >= 1.0.0
Requires: python3-anyio >= 3.0
Requires: python3-anyio < 5.0
Requires: python3-certifi
%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,
@ -39,23 +37,29 @@ decoding, handling JSON, environment based configuration defaults, or any of tha
%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
sed -i "s/\"sniffio==1.*\"/\"sniffio>=1.0\"/g" setup.py
%build
%py3_build
%pyproject_build
%install
%py3_install
%pyproject_install
%files -n python3-%{pypi_name}
%license LICENSE.md
%doc README.md
%{python3_sitelib}/%{pypi_name}-*.egg-info/
%{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.