Upgrade package with version 1.0.4

This commit is contained in:
desert-sailor 2024-02-29 19:50:29 +08:00
parent a17a5bd878
commit 46b5f9618d
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 %global pypi_name httpcore
Name: python-%{pypi_name} Name: python-%{pypi_name}
Version: 0.17.3 Version: 1.0.4
Release: 1 Release: 1
Summary: A minimal low-level HTTP client Summary: A minimal low-level HTTP client
@ -13,6 +13,10 @@ BuildArch: noarch
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-setuptools BuildRequires: python3-setuptools
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-hatchling
BuildRequires: python3-hatch-fancy-pypi-readme
%description %description
The HTTP Core package provides a minimal low-level HTTP client, which does one thing only. Sending HTTP requests. 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} Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}} %{?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} %description -n python3-%{pypi_name}
The HTTP Core package provides a minimal low-level HTTP client, which does one thing only. Sending HTTP requests. 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, 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 %prep
%autosetup -n %{pypi_name}-%{version} %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 %build
%py3_build %pyproject_build
%install %install
%py3_install %pyproject_install
%files -n python3-%{pypi_name} %files -n python3-%{pypi_name}
%license LICENSE.md %license LICENSE.md
%doc README.md %doc README.md
%{python3_sitelib}/%{pypi_name}-*.egg-info/ %{python3_sitelib}/%{pypi_name}*.dist-info/
%{python3_sitelib}/%{pypi_name}/ %{python3_sitelib}/%{pypi_name}/
%changelog %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 * Mon Jul 24 2023 ysliu <ysliuci@isoftstone.com> - 0.17.3-1
- Initial package. - Initial package.