15
0
forked from pool/python-gevent
Files
python-gevent/python-gevent.spec
Todd R 79792536cf Accepting request 627916 from home:TheBlackCat:branches:devel:languages:python
- Update to 1.3.5
  * Update the bundled libuv from 1.20.1 to 1.22.0.
  * Test Python 3.7 on Appveyor. Fix the handling of Popen's
    ``close_fds`` argument on 3.7.
  * Update Python versions tested on Travis, including PyPy to 6.0. See :issue:`1195`.
  * :mod:`gevent.queue` imports ``_PySimpleQueue`` instead of
    ``SimpleQueue`` so that it doesn't block the event loop.
    :func:`gevent.monkey.patch_all` makes this same substitution in
    :mod:`queue`. This fixes issues with
    :class:`concurrent.futures.ThreadPoolExecutor` as well. Reported in
    :issue:`1248` by wwqgtxx and :issue:`1251` by pyld.
  * :meth:`gevent.socket.socket.connect` doesn't pass the port (service)
    to :func:`socket.getaddrinfo` when it resolves an ``AF_INET`` or
    ``AF_INET6`` address. (The standard library doesn't either.) This
    fixes an issue on Solaris. Reported in :issue:`1252` by wiggin15.
  * :meth:`gevent.socket.socket.connect` works with more address
    families, notably AF_TIPC, AF_NETLINK, AF_BLUETOOTH, AF_ALG and AF_VSOCK.
- Update to 1.3.4
  * Be more careful about issuing ``MonkeyPatchWarning`` for ssl
    imports. Now, we only issue it if we detect the one specific
    condition that is known to lead to RecursionError. This may produce
    false negatives, but should reduce or eliminate false positives.
  * Based on measurements and discussion in :issue:`1233`, adjust the
    way :mod:`gevent.pywsgi` generates HTTP chunks. This is intended to
    reduce network overhead, especially for smaller chunk sizes.
  * Additional slight performance improvements in :mod:`gevent.pywsgi`.
    See :pr:`1241`.

OBS-URL: https://build.opensuse.org/request/show/627916
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gevent?expand=0&rev=42
2018-08-07 15:23:30 +00:00

101 lines
3.1 KiB
RPMSpec

#
# spec file for package python-gevent
#
# Copyright (c) 2018 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/
#
# Tests require network connection
%bcond_with tests
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-gevent
Version: 1.3.5
Release: 0
Summary: Python network library that uses greenlet and libevent
License: MIT
Group: Development/Languages/Python
Url: http://www.gevent.org/
Source: https://files.pythonhosted.org/packages/source/g/gevent/gevent-%{version}.tar.gz
Source100: %{name}-rpmlintrc
BuildRequires: %{python_module cffi}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module greenlet}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if %{with tests}
BuildRequires: %{python_module nose}
%endif
Requires: python-cffi
Requires: python-greenlet
Recommends: python-psutil
%python_subpackages
%description
Gevent is a Python networking library that uses greenlet to provide synchronous
API on top of a libevent event loop. Features include:
* Fast event loop based on libevent.
* Lightweight execution units based on greenlet.
* Familiar API that re-uses concepts from the Python standard library.
* Cooperative sockets with ssl support.
* DNS queries performed through libevent-dns.
* Ability to use standard library and 3rd party modules written for standard
blocking sockets
* Fast WSGI server based on libevent-http.
gevent is inspired by eventlet but features more consistent API, simpler
implementation and better performance. Read why others use gevent and check
out the list of the open source projects based on gevent.
%package -n python-gevent-doc
Summary: Documentation for %{name}
Group: Documentation/Other
Provides: %{python_module gevent-doc = %{version}}
%description -n python-gevent-doc
Documentation and examples for %{name}.
%prep
%setup -q -n gevent-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%if %{with tests}
%check
pushd src/greentest
export GEVENT_RESOLVER=thread
%python_exec testrunner.py --config known_failures.py
popd
%endif
%files %{python_files}
%doc AUTHORS README.rst TODO CHANGES.rst CONTRIBUTING.rst
%license LICENSE*
%{python_sitearch}/gevent-%{version}-py*.egg-info
%{python_sitearch}/gevent/
%files -n python-gevent-doc
%license LICENSE*
%doc examples/
%changelog