14
0
Files
python-eventlet/python-eventlet.spec
Dirk Mueller e5ead3256f Accepting request 532100 from home:tbechtold:branches:devel:languages:python
- update to 0.21.0:
  * New timeout error API: .is_timeout=True on exception object
    It's now easy to test if network error is transient and retry is
    appropriate.
    Please spread the word and invite other libraries to support this interface.
  * hubs: use monotonic clock by default (bundled package);
  * dns: EVENTLET_NO_GREENDNS option is back, green is still default
  * dns: hosts file was consulted after nameservers
  * ssl: RecursionError on Python3.6+;
  * wsgi: log_output=False was not disabling startup and accepted messages
  * greenio: Fixed OSError: [WinError 10038] Socket operation on nonsocket
  * dns: EAI_NODATA was removed from RFC3493 and FreeBSD
  * green.select: fix mark_as_closed() wrong number of args
  * green.zmq: socket.{recv,send}_* signatures did not match recent
    upstream pyzmq
  * New feature: Add zipkin tracing to eventlet
  * db_pool: proxy Connection.set_isolation_level()
  * green.zmq: support RCVTIMEO (receive timeout)
  * green.profile: Python3 compatibility; Thanks to Artur Stawiarski
  * support: upgrade bundled six to 1.10 (dbfbfc818e3d)
  * python3.6: http.client.request support chunked_encoding
- Use fdupes

OBS-URL: https://build.opensuse.org/request/show/532100
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-eventlet?expand=0&rev=39
2017-10-06 08:09:41 +00:00

84 lines
2.8 KiB
RPMSpec

#
# spec file for package python-eventlet
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-eventlet
Version: 0.21.0
Release: 0
Summary: Concurrent networking library for Python
License: MIT
Group: Development/Languages/Python
Url: http://eventlet.net
Source: https://files.pythonhosted.org/packages/source/e/eventlet/eventlet-%{version}.tar.gz
BuildRequires: %{python_module Sphinx}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module greenlet}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if %python_version_nodots < 34
Requires: python-enum34
%endif
Requires: python-greenlet >= 0.3
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages
%description
Eventlet is a concurrent networking library for Python that allows
changing how code is run.
It uses epoll or libevent for scalable non-blocking I/O. Coroutines
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
is implicit, which means Eventlet can be used from the Python
interpreter, or as part of a larger application.
%package doc
Summary: Documentation for the Eventlet concurrent networking library
Group: Development/Libraries/Python
Requires: %{name} = %{version}
%description doc
Documentation for Eventlet, which is a concurrent networking library
for Python that allows changing how code is run.
%prep
%setup -q -n eventlet-%{version}
sed -i '/enum_compat/d' setup.py # crude way to drop the strange "enum-compat" requirement
sed -i "s|^#!.*||" eventlet/support/greendns.py # Fix non-executable script
%build
%python_build
%python_exec setup.py build_sphinx && rm build/sphinx/html/.buildinfo
%install
%python_install
%fdupes %{buildroot}%{_prefix}
%files %{python_files}
%defattr(-,root,root,-)
%doc AUTHORS LICENSE NEWS README.rst
%{python_sitelib}/*
%files %{python_files doc}
%defattr(-,root,root,-)
%doc build/sphinx/html examples
%changelog