diff --git a/.python-httpcore.metadata b/.python-httpcore.metadata new file mode 100644 index 0000000..61372dd --- /dev/null +++ b/.python-httpcore.metadata @@ -0,0 +1 @@ +9df79b8b3a719598280d6ba8863210c1e920e5e4 SOURCES/httpcore-0.14.7.tar.gz diff --git a/SOURCES/0001-Relax-h11-dependency.patch b/SOURCES/0001-Relax-h11-dependency.patch new file mode 100644 index 0000000..56168ae --- /dev/null +++ b/SOURCES/0001-Relax-h11-dependency.patch @@ -0,0 +1,33 @@ +From 96824724ce615f852700ae5c7aeb84cac9bbaaf3 Mon Sep 17 00:00:00 2001 +From: Carl George +Date: Wed, 2 Mar 2022 22:08:06 -0600 +Subject: [PATCH] Relax h11 dependency + +--- + setup.py | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/setup.py b/setup.py +index 9bfc613..4ec6f8d 100644 +--- a/setup.py ++++ b/setup.py +@@ -54,7 +54,7 @@ setup( + include_package_data=True, + zip_safe=False, + install_requires=[ +- "h11>=0.11,<0.13", ++ "h11>=0.11,<0.14", + "sniffio==1.*", + "anyio==3.*", + "certifi", +@@ -73,7 +73,6 @@ setup( + "Framework :: AsyncIO", + "Framework :: Trio", + "Programming Language :: Python :: 3", +- "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", +-- +2.35.1 + diff --git a/SOURCES/README.md b/SOURCES/README.md new file mode 100644 index 0000000..3d733d4 --- /dev/null +++ b/SOURCES/README.md @@ -0,0 +1,3 @@ +# python-httpcore + +The python-httpcore package \ No newline at end of file diff --git a/SPECS/python-httpcore.spec b/SPECS/python-httpcore.spec new file mode 100644 index 0000000..46e86a7 --- /dev/null +++ b/SPECS/python-httpcore.spec @@ -0,0 +1,132 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.2.5) +%define autorelease(e:s:pb:) %{?-p:0.}%{lua: + release_number = 1; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} +## END: Set by rpmautospec + +%global pypi_name httpcore +%{?python_disable_dependency_generator} + +Name: python-%{pypi_name} +Version: 0.14.7 +Release: %autorelease +Summary: Minimal low-level HTTP client + +License: BSD +URL: https://github.com/encode/httpcore +# pypi source doesn't contain tests +# Source0: %%{pypi_source %%{pypi_name}} +Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz +# https://github.com/encode/httpcore/pull/503 +Patch: 0001-Relax-h11-dependency.patch +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 +BuildRequires: pyproject-rpm-macros + +BuildRequires: python3dist(pytest) +BuildRequires: python3dist(pytest-asyncio) +BuildRequires: python3dist(pytest-httpbin) +BuildRequires: python3dist(pytest-trio) +BuildRequires: python3dist(h2) +BuildRequires: python3dist(socksio) +BuildRequires: python3dist(trustme) + +%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} -p 1 +sed -i '/anyio==.*/d' requirements.txt setup.py +rm -rf %{pypi_name}.egg-info + +%generate_buildrequires +%pyproject_buildrequires -r + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files %{pypi_name} + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%license LICENSE.md +%doc README.md + +%changelog +* Fri Mar 04 2022 Fabian Affolter 0.14.7-1 +- Update to latest upstream release 0.14.7 (closes rhbz#2037405) + +* Thu Mar 03 2022 Carl George 0.14.3-3 +- Relax h11 dependency + +* Fri Jan 21 2022 Fedora Release Engineering 0.14.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Tue Dec 07 2021 Michel Alexandre Salim 0.14.3-1 +- Update to latest upstream release 0.14.3 (closes rhbz#2022391) + +* Tue Dec 07 2021 Michel Alexandre Salim 0.13.7-2 +- Enable tests + +* Tue Sep 21 2021 Fabian Affolter 0.13.7-1 +- Update to latest upstream release 0.13.7 (closes rhbz#2003602) + +* Thu Aug 26 2021 Fabian Affolter 0.13.6-1 +- * Thu Aug 26 2021 Fabian Affolter - 0.13.6-1 + +* Fri Jul 23 2021 Fedora Release Engineering 0.12.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jun 04 2021 Python Maint 0.12.3-2 +- Rebuilt for Python 3.10 + +* Fri Jan 29 2021 Fabian Affolter 0.12.3-1 +- * Fri Jan 29 2021 Fabian Affolter - 0.12.3-1 + +* Wed Jan 27 2021 Fedora Release Engineering 0.12.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Mon Nov 23 2020 Fabian Affolter 0.12.2-2 +- Add bugs to changelog + +* Mon Nov 23 2020 Fabian Affolter 0.12.2-1 +- * Mon Nov 23 2020 Fabian Affolter - 0.12.2-1 + +* Sun Nov 08 2020 Fabian Affolter 0.12.1-1 +- * Sun Nov 08 2020 Fabian Affolter - 0.16.0-2 + +* Fri Oct 09 2020 Itamar Reis Peixoto 0.12.0-1 +- 0.12.0 + +* Tue Sep 29 2020 Fabian Affolter 0.11.1-1 +- * Wed Sep 23 2020 Fabian Affolter - 0.11.1-1 + +* Wed Sep 23 2020 Fabian Affolter 0.11.0-1 +- * Wed Sep 23 2020 Fabian Affolter - 0.11.0-1 + +* Thu Sep 03 2020 Fabian Affolter 0.10.2-1 +- * Thu Sep 03 2020 Fabian Affolter - 0.10.2-1 + +* Wed Jul 29 2020 Fedora Release Engineering 0.9.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sat Jun 27 2020 Fabian Affolter 0.9.1-1 +- * Fri Jun 05 2020 Fabian Affolter - 0.9.1-1