Sync from SUSE:SLFO:Main python-elastic-transport revision 66bb0e522ef91d398f8c751378fa090d
This commit is contained in:
commit
cf6893deba
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
BIN
elastic-transport-python-8.4.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
elastic-transport-python-8.4.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
35
python-elastic-transport.changes
Normal file
35
python-elastic-transport.changes
Normal file
@ -0,0 +1,35 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 9 12:00:12 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
- Update python-urllib3 minimum requirement to build with latest
|
||||
python-urllib3
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 21 12:24:34 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- add sle15_python_module_pythons (jsc#PED-68)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 13 22:41:03 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Make calling of %{sle15modernpython} optional.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 5 12:09:29 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
- Disable broken test with latest urllib3 release
|
||||
gh#elastic/elastic-transport-python#96
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 27 19:15:33 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
|
||||
|
||||
- Update to 8.4.0
|
||||
* Added method for clients to use default ports for URL scheme.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 18 16:43:36 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Initial specfile for v8.3.3
|
||||
- This library was lifted from elasticsearch-py and then
|
||||
transformed to be used across all Elastic services rather than
|
||||
only Elasticsearch.
|
82
python-elastic-transport.spec
Normal file
82
python-elastic-transport.spec
Normal file
@ -0,0 +1,82 @@
|
||||
#
|
||||
# spec file for package python-elastic-transport
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define skip_python2 1
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-elastic-transport
|
||||
Version: 8.4.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
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-certifi
|
||||
# Removed upper limit to work with urllib3 >= 2.0.0 -- gh#elastic/elastic-transport-python#102
|
||||
Requires: (python-urllib3 >= 1.26.2)
|
||||
BuildArch: noarch
|
||||
%if 0%{python_version_nodots} < 37
|
||||
Requires: python-dataclasses
|
||||
%endif
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module aiohttp}
|
||||
BuildRequires: %{python_module certifi}
|
||||
BuildRequires: %{python_module dataclasses if %python-base < 3.7}
|
||||
BuildRequires: %{python_module pytest-asyncio}
|
||||
BuildRequires: %{python_module pytest-httpserver}
|
||||
BuildRequires: %{python_module pytest-mock}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module requests}
|
||||
BuildRequires: %{python_module trustme}
|
||||
BuildRequires: %{python_module urllib3 >= 1.26.2}
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Transport classes and utilities shared among Python Elastic client libraries
|
||||
|
||||
%prep
|
||||
%setup -q -n elastic-transport-python-%{version}
|
||||
sed -i '/addopts/d' setup.cfg
|
||||
sed -i 's/from mock/from unittest.mock/' tests/node/test_http_*.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
# these tests fail without proper name resolution or online connection to httpbin.org and badssl.com
|
||||
donttest="(test_http_aiohttp and not TestAiohttpHttpNode)"
|
||||
donttest="$donttest or test_tls_versions"
|
||||
donttest="$donttest or test_assert_fingerprint_in_cert_chain"
|
||||
# gh#elastic/elastic-transport-python#96
|
||||
donttest="$donttest or test_url_to_node_config[https://[::1]:0/-https://[::1]:0-]"
|
||||
%pytest -k "not ($donttest)"
|
||||
|
||||
%files %{python_files}
|
||||
%doc CHANGELOG.md README.md
|
||||
%license LICENSE
|
||||
%{python_sitelib}/elastic_transport
|
||||
%{python_sitelib}/elastic_transport-%{version}*-info
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user