diff --git a/httpcore-0.15.0.tar.gz b/httpcore-0.15.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..c625a8e3f9dfc9c188a93f8166627ffff5f8bb69 Binary files /dev/null and b/httpcore-0.15.0.tar.gz differ diff --git a/python-httpcore.spec b/python-httpcore.spec new file mode 100644 index 0000000000000000000000000000000000000000..d76ac4d2234821c004515de677a1a5ff646fe000 --- /dev/null +++ b/python-httpcore.spec @@ -0,0 +1,52 @@ +%define anolis_release 1 +%global pypi_name httpcore + +Name: python-%{pypi_name} +Version: 0.15.0 +Release: %{anolis_release}%{?dist} +Summary: Minimal low-level HTTP client + +License: BSD +URL: https://github.com/encode/httpcore +Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch + +%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, etc. + +%package -n python3-%{pypi_name} +Summary: %{summary} + +BuildRequires: python3-devel +BuildRequires: python3-setuptools + +%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, etc. + +%prep +%autosetup -n %{pypi_name}-%{version} +sed -i -e 's/"h11>=0.11,<0.13"/"h11>=0.11"/g' setup.py +rm -rf %{pypi_name}.egg-info + +%generate_buildrequires +%pyproject_buildrequires + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files %{pypi_name} + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%license LICENSE.md + +%changelog +* Tue May 16 2023 Funda Wang - 0.15.0-1 +- Import package for anolis 23