From 0124eb2719d61810590388a613ecfeb53aff2b8c2102122648783c7284f52a30 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 20 Jul 2022 16:54:32 +0000 Subject: [PATCH] Accepting request 990282 from home:bnavigator:branches:devel:languages:python - Update to 0.15.0 * Drop Python 3.6 support (#535) * Ensure HTTP proxy CONNECT requests include timeout configuration. (#506) * Switch to explicit typing.Optional for type hints (#513) * For trio map OSError exceptions to ConnectError (#543) - Fix forgotten test package dep drops -- gh#encode/httpcore#473 OBS-URL: https://build.opensuse.org/request/show/990282 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httpcore?expand=0&rev=13 --- httpcore-0.14.7.tar.gz | 3 --- httpcore-0.15.0.tar.gz | 3 +++ python-httpcore.changes | 11 +++++++++++ python-httpcore.spec | 37 +++++++++++++------------------------ 4 files changed, 27 insertions(+), 27 deletions(-) delete mode 100644 httpcore-0.14.7.tar.gz create mode 100644 httpcore-0.15.0.tar.gz diff --git a/httpcore-0.14.7.tar.gz b/httpcore-0.14.7.tar.gz deleted file mode 100644 index cf36fd4..0000000 --- a/httpcore-0.14.7.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7f5736b3d1a2382d3b137c8f77d19229f3742789447ef1c1a55bb95918c02277 -size 75844 diff --git a/httpcore-0.15.0.tar.gz b/httpcore-0.15.0.tar.gz new file mode 100644 index 0000000..16c15c9 --- /dev/null +++ b/httpcore-0.15.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e5458b6342fb6a0cdd58b86c1336516b90ad8879dedc24a9667f9fdf7b4081ea +size 76220 diff --git a/python-httpcore.changes b/python-httpcore.changes index d1baef7..f850695 100644 --- a/python-httpcore.changes +++ b/python-httpcore.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Tue Jul 19 15:31:11 UTC 2022 - Ben Greiner + +- Update to 0.15.0 + * Drop Python 3.6 support (#535) + * Ensure HTTP proxy CONNECT requests include timeout + configuration. (#506) + * Switch to explicit typing.Optional for type hints (#513) + * For trio map OSError exceptions to ConnectError (#543) +- Fix forgotten test package dep drops -- gh#encode/httpcore#473 + ------------------------------------------------------------------- Mon Feb 21 10:54:40 UTC 2022 - Michael Ströder diff --git a/python-httpcore.spec b/python-httpcore.spec index c34296c..e14b1d1 100644 --- a/python-httpcore.spec +++ b/python-httpcore.spec @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python3-%{**}} %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "test" %define psuffix -test @@ -25,46 +24,35 @@ %define psuffix %{nil} %bcond_with test %endif -%define skip_python2 1 + Name: python-httpcore%{psuffix} -Version: 0.14.7 +Version: 0.15.0 Release: 0 Summary: Minimal low-level Python HTTP client License: BSD-3-Clause URL: https://github.com/encode/httpcore Source: https://github.com/encode/httpcore/archive/%{version}.tar.gz#/httpcore-%{version}.tar.gz +BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-anyio >= 3.1.0 +Requires: python-anyio >= 3 Requires: python-certifi -Requires: python-chardet >= 3.0 Requires: python-h11 >= 0.11.0 -Requires: python-idna >= 2.0 -Requires: python-rfc3986 >= 1.0 Requires: python-sniffio >= 1.0 Recommends: python-h2 >= 3.0 +Recommends: python-socksio >= 1.0 BuildArch: noarch # SECTION test requirements %if %{with test} -BuildRequires: %{python_module anyio >= 3.1.0} -BuildRequires: %{python_module certifi} -BuildRequires: %{python_module chardet >= 3.0} -BuildRequires: %{python_module h11 >= 0.11.0} +BuildRequires: %{python_module Werkzeug} BuildRequires: %{python_module h2 >= 3.0} -BuildRequires: %{python_module idna >= 2.0} -BuildRequires: %{python_module mitmproxy} -BuildRequires: %{python_module pproxy >= 2.7.8} -BuildRequires: %{python_module pytest >= 6.2.4} -BuildRequires: %{python_module pytest-asyncio >= 0.15.1} -BuildRequires: %{python_module pytest-curio} +BuildRequires: %{python_module httpcore = %{version}} +BuildRequires: %{python_module pytest >= 7.0.1} +BuildRequires: %{python_module pytest-asyncio >= 0.16.0} BuildRequires: %{python_module pytest-httpbin} -BuildRequires: %{python_module pytest-tornasync} BuildRequires: %{python_module pytest-trio >= 0.7.0} -BuildRequires: %{python_module pytest-twisted} -BuildRequires: %{python_module rfc3986 >= 1.0} -BuildRequires: %{python_module trustme >= 0.7.0} -BuildRequires: %{python_module uvicorn >= 0.12.1} +BuildRequires: %{python_module trio >= 0.19.0} %endif # /SECTION %python_subpackages @@ -91,14 +79,15 @@ Python minimal low-level HTTP client. # tests/async_tests + tests/sync_tests causes open file limit # socks5 -- we don't ship socksio %if %{with test} -%pytest -rs -k 'not (test_interfaces or test_no_retries or test_retries or test_threadsafe_basic or socks5)' +%pytest -rs -k 'not (test_interfaces or test_no_retries or test_retries or test_threadsafe_basic or socks5)' --asyncio-mode=strict %endif %if !%{with test} %files %{python_files} %doc README.md %license LICENSE.md -%{python_sitelib}/* +%{python_sitelib}/httpcore +%{python_sitelib}/httpcore-%{version}*-info %endif %changelog