2010-12-04 15:53:00 +00:00
|
|
|
#
|
2011-02-03 08:43:01 +00:00
|
|
|
# spec file for package python-eventlet
|
2010-12-04 15:53:00 +00:00
|
|
|
#
|
2024-01-19 08:55:02 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2010-12-04 15:53:00 +00:00
|
|
|
#
|
|
|
|
# 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
|
2011-09-02 11:41:27 +00:00
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
2010-12-04 15:53:00 +00:00
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
2011-09-05 15:03:51 +00:00
|
|
|
|
2018-12-04 13:26:03 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-09-02 11:41:27 +00:00
|
|
|
#
|
2010-12-04 15:53:00 +00:00
|
|
|
|
2011-09-05 15:03:51 +00:00
|
|
|
|
2023-04-21 14:41:31 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2010-12-04 15:53:00 +00:00
|
|
|
Name: python-eventlet
|
2024-06-06 08:43:37 +00:00
|
|
|
Version: 0.36.1
|
2012-11-23 11:00:07 +00:00
|
|
|
Release: 0
|
2017-09-06 07:26:00 +00:00
|
|
|
Summary: Concurrent networking library for Python
|
2010-12-04 15:53:00 +00:00
|
|
|
License: MIT
|
2011-09-02 11:41:27 +00:00
|
|
|
Group: Development/Languages/Python
|
2023-02-01 22:26:20 +00:00
|
|
|
URL: https://eventlet.net
|
2017-09-05 09:39:53 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/e/eventlet/eventlet-%{version}.tar.gz
|
2024-01-19 08:55:02 +00:00
|
|
|
BuildRequires: %{python_module hatch-vcs}
|
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module wheel}
|
2017-10-06 08:09:41 +00:00
|
|
|
BuildRequires: fdupes
|
2017-09-05 09:39:53 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2023-02-14 13:07:43 +00:00
|
|
|
Requires: netcfg
|
|
|
|
Requires: python-dnspython >= 1.15.0
|
2024-01-19 08:55:02 +00:00
|
|
|
Requires: python-greenlet >= 1.0
|
2023-02-14 13:07:43 +00:00
|
|
|
BuildArch: noarch
|
2021-03-24 21:32:46 +00:00
|
|
|
# SECTION TEST requirements
|
|
|
|
BuildRequires: %{python_module dnspython >= 1.15.0}
|
2024-01-19 08:55:02 +00:00
|
|
|
BuildRequires: %{python_module greenlet >= 1.0}
|
2021-03-24 21:32:46 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module testsuite}
|
2023-02-14 13:07:43 +00:00
|
|
|
# eventlet parses /etc/protocols which is not available in normal build envs
|
|
|
|
BuildRequires: netcfg
|
|
|
|
%if 0%{?suse_version} >= 1550
|
|
|
|
BuildRequires: %{python_module pyOpenSSL}
|
2020-12-08 23:59:29 +00:00
|
|
|
%endif
|
2023-02-14 13:07:43 +00:00
|
|
|
# /SECTION
|
2017-09-05 09:39:53 +00:00
|
|
|
%python_subpackages
|
2010-12-04 15:53:00 +00:00
|
|
|
|
|
|
|
%description
|
2017-09-06 07:26:00 +00:00
|
|
|
Eventlet is a concurrent networking library for Python that allows
|
|
|
|
changing how code is run.
|
2011-09-02 11:41:27 +00:00
|
|
|
|
2017-09-06 07:26:00 +00:00
|
|
|
It uses epoll or libevent for scalable non-blocking I/O. Coroutines
|
2011-09-02 11:41:27 +00:00
|
|
|
ensure that the developer uses a blocking style of programming that is similar
|
|
|
|
to threading, but provide the benefits of non-blocking I/O. The event dispatch
|
2017-09-06 07:26:00 +00:00
|
|
|
is implicit, which means Eventlet can be used from the Python
|
|
|
|
interpreter, or as part of a larger application.
|
2010-12-04 15:53:00 +00:00
|
|
|
|
|
|
|
%prep
|
2023-06-23 17:39:24 +00:00
|
|
|
%autosetup -p1 -n eventlet-%{version}
|
2020-08-13 16:09:43 +00:00
|
|
|
|
2010-12-04 15:53:00 +00:00
|
|
|
%build
|
2024-01-19 08:55:02 +00:00
|
|
|
%pyproject_wheel
|
2010-12-04 15:53:00 +00:00
|
|
|
|
|
|
|
%install
|
2024-01-19 08:55:02 +00:00
|
|
|
%pyproject_install
|
2018-12-06 13:26:54 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2010-12-04 15:53:00 +00:00
|
|
|
|
2019-06-07 12:27:52 +00:00
|
|
|
%check
|
2020-08-20 07:24:29 +00:00
|
|
|
# dnspython 1 and 2: backdoor tests fail with "take too long"
|
|
|
|
skiptests="(BackdoorTest and test_server)"
|
2023-02-16 22:16:24 +00:00
|
|
|
skiptests+=" or test_dns_methods_are_green or test_noraise_dns_tcp or test_clear"
|
2020-12-11 13:36:00 +00:00
|
|
|
# These are flaky inside the OBS environment
|
|
|
|
skiptests+=" or test_fork_after_monkey_patch or test_send_1k_req_rep or test_cpu_usage_after_bind"
|
2022-08-19 06:51:10 +00:00
|
|
|
# it is racy, see: https://lore.kernel.org/all/CADVnQy=AnJY9NZ3w_xNghEG80-DhsXL0r_vEtkr=dmz0ugcoVw@mail.gmail.com/ (bsc#1202188)
|
|
|
|
skiptests+=" or test_018b_http_10_keepalive_framing"
|
2023-06-23 20:14:23 +00:00
|
|
|
# gh#eventlet/eventlet#803
|
|
|
|
skiptests+=" or test_raise_dns_tcp"
|
2023-11-07 07:12:38 +00:00
|
|
|
# gh#eventlet/eventlet#821 bsc#1216858
|
|
|
|
skiptests+=" or test_full_duplex"
|
2020-08-20 07:24:29 +00:00
|
|
|
|
2021-12-21 23:36:25 +00:00
|
|
|
# https://github.com/eventlet/eventlet/issues/739
|
|
|
|
python310_skiptests+=" or test_017_ssl_zeroreturnerror"
|
2024-01-19 08:55:02 +00:00
|
|
|
%pytest -k "not ($skiptests ${$python_skiptests})" ${$python_pytest_param}
|
2019-06-07 12:27:52 +00:00
|
|
|
|
2017-09-05 09:39:53 +00:00
|
|
|
%files %{python_files}
|
2018-12-04 17:12:58 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc AUTHORS NEWS README.rst
|
2020-12-08 23:59:29 +00:00
|
|
|
%{python_sitelib}/eventlet
|
2024-01-19 08:55:02 +00:00
|
|
|
%{python_sitelib}/eventlet-%{version}.dist-info
|
2010-12-04 15:53:00 +00:00
|
|
|
|
|
|
|
%changelog
|