introduction package.

This commit is contained in:
ysliu 2023-07-27 17:03:29 +08:00
parent cbd6af6d9c
commit 1b8f325181
2 changed files with 61 additions and 0 deletions

BIN
httpcore-0.17.3.tar.gz Normal file

Binary file not shown.

61
python-httpcore.spec Normal file
View File

@ -0,0 +1,61 @@
# Created by pyp2rpm-3.2.2
%global pypi_name httpcore
Name: python-%{pypi_name}
Version: 0.17.3
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
%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}}
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,
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}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
sed -i "s/\"sniffio==1.*\"/\"sniffio>=1.0\"/g" setup.py
%build
%py3_build
%install
%py3_install
%files -n python3-%{pypi_name}
%license LICENSE.md
%doc README.md
%{python3_sitelib}/%{pypi_name}-*.egg-info/
%{python3_sitelib}/%{pypi_name}/
%changelog
* Mon Jul 24 2023 ysliu <ysliuci@isoftstone.com> - 0.17.3-1
- Initial package.