From 7848ff2bbb54dae2d0e4642cb3cc05e50a9cf1f0 Mon Sep 17 00:00:00 2001 From: rdobuilder Date: Sep 27 2022 09:22:08 +0000 Subject: Update to 0.15.0 Related-to: https://review.rdoproject.org/r/q/Ib6f070589b103abe7143088aaccd42f0030b1c3f --- diff --git a/.python-httpcore.metadata b/.python-httpcore.metadata index 61372dd..25f7173 100644 --- a/.python-httpcore.metadata +++ b/.python-httpcore.metadata @@ -1 +1 @@ -9df79b8b3a719598280d6ba8863210c1e920e5e4 SOURCES/httpcore-0.14.7.tar.gz +ab023b948105bfbf75d7d4b7798d57bef80b1696 SOURCES/httpcore-0.15.0.tar.gz diff --git a/SPECS/python-httpcore.spec b/SPECS/python-httpcore.spec index 46e86a7..040e6e9 100644 --- a/SPECS/python-httpcore.spec +++ b/SPECS/python-httpcore.spec @@ -1,5 +1,5 @@ ## START: Set by rpmautospec -## (rpmautospec version 0.2.5) +## (rpmautospec version 0.2.6) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); @@ -8,20 +8,19 @@ ## END: Set by rpmautospec %global pypi_name httpcore -%{?python_disable_dependency_generator} + +%if %{defined fedora} +%bcond_without tests +%endif Name: python-%{pypi_name} -Version: 0.14.7 +Version: 0.15.0 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 @@ -37,13 +36,9 @@ 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) +%if %{with tests} +BuildRequires: %{py3_dist pytest pytest-asyncio pytest-httpbin pytest-trio} +%endif %description -n python3-%{pypi_name} The HTTP Core package provides a minimal low-level HTTP client, which does @@ -52,12 +47,13 @@ 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 +%autosetup -n %{pypi_name}-%{version} +sed -i -e 's/"h11>=0.11,<0.13"/"h11>=0.11"/g' setup.py sed -i '/anyio==.*/d' requirements.txt setup.py rm -rf %{pypi_name}.egg-info %generate_buildrequires -%pyproject_buildrequires -r +%pyproject_buildrequires %{?with_tests:-x http2,socks} %build %pyproject_wheel @@ -66,11 +62,34 @@ rm -rf %{pypi_name}.egg-info %pyproject_install %pyproject_save_files %{pypi_name} +%check +%if %{with tests} +%pytest +%endif + %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE.md %doc README.md %changelog +* Thu Sep 15 2022 Fabian Affolter 0.15.0-1 +- Update to latest upstream release 0.15.0 (closes rhbz#2087171) + +* Fri Jul 22 2022 Fedora Release Engineering 0.14.7-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Tue Jun 14 2022 Python Maint 0.14.7-5 +- Rebuilt for Python 3.11 + +* Tue Jun 14 2022 Python Maint 0.14.7-4 +- Bootstrap for Python 3.11 + +* Wed Mar 16 2022 Carl George 0.14.7-3 +- Add missing conditional to go with last commit + +* Sat Mar 05 2022 Carl George 0.14.7-2 +- Conditionalize tests and clean up test build requirements + * Fri Mar 04 2022 Fabian Affolter 0.14.7-1 - Update to latest upstream release 0.14.7 (closes rhbz#2037405) @@ -90,7 +109,8 @@ rm -rf %{pypi_name}.egg-info - 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 +- * Thu Aug 26 2021 Fabian Affolter - 0.13.6-1 - + Update to latest upstream release 0.13.6 (rhbz#1952056) * Fri Jul 23 2021 Fedora Release Engineering 0.12.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild @@ -99,7 +119,8 @@ rm -rf %{pypi_name}.egg-info - 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 +- * Fri Jan 29 2021 Fabian Affolter - 0.12.3-1 - + Update to latest upstream release 0.12.2 (#1921813) * Wed Jan 27 2021 Fedora Release Engineering 0.12.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild @@ -108,25 +129,31 @@ rm -rf %{pypi_name}.egg-info - Add bugs to changelog * Mon Nov 23 2020 Fabian Affolter 0.12.2-1 -- * Mon Nov 23 2020 Fabian Affolter - 0.12.2-1 +- * Mon Nov 23 2020 Fabian Affolter - 0.12.2-1 - + Enable dependency generator - Update to latest upstream release 0.12.2 * Sun Nov 08 2020 Fabian Affolter 0.12.1-1 -- * Sun Nov 08 2020 Fabian Affolter - 0.16.0-2 +- * Sun Nov 08 2020 Fabian Affolter - 0.16.0-2 - + Add LICENSE file (#1885754) * 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.1-1 - + Update to latest upstream release 0.11.1 (#1883308) * Wed Sep 23 2020 Fabian Affolter 0.11.0-1 -- * Wed Sep 23 2020 Fabian Affolter - 0.11.0-1 +- * Wed Sep 23 2020 Fabian Affolter - 0.11.0-1 - + Update to latest upstream release 0.11.0 (#1881374) * Thu Sep 03 2020 Fabian Affolter 0.10.2-1 -- * Thu Sep 03 2020 Fabian Affolter - 0.10.2-1 +- * Thu Sep 03 2020 Fabian Affolter - 0.10.2-1 - + Update to latest upstream release 0.10.2 (rhbz#1875285) * 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 +- * Fri Jun 05 2020 Fabian Affolter - 0.9.1-1 - + Initial package for Fedora