Accepting request 1174871 from home:mcalabkova:branches:devel:languages:python:pytest

- update to 8.13.0
  * Support the HTTPX client with asyncio
  * Added optional orjson serializer support

OBS-URL: https://build.opensuse.org/request/show/1174871
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elastic-transport?expand=0&rev=18
This commit is contained in:
Steve Kowalik 2024-05-20 01:37:27 +00:00 committed by Git OBS Bridge
parent b0d4060cc1
commit 7e7a038be2
4 changed files with 17 additions and 8 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:604bd1cc5f7161596dac3ca0ace70c2510c8bd21ca3f631b8ac422316deb3bfa
size 72207

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:56f52c45254bb73f64336a4b59e097702517f0603036559ac56b5a92782e0fda
size 75950

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri May 17 13:29:03 UTC 2024 - Markéta Machová <mmachova@suse.com>
- update to 8.13.0
* Support the HTTPX client with asyncio
* Added optional orjson serializer support
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Jan 20 14:03:15 UTC 2024 - Dirk Müller <dmueller@suse.com> Sat Jan 20 14:03:15 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@ -18,7 +18,7 @@
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-elastic-transport Name: python-elastic-transport
Version: 8.12.0 Version: 8.13.0
Release: 0 Release: 0
Summary: Transport classes and utilities shared among Python Elastic client libraries Summary: Transport classes and utilities shared among Python Elastic client libraries
License: Apache-2.0 License: Apache-2.0
@ -31,18 +31,19 @@ BuildRequires: python-rpm-macros
Requires: python-certifi Requires: python-certifi
Requires: python-urllib3 Requires: python-urllib3
BuildArch: noarch BuildArch: noarch
%if 0%{python_version_nodots} < 37
Requires: python-dataclasses
%endif
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module aiohttp} BuildRequires: %{python_module aiohttp}
BuildRequires: %{python_module certifi} BuildRequires: %{python_module certifi}
BuildRequires: %{python_module dataclasses if %python-base < 3.7} BuildRequires: %{python_module httpx}
BuildRequires: %{python_module opentelemetry-api}
BuildRequires: %{python_module opentelemetry-sdk}
BuildRequires: %{python_module orjson}
BuildRequires: %{python_module pytest-asyncio} BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module pytest-httpserver} BuildRequires: %{python_module pytest-httpserver}
BuildRequires: %{python_module pytest-mock} BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests} BuildRequires: %{python_module requests}
BuildRequires: %{python_module respx}
BuildRequires: %{python_module trustme} BuildRequires: %{python_module trustme}
BuildRequires: %{python_module urllib3} BuildRequires: %{python_module urllib3}
# /SECTION # /SECTION
@ -68,6 +69,7 @@ sed -i 's/from mock/from unittest.mock/' tests/node/test_http_*.py
donttest="(test_http_aiohttp and not TestAiohttpHttpNode)" donttest="(test_http_aiohttp and not TestAiohttpHttpNode)"
donttest="$donttest or test_tls_versions" donttest="$donttest or test_tls_versions"
donttest="$donttest or test_assert_fingerprint_in_cert_chain" donttest="$donttest or test_assert_fingerprint_in_cert_chain"
donttest="$donttest or (test_ssl_assert_fingerprint and httpx)"
# gh#elastic/elastic-transport-python#96 # gh#elastic/elastic-transport-python#96
donttest="$donttest or test_url_to_node_config[https://[::1]:0/-https://[::1]:0-]" donttest="$donttest or test_url_to_node_config[https://[::1]:0/-https://[::1]:0-]"
%pytest -k "not ($donttest)" %pytest -k "not ($donttest)"