2021-07-19 09:56:00 +08:00
|
|
|
%global src_name httpx
|
|
|
|
|
|
|
|
|
|
Name: python-%{src_name}
|
2023-08-09 16:48:25 +08:00
|
|
|
Version: 0.24.1
|
2021-07-19 09:56:00 +08:00
|
|
|
Release: 1
|
|
|
|
|
Summary: Python HTTP client
|
|
|
|
|
|
2023-08-09 16:48:25 +08:00
|
|
|
License: BSD-3-Clause
|
2021-07-19 09:56:00 +08:00
|
|
|
URL: https://github.com/encode/httpx
|
2023-08-09 16:48:25 +08:00
|
|
|
Source0: https://files.pythonhosted.org/packages/f8/2a/114d454cb77657dbf6a293e69390b96318930ace9cd96b51b99682493276/httpx-0.24.1.tar.gz
|
2021-07-19 09:56:00 +08:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description
|
2023-08-09 16:48:25 +08:00
|
|
|
HTTPX is a fully featured HTTP client library for Python 3. It includes an integrated command line client,
|
|
|
|
|
has support for both HTTP/1.1 and HTTP/2, and provides both sync and async APIs.
|
2021-07-19 09:56:00 +08:00
|
|
|
|
|
|
|
|
%package -n python3-%{src_name}
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
2023-08-09 16:48:25 +08:00
|
|
|
BuildRequires: python3-pip
|
|
|
|
|
BuildRequires: python3-wheel
|
|
|
|
|
BuildRequires: python3-hatchling
|
|
|
|
|
BuildRequires: python3-hatch-fancy-pypi-readme
|
|
|
|
|
BuildRequires: python3-flit-core
|
|
|
|
|
BuildRequires: python3-certifi
|
|
|
|
|
BuildRequires: python3-httpcore
|
|
|
|
|
BuildRequires: python3-idna
|
|
|
|
|
BuildRequires: python3-sniffio
|
2021-07-19 09:56:00 +08:00
|
|
|
%{?python_provide:%python_provide python3-%{src_name}}
|
|
|
|
|
|
|
|
|
|
%description -n python3-%{src_name}
|
2023-08-09 16:48:25 +08:00
|
|
|
HTTPX is a fully featured HTTP client library for Python 3. It includes an integrated command line client,
|
|
|
|
|
has support for both HTTP/1.1 and HTTP/2, and provides both sync and async APIs.
|
2021-07-19 09:56:00 +08:00
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{src_name}-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
2023-08-09 16:48:25 +08:00
|
|
|
%pyproject_build
|
2021-07-19 09:56:00 +08:00
|
|
|
|
|
|
|
|
%install
|
2023-08-09 16:48:25 +08:00
|
|
|
%pyproject_install
|
2021-07-19 09:56:00 +08:00
|
|
|
|
|
|
|
|
%files -n python3-%{src_name}
|
|
|
|
|
%license LICENSE.md
|
|
|
|
|
%doc README.md
|
2023-08-09 16:48:25 +08:00
|
|
|
%{_bindir}/%{src_name}
|
2021-07-19 09:56:00 +08:00
|
|
|
%{python3_sitelib}/%{src_name}/
|
2023-08-09 16:48:25 +08:00
|
|
|
%{python3_sitelib}/%{src_name}*.dist-info/
|
2021-07-19 09:56:00 +08:00
|
|
|
|
|
|
|
|
%changelog
|
2023-08-09 16:48:25 +08:00
|
|
|
* Wed Aug 09 2023 ysliu <ysliuci@isoftstone.com> - 0.24.1-1
|
|
|
|
|
- Upgrade to 0.24.1-1
|
|
|
|
|
|
2021-07-19 09:56:00 +08:00
|
|
|
* Mon Jul 19 2021 yinyongkang <yinyongkang@kylinos.cn> - 0.18.2-1
|
|
|
|
|
- Init Package
|