Compare commits

...

30 Commits

Author SHA256 Message Date
Ana Guerrero
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
Ana Guerrero
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
Ana Guerrero
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
Ana Guerrero
972da2f2d1 Accepting request 1182049 from devel:languages:python
- Skip some failing tests with pytest 8.x.

OBS-URL: https://build.opensuse.org/request/show/1182049
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elastic-transport?expand=0&rev=12
2024-06-21 14:02:45 +00:00
Steve Kowalik
009687a281 - Skip some failing tests with pytest 8.x.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elastic-transport?expand=0&rev=25
2024-06-21 07:56:07 +00:00
Ana Guerrero
834fdec1fd Accepting request 1179344 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1179344
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elastic-transport?expand=0&rev=11
2024-06-09 18:18:42 +00:00
d5e293a593 Accepting request 1178988 from home:mcalabkova:branches:devel:languages:python
- Update to 8.13.1
  * Fixed requests 2.32 compatibility
  * Fixed TypeError when two nodes are declared dead at the same time
  * Added TransportApiResponse
- Drop merged requests232.patch

OBS-URL: https://build.opensuse.org/request/show/1178988
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elastic-transport?expand=0&rev=23
2024-06-07 17:16:29 +00:00
Ana Guerrero
fd53d68fe2 Accepting request 1177005 from devel:languages:python
- Switch to pyproject macros.
- Require pytest 8 or greater.
- Add patch remove-mock.patch:
  * Remove requirement on mock, now as a patch, rather than sed.

OBS-URL: https://build.opensuse.org/request/show/1177005
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elastic-transport?expand=0&rev=10
2024-06-04 10:50:27 +00:00
Steve Kowalik
e1d0cafab6 - Switch to pyproject macros.
- Require pytest 8 or greater.
- Add patch remove-mock.patch:
  * Remove requirement on mock, now as a patch, rather than sed.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elastic-transport?expand=0&rev=21
2024-05-27 04:25:16 +00:00
Ana Guerrero
c17d0d9585 Accepting request 1176152 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1176152
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elastic-transport?expand=0&rev=9
2024-05-24 17:50:02 +00:00
2dcbde1a2b Accepting request 1176037 from home:mcalabkova:branches:devel:languages:python
- Add requests232.patch to fix compatibility with new requests

OBS-URL: https://build.opensuse.org/request/show/1176037
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elastic-transport?expand=0&rev=19
2024-05-23 08:49:58 +00:00
Steve Kowalik
7e7a038be2 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
2024-05-20 01:37:27 +00:00
Ana Guerrero
235a887777 Accepting request 1140133 from devel:languages:python
- update to 8.12.0:
  * Fix basic auth built from percent-encoded URLs

OBS-URL: https://build.opensuse.org/request/show/1140133
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elastic-transport?expand=0&rev=8
2024-01-21 22:07:15 +00:00
b0d4060cc1 - update to 8.12.0:
* Fix basic auth built from percent-encoded URLs

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elastic-transport?expand=0&rev=16
2024-01-20 14:03:28 +00:00
Ana Guerrero
0f601f3b61 Accepting request 1133054 from devel:languages:python
- update to 8.11.0:
  * Always set default HTTPS port to 443
  * Drop support for Python 3.6
  * Include tests in sdist
  * Fix `__iter__` return type to Iterator

OBS-URL: https://build.opensuse.org/request/show/1133054
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elastic-transport?expand=0&rev=7
2023-12-15 20:46:50 +00:00
b9cc0dd8a8 - update to 8.11.0:
* Always set default HTTPS port to 443
  * Drop support for Python 3.6
  * Include tests in sdist
  * Fix `__iter__` return type to Iterator

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elastic-transport?expand=0&rev=14
2023-12-14 10:21:39 +00:00
Ana Guerrero
d0b25983d2 Accepting request 1130493 from devel:languages:python
- update to 8.10.0:
  * Support urllib3 2.x in addition to urllib3 1.26.x (#121)
  * Add 409 to `NOT_DEAD_NODE_HTTP_STATUSES` (#120)
  * Fixed an issue where a large number of consecutive failures
    to connect to a node would raise an `OverflowError`.
  * Fixed an issue to ensure that `ApiResponse` can be pickled.

  gh#elastic/elastic-transport-python#96
  * Added method for clients to use default ports for URL scheme.

OBS-URL: https://build.opensuse.org/request/show/1130493
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elastic-transport?expand=0&rev=6
2023-12-04 21:59:22 +00:00
9c80c7d004 - update to 8.10.0:
* Support urllib3 2.x in addition to urllib3 1.26.x (#121)
  * Add 409 to `NOT_DEAD_NODE_HTTP_STATUSES` (#120)
  * Fixed an issue where a large number of consecutive failures
    to connect to a node would raise an `OverflowError`.
  * Fixed an issue to ensure that `ApiResponse` can be pickled.
  gh#elastic/elastic-transport-python#96
  * Added method for clients to use default ports for URL scheme.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elastic-transport?expand=0&rev=12
2023-12-02 17:08:19 +00:00
928250c886 Accepting request 1085695 from devel:languages:python
- Update python-urllib3 minimum requirement to build with latest
  python-urllib3

OBS-URL: https://build.opensuse.org/request/show/1085695
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elastic-transport?expand=0&rev=5
2023-05-10 14:16:40 +00:00
cea5b15144 - Add comment before the requirements change
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elastic-transport?expand=0&rev=10
2023-05-09 12:04:01 +00:00
4437532dc1 - Update python-urllib3 minimum requirement to build with latest
python-urllib3

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elastic-transport?expand=0&rev=9
2023-05-09 12:01:34 +00:00
5029a3f289 Accepting request 1081938 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1081938
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elastic-transport?expand=0&rev=4
2023-04-22 20:01:13 +00:00
534fb48e1b Accepting request 1081395 from home:dirkmueller:acdc:as_python3_module
SR for python stack proposal

OBS-URL: https://build.opensuse.org/request/show/1081395
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elastic-transport?expand=0&rev=7
2023-04-21 14:42:15 +00:00
75de5c88ee Accepting request 1040249 from devel:languages:python
- Disable broken test with latest urllib3 release
  gh#elastic/elastic-transport-python#96

OBS-URL: https://build.opensuse.org/request/show/1040249
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elastic-transport?expand=0&rev=3
2022-12-07 16:33:44 +00:00
081360dd61 - Disable broken test with latest urllib3 release
gh#elastic/elastic-transport-python#96

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elastic-transport?expand=0&rev=5
2022-12-05 12:10:28 +00:00
74455d58e5 Accepting request 1006512 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1006512
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elastic-transport?expand=0&rev=2
2022-10-01 15:42:14 +00:00
bd04ec12be Accepting request 1006508 from home:yarunachalam:branches:devel:languages:python
- Update to 8.4.0
  * Added method for clients to use default ports for URL scheme.

OBS-URL: https://build.opensuse.org/request/show/1006508
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elastic-transport?expand=0&rev=3
2022-09-27 19:36:19 +00:00
6c7dfed040 Accepting request 998087 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/998087
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elastic-transport?expand=0&rev=1
2022-08-19 15:56:27 +00:00
5c811d817a Accepting request 998022 from home:bnavigator:branches:devel:languages:python
- This library was lifted from elasticsearch-py and then
  transformed to be used across all Elastic services rather than
  only Elasticsearch.

OBS-URL: https://build.opensuse.org/request/show/998022
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elastic-transport?expand=0&rev=1
2022-08-19 06:46:26 +00:00
2 changed files with 0 additions and 62 deletions

BIN
elastic-transport-python-8.13.1.tar.gz (Stored with Git LFS)

Binary file not shown.

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