15
0

15 Commits

Author SHA256 Message Date
ed637fd1e5 Accepting request 1325510 from devel:languages:python
- Add missing BuildRequires on requests.

OBS-URL: https://build.opensuse.org/request/show/1325510
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elastic-transport?expand=0&rev=19
2026-01-07 15:00:28 +00:00
5309a436bb - Add missing BuildRequires on requests.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elastic-transport?expand=0&rev=40
2026-01-06 01:43:57 +00:00
40e12afa63 Accepting request 1319107 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1319107
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elastic-transport?expand=0&rev=18
2025-11-24 13:05:21 +00:00
fb0d43b8fc - Update to 9.2.0
* Update OpenTelemetry conventions
  * Support Trio when using the httpx async client
  * Add Python 3.14 to CI builds, and remove 3.8 and 3.9
- Drop no-longer-needed fixture-scope.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elastic-transport?expand=0&rev=38
2025-11-21 13:06:42 +00:00
758aa02199 Accepting request 1304838 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1304838
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elastic-transport?expand=0&rev=17
2025-09-17 14:37:02 +00:00
3f82f173c8 - Add fixture-scope.patch to fix tests with pytest-asyncio 1.2.0
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elastic-transport?expand=0&rev=36
2025-09-15 14:07:18 +00:00
848d7064f5 Accepting request 1267658 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1267658
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elastic-transport?expand=0&rev=16
2025-04-08 15:51:05 +00:00
1c907c21cf - Update to 8.17.1
* Ensure compatibility with httpx v0.28.0+ (#222)
  * Add missing NOTICE file (#229)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elastic-transport?expand=0&rev=34
2025-04-07 12:19:31 +00:00
b7148d4956 Accepting request 1236129 from devel:languages:python
- 8.17.0: 
  * Fix use of SSLContext with sniffing (#199)
  * Fix enabled_cleanup_closed warning (#202)
  * Remove unneeded install requirement (#196)

OBS-URL: https://build.opensuse.org/request/show/1236129
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elastic-transport?expand=0&rev=15
2025-01-09 14:05:52 +00:00
4625967833 - skip some flaky tests
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elastic-transport?expand=0&rev=32
2025-01-09 09:41:57 +00:00
a641cf0efa - 8.17.0:
* Fix use of SSLContext with sniffing (#199)
  * Fix enabled_cleanup_closed warning (#202)
  * Remove unneeded install requirement (#196)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elastic-transport?expand=0&rev=31
2025-01-08 09:46:09 +00:00
aaa0660beb Accepting request 1230777 from devel:languages:python
Forwarded request #1230637 from bnavigator

- Update test runs: pytest 8 is supported, httpx 0.28 creates
    problems

OBS-URL: https://build.opensuse.org/request/show/1230777
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elastic-transport?expand=0&rev=14
2024-12-13 21:33:13 +00:00
09291839a3 Accepting request 1230637 from home:bnavigator:branches:devel:languages:python
- Update test runs: pytest 8 is supported, httpx 0.28 creates
  problems

OBS-URL: https://build.opensuse.org/request/show/1230637
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elastic-transport?expand=0&rev=29
2024-12-13 10:45:12 +00:00
7df337b9b2 Accepting request 1228532 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1228532
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elastic-transport?expand=0&rev=13
2024-12-06 13:25:17 +00:00
3318949a91 - drop remove-mock.patch, it's part of upstream now.
- Update to 8.15.1
  * Add explicit Python 3.13 support (#189)
- 8.15.0:
  * Removed call to raise_for_status() when using HttpxAsyncHttpNode
    to prevent exceptions being raised for 404 responses (#182)
  * Documented response classes (#175)
  * Dropped support for Python 3.7 (#179)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elastic-transport?expand=0&rev=27
2024-12-05 14:00:15 +00:00
5 changed files with 62 additions and 76 deletions

Binary file not shown.

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:98a47630facd0f5a36208a8f177bcda950465b6a940b4d896e4b6dcb6a621bf8
size 78196

View File

@@ -1,3 +1,55 @@
-------------------------------------------------------------------
Tue Jan 6 01:43:24 UTC 2026 - Steve Kowalik <steven.kowalik@suse.com>
- Add missing BuildRequires on requests.
-------------------------------------------------------------------
Thu Nov 20 07:55:44 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Update to 9.2.0
* Update OpenTelemetry conventions
* Support Trio when using the httpx async client
* Add Python 3.14 to CI builds, and remove 3.8 and 3.9
- Drop no-longer-needed fixture-scope.patch
-------------------------------------------------------------------
Mon Sep 15 10:56:19 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Add fixture-scope.patch to fix tests with pytest-asyncio 1.2.0
-------------------------------------------------------------------
Mon Apr 7 10:55:06 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 8.17.1
* Ensure compatibility with httpx v0.28.0+ (#222)
* Add missing NOTICE file (#229)
-------------------------------------------------------------------
Wed Jan 8 09:45:07 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
- 8.17.0:
* Fix use of SSLContext with sniffing (#199)
* Fix enabled_cleanup_closed warning (#202)
* Remove unneeded install requirement (#196)
-------------------------------------------------------------------
Thu Dec 12 15:56:05 UTC 2024 - Ben Greiner <code@bnavigator.de>
- Update test runs: pytest 8 is supported, httpx 0.28 creates
problems
-------------------------------------------------------------------
Thu Dec 5 10:45:51 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
- drop remove-mock.patch, it's part of upstream now.
- Update to 8.15.1
* Add explicit Python 3.13 support (#189)
- 8.15.0:
* Removed call to raise_for_status() when using HttpxAsyncHttpNode
to prevent exceptions being raised for 404 responses (#182)
* Documented response classes (#175)
* Dropped support for Python 3.7 (#179)
-------------------------------------------------------------------
Fri Jun 21 07:55:47 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-elastic-transport
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2026 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,14 +18,12 @@
%{?sle15_python_module_pythons}
Name: python-elastic-transport
Version: 8.13.1
Version: 9.2.0
Release: 0
Summary: Transport classes and utilities shared among Python Elastic client libraries
License: Apache-2.0
URL: https://github.com/elastic/elastic-transport-python
Source: https://github.com/elastic/elastic-transport-python/archive/refs/tags/v%{version}.tar.gz#/elastic-transport-python-%{version}.tar.gz
# PATCH-FIX-UPSTREAM gh#elastic/elastic-transport-python#163
Patch1: remove-mock.patch
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
@@ -33,21 +31,23 @@ BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-certifi
Requires: python-sniffio
Requires: python-urllib3
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module aiohttp}
BuildRequires: %{python_module certifi}
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-httpbin}
BuildRequires: %{python_module pytest-httpserver}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest-trio}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module respx}
BuildRequires: %{python_module sniffio}
BuildRequires: %{python_module trustme}
BuildRequires: %{python_module urllib3}
# /SECTION
@@ -72,14 +72,7 @@ sed -i '/addopts/d' setup.cfg
donttest="(test_http_aiohttp and not TestAiohttpHttpNode)"
donttest="$donttest or test_tls_versions"
donttest="$donttest or test_assert_fingerprint_in_cert_chain"
donttest="$donttest or (test_ssl_assert_fingerprint and httpx)"
# gh#elastic/elastic-transport-python#96
donttest="$donttest or test_url_to_node_config[https://[::1]:0/-https://[::1]:0-]"
# pytest 8.x failures
donttest="$donttest or test_sniff_before_requests"
donttest="$donttest or test_sniff_on_node_failure"
donttest="$donttest or test_sniffed_nodes_added_to_pool"
%pytest -k "not ($donttest)"
%pytest -W ignore::DeprecationWarning -k "not ($donttest)"
%files %{python_files}
%doc CHANGELOG.md README.md

View File

@@ -1,59 +0,0 @@
From 20d207e59f17f9539af12626e2f832f9ad094025 Mon Sep 17 00:00:00 2001
From: Steve Kowalik <steven@wedontsleep.org>
Date: Mon, 20 May 2024 11:51:43 +1000
Subject: [PATCH] Remove last uses of mock
The node tests still relied on the external mock library for mocking,
whereas other tests have transitioned to unittest.mock. Since we support
Python 3.7 and greater, we can remove that requirement and pull them in
line too.
---
setup.py | 1 -
tests/node/test_http_requests.py | 2 +-
tests/node/test_http_urllib3.py | 2 +-
3 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/setup.py b/setup.py
index c145012..17370a7 100644
--- a/setup.py
+++ b/setup.py
@@ -63,7 +63,6 @@
"pytest-asyncio",
"pytest-httpserver",
"trustme",
- "mock",
"requests",
"aiohttp",
"httpx",
diff --git a/tests/node/test_http_requests.py b/tests/node/test_http_requests.py
index 2ff7bc0..3a99854 100644
--- a/tests/node/test_http_requests.py
+++ b/tests/node/test_http_requests.py
@@ -18,10 +18,10 @@
import gzip
import ssl
import warnings
+from unittest.mock import Mock, patch
import pytest
import requests
-from mock import Mock, patch
from requests.auth import HTTPBasicAuth
from elastic_transport import NodeConfig, RequestsHttpNode
diff --git a/tests/node/test_http_urllib3.py b/tests/node/test_http_urllib3.py
index fad11e7..25bd920 100644
--- a/tests/node/test_http_urllib3.py
+++ b/tests/node/test_http_urllib3.py
@@ -19,10 +19,10 @@
import re
import ssl
import warnings
+from unittest.mock import Mock, patch
import pytest
import urllib3
-from mock import Mock, patch
from urllib3.response import HTTPHeaderDict
from elastic_transport import NodeConfig, TransportError, Urllib3HttpNode