7
0

Compare commits

54 Commits

Author SHA256 Message Date
19a34995ac Accepting request 1291145 from devel:languages:python
- Add upstream event_loop.patch to fix tests with pytest-asyncio 1.0

OBS-URL: https://build.opensuse.org/request/show/1291145
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elasticsearch?expand=0&rev=22
2025-07-08 13:29:02 +00:00
60ab2816a6 Accepting request 1243050 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1243050
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elasticsearch?expand=0&rev=21
2025-02-04 17:11:09 +00:00
031b897d5c - Update to 8.17.1
* Make pyarrow dependency optional for tests (#2733, contributed by @danigm)
  * Update APIs:
    - Add Simulate ingest API
    - Add Get data stream lifecycle stats API
    - Add Update inference API
    - Add Create or update, Get and Delete IP geolocation
      database configuration APIs
    - Add Bulk update API keys
    - Add Get and Update Security index settings APIs
    - Add OpenID Connect prepare authentication, OpenID
      Connect authenticate and OpenID Connect logout APIs
    - Add Delegate PKI authentication API
    - Add Repository analysis API
    - Add Render Search Application Query API
    - Add Find field structure and Find messages structure APIs
    - Add Get Watcher index settings and Update Watcher index settings APIs
    - Add experimental Check in and Claim connector sync job APIs
    - Add experimental Set connector sync job errors and Set connector sync job stats APIs
    - Add experimental Update connector features APIs
    - Add experimental Post Event to an Analytics Collection API
    - Add timeout and master_timeout to Snapshot lifecycle management (SLM) APIs
    - Add allow_partial_search_results to SQL search API
    - Add throttle_period_in_millis to Create or update watch API
    - Fix query parameters for CAT APIs
- Drop 0001-Make-pyarrow-dependency-optional-for-tests.patch, merged upstream

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=52
2025-02-04 10:24:58 +00:00
e148dbfba4 Accepting request 1235853 from devel:languages:python
- Add patch to do not depend on pyarrow for tests: 0001-Make-pyarrow-dependency-optional-for-tests.patch
- Update to 8.17.0:
  * Allow simsimd again on Python 3.13 (#2722)
  * Update APIs:
    - Mark all Inference APIs as stable.
    - Add allow_partial_search_results to the Open Point in Time API
    - Add keep_alive to the Get async search status API
    - Remove the keep_alive, pre_filter_shard_size and scroll parameters from the Submit async search API. They were never supported.
    - Add master_timeout and timeout to all autoscaling policy APIs
    - Add master_timeout to the Alias exists and Get alias APIs
    - Add list_executed_pipelines and require_data_stream to Bulk API
    - Add include_model_definition to Get trained models API
    - Add meta to Create data frame analytics API
    - Add aggs to Create datafeeds API
    - Add allow_no_indices, expand_wildcards, ignore_throttled and ignore_unavailable to Create anomaly detection jobs API
- 8.16.0:
  * Support Python 3.13 (#2680)
  * Emit Python warnings for beta and tech preview APIs (#2675).
  * Vectorstore: use a retriever query for hybrid search (#2666)
  * Allow retries for statuses other than 429 in streaming bulk (#2071, contributed by @ayayron)
  * Make BulkIndexError and ScanError serializable (#2669, contributed by @seagrine)
  * Fix import when trace is missing from opentelemetry package (#2694, contributed by @nicoloboschi)
  * Update APIs:
    - Fix nodes parameter in Task management API (contributed by @margaretpearce)
    - Add Test query rule API
    - Add Create Cross-Cluster API key and Update Cross-Cluster API key APIs
    - Add experimental Verify snapshot repository API
    - Add data_stream_name and settings to Delete auto-follow pattern API
    - Add max_samples_per_key to Get async EQL status API
    - Add lifecycle and remove unused data_retention and downsampling parameters from Put data stream lifecycle API

OBS-URL: https://build.opensuse.org/request/show/1235853
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elasticsearch?expand=0&rev=20
2025-01-09 14:05:30 +00:00
82ef2db5fa - Add patch to do not depend on pyarrow for tests: 0001-Make-pyarrow-dependency-optional-for-tests.patch
- Update to 8.17.0:
  * Allow simsimd again on Python 3.13 (#2722)
  * Update APIs:
    - Mark all Inference APIs as stable.
    - Add allow_partial_search_results to the Open Point in Time API
    - Add keep_alive to the Get async search status API
    - Remove the keep_alive, pre_filter_shard_size and scroll parameters from the Submit async search API. They were never supported.
    - Add master_timeout and timeout to all autoscaling policy APIs
    - Add master_timeout to the Alias exists and Get alias APIs
    - Add list_executed_pipelines and require_data_stream to Bulk API
    - Add include_model_definition to Get trained models API
    - Add meta to Create data frame analytics API
    - Add aggs to Create datafeeds API
    - Add allow_no_indices, expand_wildcards, ignore_throttled and ignore_unavailable to Create anomaly detection jobs API
- 8.16.0:
  * Support Python 3.13 (#2680)
  * Emit Python warnings for beta and tech preview APIs (#2675).
  * Vectorstore: use a retriever query for hybrid search (#2666)
  * Allow retries for statuses other than 429 in streaming bulk (#2071, contributed by @ayayron)
  * Make BulkIndexError and ScanError serializable (#2669, contributed by @seagrine)
  * Fix import when trace is missing from opentelemetry package (#2694, contributed by @nicoloboschi)
  * Update APIs:
    - Fix nodes parameter in Task management API (contributed by @margaretpearce)
    - Add Test query rule API
    - Add Create Cross-Cluster API key and Update Cross-Cluster API key APIs
    - Add experimental Verify snapshot repository API
    - Add data_stream_name and settings to Delete auto-follow pattern API
    - Add max_samples_per_key to Get async EQL status API
    - Add lifecycle and remove unused data_retention and downsampling parameters from Put data stream lifecycle API

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=50
2025-01-08 08:59:52 +00:00
7b06cedc8a - Skip some flaky tests that fails in OBS build
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=49
2025-01-08 08:56:10 +00:00
63719e803d Accepting request 1140107 from devel:languages:python
- update to 8.12.0:
  * Dropped support for Python 3.6
  * Allowed unrestricted `body` parameter again (see #2383 for
    details)
  * Added the Inference APIs
  * Added the ES|QL API
  * Added `active_only` parameter to `security.get_api_key` API
  * Added `expiration` parameter to `security.update_api_key` API

OBS-URL: https://build.opensuse.org/request/show/1140107
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elasticsearch?expand=0&rev=19
2024-01-21 22:07:10 +00:00
54f6b8925f - update to 8.12.0:
* Dropped support for Python 3.6
  * Allowed unrestricted `body` parameter again (see #2383 for
    details)
  * Added the Inference APIs
  * Added the ES|QL API
  * Added `active_only` parameter to `security.get_api_key` API
  * Added `expiration` parameter to `security.update_api_key` API

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=47
2024-01-20 12:41:20 +00:00
ca5a4f264b Accepting request 1135258 from devel:languages:python
- update to 8.11.1:
  * Added missing `role_templates` to `security.put_role_mapping`
    API
  * Added interactive examples page to documentation
  * Changed API reference to have one page per sub-client

OBS-URL: https://build.opensuse.org/request/show/1135258
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elasticsearch?expand=0&rev=18
2023-12-28 21:54:37 +00:00
6ca24de3f1 - update to 8.11.1:
* Added missing `role_templates` to `security.put_role_mapping`
    API
  * Added interactive examples page to documentation
  * Changed API reference to have one page per sub-client

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=45
2023-12-27 10:03:32 +00:00
2b1cf8849e Accepting request 1129218 from devel:languages:python
- update to 8.11.0:
  * Added support for Python 3.12
  * Added missing `scores` parameter to create trained model
    vocabulary API
  * Added missing `delete_dest_index` parameter to delete
    transform API
  * Removed deprecation warnings when using `body` parameter
  * Fixed some type hints to use covariant Sequence instead of
    invariant List (#2324, #2325)

  * Using insecure SSL configuration (verify_cert=False) raises a
- fix Source url, use pypi package

OBS-URL: https://build.opensuse.org/request/show/1129218
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elasticsearch?expand=0&rev=17
2023-11-28 21:18:47 +00:00
368bb519f0 - update to 8.11.0:
* Added support for Python 3.12
  * Added missing `scores` parameter to create trained model
    vocabulary API
  * Added missing `delete_dest_index` parameter to delete
    transform API
  * Removed deprecation warnings when using `body` parameter
  * Fixed some type hints to use covariant Sequence instead of
    invariant List (#2324, #2325)
  * Using insecure SSL configuration (verify_cert=False) raises a
- fix Source url, use pypi package

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=43
2023-11-27 18:56:44 +00:00
ca96459bad Accepting request 1114802 from devel:languages:python
- update to 8.10.0:
  * Add the Query rules APIs
  * Add the Synonyms APIs

OBS-URL: https://build.opensuse.org/request/show/1114802
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elasticsearch?expand=0&rev=16
2023-10-03 18:15:19 +00:00
1f80f18dae - update to 8.10.0:
* Add the Query rules APIs
  * Add the Synonyms APIs

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=41
2023-10-02 10:28:21 +00:00
48f70f4b4b Accepting request 1109633 from devel:languages:python
- Update to 8.9.0:
  Number of changes is so large, that I suggest looking at it at
  https://www.elastic.co/guide/en/elasticsearch/client/python-api/master/release-notes.html.
- Remove upstreamed python-elasticsearch-no-nose.patch and
  python-elasticsearch-no-mock.patch.

- Remove upstreamed python-elasticsearch-no-mock.patch.

OBS-URL: https://build.opensuse.org/request/show/1109633
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elasticsearch?expand=0&rev=15
2023-09-10 11:09:38 +00:00
79f77589b9 - Remove upstreamed python-elasticsearch-no-nose.patch and
python-elasticsearch-no-mock.patch.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=39
2023-09-07 22:19:22 +00:00
6b71f6fdfb - Remove upstreamed python-elasticsearch-no-mock.patch.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=38
2023-09-07 22:18:57 +00:00
d2bdec8013 Accepting request 1108497 from home:mcepl:branches:devel:languages:python
- Update to 8.9.0:
  Number of changes is so large, that I suggest looking at it at
  https://www.elastic.co/guide/en/elasticsearch/client/python-api/master/release-notes.html.
- Remove upstreamed python-elasticsearch-no-nose.patch.

OBS-URL: https://build.opensuse.org/request/show/1108497
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=37
2023-09-01 17:03:10 +00:00
1c3afb46ac Accepting request 1081936 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1081936
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elasticsearch?expand=0&rev=14
2023-04-22 20:01:11 +00:00
3dccbfe4cf Accepting request 1081396 from home:dirkmueller:acdc:as_python3_module
SR for python stack proposal

OBS-URL: https://build.opensuse.org/request/show/1081396
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=35
2023-04-21 14:41:51 +00:00
320ed84ed5 Accepting request 1029713 from devel:languages:python
- Revert back to 7.6.0. elasticsearch-dsl is not compatible with
  8.* releases (gh#elastic/elasticsearch-dsl-py#1569).
- Add python-elasticsearch-no-nose.patch to replace sed call in
  SPEC file.

OBS-URL: https://build.opensuse.org/request/show/1029713
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elasticsearch?expand=0&rev=13
2022-10-19 11:17:15 +00:00
0d5b4ecd29 - Revert back to 7.6.0. elasticsearch-dsl is not compatible with
8.* releases (gh#elastic/elasticsearch-dsl-py#1569).
- Add python-elasticsearch-no-nose.patch to replace sed call in
  SPEC file.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=33
2022-10-18 10:09:23 +00:00
3bc84cdba5 Accepting request 1029684 from devel:languages:python
ok

OBS-URL: https://build.opensuse.org/request/show/1029684
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=32
2022-10-18 08:56:43 +00:00
ab26cb3ea0 Remove conditional
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=31
2022-10-17 21:19:14 +00:00
eccfced67d - Remove upstreamed python-elasticsearch-no-mock.patch.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=30
2022-10-17 21:17:57 +00:00
a0287c6372 - Update to 8.4.3:
- Client is compatible with Elasticsearch 8.4.3
  - Added the error_trace, filter_path, human and pretty
    parameters to the get_source API.
  - Added the ext parameter to the search API.
  - Added the ext parameter to the async_search.submit API.
  - Added the ext parameter to the fleet.search API.
  - Added the knn parameter to the search API.
  - Added the knn parameter to the async_search.submit API.
  - Added the cache_size parameter to the
    ml.start_trained_model_deployment API.
  - Added the security.update_api_key API.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=29
2022-10-17 21:17:30 +00:00
bb05159f9d Accepting request 998086 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/998086
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elasticsearch?expand=0&rev=12
2022-08-20 18:27:42 +00:00
390e993b19 Accepting request 998025 from home:bnavigator:branches:devel:languages:python
- Update to 8.3.3
    * Client is compatible with Elasticsearch 8.3.3
- Release 8.3.2
  + Security
    * Added the refresh parameter to the
      security.create_service_token API.
- Release 8.3.1
  + Security
    * Added the experimental security.has_privileges_user_profile
      API
    * Added the hint parameter to the experimental
      security.suggest_user_profiles API
- Release 8.3.0
    * Client is compatible with Elasticsearch 8.3.0
- Release 8.2.3
  + Documents
    * Added the routing parameter to the msearch API.
  + CAT
    * Added the cat.component_templates API.
  + Ingest
    * Added the if_version parameter to the ingest.put_pipeline
      API.
  + Security
    * Changed the name parameter for the
      security.create_service_token API from required to optional.
    * Added the refresh parameter to the
      security.create_service_token API.
    * Changed the name of access parameter to the labels parameter
      in the security.update_user_profile_data API.
  + Shutdown

OBS-URL: https://build.opensuse.org/request/show/998025
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=27
2022-08-19 06:46:08 +00:00
21057163dd Accepting request 978728 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/978728
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elasticsearch?expand=0&rev=11
2022-05-24 18:31:01 +00:00
109d524d87 Accepting request 978711 from home:pgajdos:python
- do not require python-mock for build
- added patches
  fix https://github.com/elastic/elasticsearch-py/issues/1983
  + python-elasticsearch-no-mock.patch

OBS-URL: https://build.opensuse.org/request/show/978711
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=25
2022-05-23 13:51:59 +00:00
6d4f78e463 Accepting request 827223 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/827223
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elasticsearch?expand=0&rev=10
2020-08-25 10:37:53 +00:00
Tomáš Chvátal
64a2e1896c Accepting request 827025 from home:jayvdb:py-submit
Replace nose with pytest

OBS-URL: https://build.opensuse.org/request/show/827025
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=23
2020-08-17 06:24:15 +00:00
9d724a71df Accepting request 791738 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/791738
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elasticsearch?expand=0&rev=9
2020-04-07 08:26:20 +00:00
Tomáš Chvátal
f7ec9f8f8e Accepting request 791736 from home:mcalabkova:branches:devel:languages:python
- Update to 7.6.0
  * Added support for ES 7.6 APIs
  * Added support for `X-Opaque-Id`_ to identify long-running tasks
  * Added support for HTTP compression to ``RequestsHttpConnection``
  * Updated default setting of ``http_compress`` when using ``cloud_id`` to ``True``
  * Updated default setting of ``sniffing`` when using ``cloud_id`` to ``False``
  * Updated default port to ``443`` if ``cloud_id`` and no other port is defined
    on the client or within ``cloud_id``
  * Fix regression of ``client.cluster.state()`` where the default ``metric``
    should be set to ``"_all"`` if an index is given (See `#1143`_)
  * Fix regression of ``client.tasks.get()`` without a ``task_id``
    having similar functionality to ``client.tasks.list()`` This will
    be removed in ``v8.0`` of ``elasticsearch-py`` (See `#1157`_)

OBS-URL: https://build.opensuse.org/request/show/791736
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=21
2020-04-06 11:05:49 +00:00
982501db3b Accepting request 781062 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/781062
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elasticsearch?expand=0&rev=8
2020-03-05 22:17:37 +00:00
b31fa2dc1d Accepting request 781011 from home:mcalabkova:branches:devel:languages:python
- Update to 7.5.1
  * All API is now auto generated
  * deprecated the .xpack namespace
  * Update client to support ES 7.5 APIs
  * Fix sniffing with http.publish_host
  * Fix request_timeout for indices APIs
  * Allow access to x-pack features without xpack namespace
  * Fix verify_certs=False

OBS-URL: https://build.opensuse.org/request/show/781011
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=19
2020-03-03 03:58:29 +00:00
0469c1dcb6 Accepting request 730628 from devel:languages:python
- Update to 7.0.4:
  * remove sleep in retries
  * pass scroll_id through body in scroll
  * add user-agent

OBS-URL: https://build.opensuse.org/request/show/730628
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elasticsearch?expand=0&rev=7
2019-09-17 11:36:17 +00:00
Tomáš Chvátal
716535bb0e - Update to 7.0.4:
* remove sleep in retries
  * pass scroll_id through body in scroll
  * add user-agent

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=17
2019-09-13 08:10:28 +00:00
616500aa0f Accepting request 708268 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/708268
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elasticsearch?expand=0&rev=6
2019-06-13 20:29:19 +00:00
Tomáš Chvátal
e8aabf1722 Accepting request 708266 from home:mcalabkova:branches:devel:languages:python
- update to 7.0.2
  * Add connection parameter for Elastic Cloud cloud_id
  * ML client uses client object for _bulk_body requests
  * Blocking pool must fit thread_count
  * Update client to support missing ES 7 API's and query params.
  * Removed deprecated option update_all_types
  * Using insecure SSL configuration (verify_cert=False) raises a 
    warning, this can be not showed with ssl_show_warn=False
  * Add support for 7.x api's in Elasticsearch

OBS-URL: https://build.opensuse.org/request/show/708266
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=15
2019-06-07 10:24:23 +00:00
e193f70bdb Accepting request 664361 from devel:languages:python
- update to 6.3.1:
  * Removed deprecated option ``update_all_types``.
  * Pass retry object instead of False in urllib3
  * Add support for `allow_partial_search_results`
  * Deprecate `update_all_types`
  * Add an exponential wait on delays
  * Fix issues with dependencies
  * Adding X-pack Docs
  * Adding forecast to x-pack ML client
  * cleanup for SSL Context
  * Add X-Pack clients to -py
  * Adding Gzip support for capacity constrained networks
  * ``_routing`` in bulk action has been deprecated in ES. Introduces a breaking change
    if you use ``routing`` as a field in your documents.
  * Updates to SSLContext logic to make it easier to use and have saner defaults.
  * Doc updates
  * bad release

OBS-URL: https://build.opensuse.org/request/show/664361
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elasticsearch?expand=0&rev=5
2019-01-11 13:05:24 +00:00
Thomas Bechtold
b890756a7a - update to 6.3.1:
* Removed deprecated option ``update_all_types``.
  * Pass retry object instead of False in urllib3
  * Add support for `allow_partial_search_results`
  * Deprecate `update_all_types`
  * Add an exponential wait on delays
  * Fix issues with dependencies
  * Adding X-pack Docs
  * Adding forecast to x-pack ML client
  * cleanup for SSL Context
  * Add X-Pack clients to -py
  * Adding Gzip support for capacity constrained networks
  * ``_routing`` in bulk action has been deprecated in ES. Introduces a breaking change
    if you use ``routing`` as a field in your documents.
  * Updates to SSLContext logic to make it easier to use and have saner defaults.
  * Doc updates
  * bad release

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=13
2019-01-10 13:21:16 +00:00
41fb8efd57 Accepting request 654031 from devel:languages:python
Remove superfluous devel dependency for noarch package

OBS-URL: https://build.opensuse.org/request/show/654031
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elasticsearch?expand=0&rev=4
2018-12-13 18:43:36 +00:00
7cbd6a66ee Remove superfluous devel dependency for noarch package
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=11
2018-12-04 13:25:14 +00:00
af98d10667 Accepting request 544888 from devel:languages:python
- fix Source url, use pypi package  

- Update to 6.0.0
  * compatibility with Elasticsearch 6.0.0

OBS-URL: https://build.opensuse.org/request/show/544888
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elasticsearch?expand=0&rev=3
2017-11-24 09:55:35 +00:00
f6052996c3 - fix Source url, use pypi package
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=9
2017-11-23 15:33:15 +00:00
7b8a4be95a Accepting request 544620 from home:kwk:branches:devel:languages:python
- Update to 6.0.0
  * compatibility with Elasticsearch 6.0.0

OBS-URL: https://build.opensuse.org/request/show/544620
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=8
2017-11-23 14:33:01 +00:00
384275f1a9 Accepting request 535242 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/535242
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elasticsearch?expand=0&rev=2
2017-10-20 12:47:05 +00:00
Todd R
6171293b45 Accepting request 535241 from home:TheBlackCat:branches:devel:languages:python
- Implement single-spec version
- Update to version 5.4.0
  * see changelog at https://github.com/elastic/elasticsearch-py/blob/5.4.0/Changelog.rst

OBS-URL: https://build.opensuse.org/request/show/535241
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=6
2017-10-19 14:12:29 +00:00
f3e3ca5de8 Accepting request 458502 from devel:languages:python
supersede 456645

OBS-URL: https://build.opensuse.org/request/show/458502
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elasticsearch?expand=0&rev=1
2017-03-02 18:25:36 +00:00
Todd R
657977c5ca Accepting request 457171 from home:jengelh:branches:devel:languages:python
- Remove hypothetical wording from description

OBS-URL: https://build.opensuse.org/request/show/457171
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=4
2017-02-14 21:44:20 +00:00
Thomas Bechtold
b861dc1d8b - update to 5.2.0:
* The client now automatically sends ``Content-Type`` http header set to
    ``application/json``. If you are explicitly passing in other encoding than
    ``json`` you need to set the header manually.
  * Fixed sniffing
  * Fixed performance regression in ``scan`` helper
  * when using SSL certificate validation is now on by default. Install
    ``certifi`` or supply root certificate bundle.
  * ``elasticsearch.trace`` logger now also logs failed requests, signature of
    internal logging method ``log_request_fail`` has changed, all custom
    connection classes need to be updated
  * added ``headers`` arg to connections to support custom http headers
  * passing in a keyword parameter with ``None`` as value will cause that param
    to be ignored

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=3
2017-02-13 08:49:48 +00:00
4a98197b58 - update to 2.4.0:
* increase default size for ``scan`` helper to 1000
  * added ``client_key`` argument to configure client certificates
  * debug logging now includes response body even for failed requests
  * Elasticsearch 2.0 compatibility release
  * removed thrift and memcached connections, if you wish to continue using
    those, extract the classes and use them separately.
  * added a new, parallel version of the bulk helper using thread pools
  * In helpers, removed ``bulk_index`` as an alias for ``bulk``. Use ``bulk``
    instead.
  * thrift now deprecated, to be removed in future version
  * make sure urllib3 always uses keep-alive

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=2
2017-01-19 23:38:00 +00:00
e58008edba Accepting request 304696 from home:tbechtold:branches:devel:languages:python
Initial packaging

OBS-URL: https://build.opensuse.org/request/show/304696
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=1
2015-04-29 13:22:16 +00:00
2 changed files with 0 additions and 196 deletions

View File

@@ -1,193 +0,0 @@
From 740005db4dcd732015606d86eff29eb15a0193b2 Mon Sep 17 00:00:00 2001
From: Daniel Garcia Moreno <daniel.garcia@suse.com>
Date: Wed, 8 Jan 2025 08:50:23 +0100
Subject: [PATCH] Make pyarrow dependency optional for tests
---
.../test_client/test_deprecated_options.py | 40 ++++++++-------
.../test_client/test_serializers.py | 49 ++++++++-----------
test_elasticsearch/test_serializer.py | 9 +++-
3 files changed, 48 insertions(+), 50 deletions(-)
diff --git a/test_elasticsearch/test_client/test_deprecated_options.py b/test_elasticsearch/test_client/test_deprecated_options.py
index 810e75cf..ea797ce8 100644
--- a/test_elasticsearch/test_client/test_deprecated_options.py
+++ b/test_elasticsearch/test_client/test_deprecated_options.py
@@ -22,6 +22,24 @@ import pytest
from elasticsearch import Elasticsearch, JsonSerializer
+EXPECTED_SERIALIZERS = {
+ "application/vnd.mapbox-vector-tile",
+ "application/x-ndjson",
+ "application/json",
+ "text/*",
+ "application/vnd.elasticsearch+json",
+ "application/vnd.elasticsearch+x-ndjson",
+}
+
+
+try:
+ import pyarrow as pa
+ EXPECTED_SERIALIZERS.add("application/vnd.apache.arrow.stream")
+except ImportError:
+ pa = None
+
+
+
def test_sniff_on_connection_fail():
with warnings.catch_warnings(record=True) as w:
client = Elasticsearch("http://localhost:9200", sniff_on_connection_fail=True)
@@ -129,15 +147,7 @@ def test_serializer_and_serializers():
client.transport.serializers.get_serializer("application/json"),
CustomSerializer,
)
- assert set(client.transport.serializers.serializers.keys()) == {
- "application/vnd.mapbox-vector-tile",
- "application/x-ndjson",
- "application/json",
- "text/*",
- "application/vnd.apache.arrow.stream",
- "application/vnd.elasticsearch+json",
- "application/vnd.elasticsearch+x-ndjson",
- }
+ assert set(client.transport.serializers.serializers.keys()) == EXPECTED_SERIALIZERS
client = Elasticsearch(
"http://localhost:9200",
@@ -150,13 +160,5 @@ def test_serializer_and_serializers():
client.transport.serializers.get_serializer("application/json"),
CustomSerializer,
)
- assert set(client.transport.serializers.serializers.keys()) == {
- "application/vnd.mapbox-vector-tile",
- "application/x-ndjson",
- "application/json",
- "text/*",
- "application/vnd.apache.arrow.stream",
- "application/vnd.elasticsearch+json",
- "application/vnd.elasticsearch+x-ndjson",
- "application/cbor",
- }
+ expected = EXPECTED_SERIALIZERS | {"application/cbor"}
+ assert set(client.transport.serializers.serializers.keys()) == expected
diff --git a/test_elasticsearch/test_client/test_serializers.py b/test_elasticsearch/test_client/test_serializers.py
index 9d13386e..4b18212d 100644
--- a/test_elasticsearch/test_client/test_serializers.py
+++ b/test_elasticsearch/test_client/test_serializers.py
@@ -21,6 +21,23 @@ from elasticsearch import Elasticsearch
from test_elasticsearch.test_cases import DummyTransportTestCase
+EXPECTED_SERIALIZERS = {
+ "application/json",
+ "text/*",
+ "application/x-ndjson",
+ "application/vnd.mapbox-vector-tile",
+ "application/vnd.elasticsearch+json",
+ "application/vnd.elasticsearch+x-ndjson",
+}
+
+
+try:
+ import pyarrow as pa
+ EXPECTED_SERIALIZERS.add("application/vnd.apache.arrow.stream")
+except ImportError:
+ pa = None
+
+
class TestSerializers(DummyTransportTestCase):
def test_compat_mode_on_by_default(self):
calls = self.client.transport.calls
@@ -90,16 +107,8 @@ class TestSerializers(DummyTransportTestCase):
"https://localhost:9200", serializers={f"application/{mime_subtype}": ser}
)
serializers = client.transport.serializers.serializers
- assert set(serializers.keys()) == {
- "application/json",
- "text/*",
- "application/x-ndjson",
- "application/vnd.apache.arrow.stream",
- "application/vnd.mapbox-vector-tile",
- "application/vnd.elasticsearch+json",
- "application/vnd.elasticsearch+x-ndjson",
- }
+ assert set(serializers.keys()) == EXPECTED_SERIALIZERS
assert serializers[f"application/{mime_subtype}"] is ser
assert serializers[f"application/vnd.elasticsearch+{mime_subtype}"] is ser
@@ -118,16 +127,7 @@ class TestSerializers(DummyTransportTestCase):
},
)
serializers = client.transport.serializers.serializers
- assert set(serializers.keys()) == {
- "application/json",
- "text/*",
- "application/x-ndjson",
- "application/vnd.apache.arrow.stream",
- "application/vnd.mapbox-vector-tile",
- "application/vnd.elasticsearch+json",
- "application/vnd.elasticsearch+x-ndjson",
- }
-
+ assert set(serializers.keys()) == EXPECTED_SERIALIZERS
assert serializers[f"application/{mime_subtype}"] is ser1
assert serializers[f"application/vnd.elasticsearch+{mime_subtype}"] is ser2
@@ -138,15 +138,6 @@ class TestSerializers(DummyTransportTestCase):
ser = CustomSerializer()
client = Elasticsearch("https://localhost:9200", serializer=ser)
serializers = client.transport.serializers.serializers
- assert set(serializers.keys()) == {
- "application/json",
- "text/*",
- "application/x-ndjson",
- "application/vnd.apache.arrow.stream",
- "application/vnd.mapbox-vector-tile",
- "application/vnd.elasticsearch+json",
- "application/vnd.elasticsearch+x-ndjson",
- }
-
+ assert set(serializers.keys()) == EXPECTED_SERIALIZERS
assert serializers["application/json"] is ser
assert serializers["application/vnd.elasticsearch+json"] is ser
diff --git a/test_elasticsearch/test_serializer.py b/test_elasticsearch/test_serializer.py
index 02723e8f..313029ba 100644
--- a/test_elasticsearch/test_serializer.py
+++ b/test_elasticsearch/test_serializer.py
@@ -19,9 +19,14 @@ import uuid
from datetime import datetime
from decimal import Decimal
-import pyarrow as pa
import pytest
+try:
+ import pyarrow as pa
+ from elasticsearch.serializer import PyArrowSerializer
+except ImportError:
+ pa = None
+
try:
import numpy as np
import pandas as pd
@@ -35,7 +40,6 @@ from elasticsearch.exceptions import SerializationError
from elasticsearch.serializer import (
JSONSerializer,
OrjsonSerializer,
- PyArrowSerializer,
TextSerializer,
)
@@ -163,6 +167,7 @@ def test_serializes_pandas_category(json_serializer):
assert b'{"d":[1,2,3]}' == json_serializer.dumps({"d": cat})
+@pytest.mark.skipif(pa is None, reason="Test requires pyarrow to be available")
def test_pyarrow_loads():
data = [
pa.array([1, 2, 3, 4]),
--
2.47.0

BIN
v8.17.0.tar.gz (Stored with Git LFS)

Binary file not shown.