diff --git a/httpcore-0.17.3.tar.gz b/httpcore-0.17.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..25cd5d56c7747a26df465d93590b3fa338b39d13 Binary files /dev/null and b/httpcore-0.17.3.tar.gz differ diff --git a/python-httpcore.spec b/python-httpcore.spec new file mode 100644 index 0000000000000000000000000000000000000000..7d3de45346471f9b7995d7ca9d73ddbd4db71e01 --- /dev/null +++ b/python-httpcore.spec @@ -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 - 0.17.3-1 +- Initial package.