2017-09-01 14:36:11 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-aiohttp
|
|
|
|
#
|
2018-02-17 19:07:09 +00:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2017-09-01 14:36:11 +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
|
|
|
|
# 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/
|
2017-09-11 15:42:42 +00:00
|
|
|
#
|
2017-09-01 14:36:11 +00:00
|
|
|
|
|
|
|
|
2017-09-22 13:51:34 +00:00
|
|
|
%{?!python_module:%define python_module() python3-%{**}}
|
2017-09-08 17:35:05 +00:00
|
|
|
%define skip_python2 1
|
2018-04-14 06:45:33 +00:00
|
|
|
%bcond_without test
|
2017-09-01 14:36:11 +00:00
|
|
|
Name: python-aiohttp
|
2018-04-14 19:19:47 +00:00
|
|
|
Version: 3.1.3
|
2017-09-01 14:36:11 +00:00
|
|
|
Release: 0
|
2017-09-11 15:42:42 +00:00
|
|
|
Summary: Asynchronous HTTP client/server framework
|
2017-09-01 14:36:11 +00:00
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Languages/Python
|
2018-04-14 19:19:47 +00:00
|
|
|
URL: https://aiohttp.readthedocs.io/
|
2017-09-01 14:36:11 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/a/aiohttp/aiohttp-%{version}.tar.gz
|
2018-02-17 19:07:09 +00:00
|
|
|
# PATCH-FIX-OPENSUSE alarrosa@suse.com -- Fix failing tests due to issue in pytest-timeout
|
|
|
|
Patch0: remove-failing-tests-due-to-pytest-timeout-issues.patch
|
2017-09-08 17:35:05 +00:00
|
|
|
BuildRequires: %{python_module devel >= 3.4.2}
|
2017-09-01 14:36:11 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2018-04-14 06:45:33 +00:00
|
|
|
BuildRequires: fdupes
|
2017-09-11 15:42:42 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2018-04-14 06:45:33 +00:00
|
|
|
Requires: python >= 3.4.2
|
|
|
|
Requires: python-async_timeout >= 2.0.0
|
|
|
|
Requires: python-attrs
|
|
|
|
Requires: python-chardet
|
|
|
|
Requires: python-idna_ssl >= 1.0.0
|
|
|
|
Requires: python-multidict >= 3.3.0
|
|
|
|
Requires: python-yarl >= 0.13.0
|
|
|
|
Recommends: python-aiodns
|
|
|
|
Recommends: python-cChardet
|
|
|
|
Suggests: %{name}-doc
|
2017-09-08 17:35:05 +00:00
|
|
|
# SECTION test requirements
|
2017-09-01 14:36:11 +00:00
|
|
|
%if %{with test}
|
2018-03-23 16:04:53 +00:00
|
|
|
BuildRequires: %{python_module async_generator}
|
2017-11-10 11:40:22 +00:00
|
|
|
BuildRequires: %{python_module async_timeout >= 2.0.0}
|
2017-09-01 14:36:11 +00:00
|
|
|
BuildRequires: %{python_module chardet}
|
|
|
|
BuildRequires: %{python_module gunicorn}
|
2018-02-17 19:07:09 +00:00
|
|
|
BuildRequires: %{python_module idna_ssl >= 1.0.0}
|
2017-11-10 11:40:22 +00:00
|
|
|
BuildRequires: %{python_module multidict >= 3.3.0}
|
2017-12-06 09:27:11 +00:00
|
|
|
BuildRequires: %{python_module pluggy}
|
2017-09-11 15:42:42 +00:00
|
|
|
BuildRequires: %{python_module pytest-mock}
|
2017-09-08 17:35:05 +00:00
|
|
|
BuildRequires: %{python_module pytest-timeout}
|
2017-09-01 14:36:11 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2017-11-10 11:40:22 +00:00
|
|
|
BuildRequires: %{python_module yarl >= 0.13.0}
|
2017-09-01 14:36:11 +00:00
|
|
|
%endif
|
2017-09-08 17:35:05 +00:00
|
|
|
# /SECTION
|
|
|
|
# SECTION docs
|
2017-12-10 14:58:23 +00:00
|
|
|
BuildRequires: %{python_module MarkupSafe}
|
2018-02-17 19:07:09 +00:00
|
|
|
BuildRequires: python3-Pygments >= 2.1
|
2017-09-08 17:35:05 +00:00
|
|
|
BuildRequires: python3-Sphinx
|
2018-02-17 19:07:09 +00:00
|
|
|
BuildRequires: python3-aiohttp-theme
|
2017-09-08 17:35:05 +00:00
|
|
|
BuildRequires: python3-sphinxcontrib-asyncio
|
2018-03-23 16:04:53 +00:00
|
|
|
BuildRequires: python3-sphinxcontrib-blockdiag
|
2017-09-08 17:35:05 +00:00
|
|
|
BuildRequires: python3-sphinxcontrib-newsfeed
|
|
|
|
# /SECTION
|
2017-09-01 14:36:11 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
2017-09-08 17:35:05 +00:00
|
|
|
%package -n %{name}-doc
|
2018-04-14 06:45:33 +00:00
|
|
|
Summary: Documentation files for %{name}
|
2017-09-08 17:35:05 +00:00
|
|
|
Group: Documentation/HTML
|
|
|
|
|
2017-09-01 14:36:11 +00:00
|
|
|
%description
|
2017-09-11 15:42:42 +00:00
|
|
|
Asynchronous HTTP client/server framework for Python.
|
2017-09-08 17:35:05 +00:00
|
|
|
|
2017-09-11 15:42:42 +00:00
|
|
|
- Supports both the client and server side of HTTP protocol.
|
|
|
|
- Supports both client and server WebSockets out-of-the-box.
|
|
|
|
- Web-server has middleware and pluggable routing.
|
2017-09-08 17:35:05 +00:00
|
|
|
|
|
|
|
%description -n %{name}-doc
|
2018-04-14 06:45:33 +00:00
|
|
|
HTML documentation on the API and examples for %{name}.
|
2017-09-01 14:36:11 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n aiohttp-%{version}
|
2018-02-17 19:07:09 +00:00
|
|
|
%patch0 -p1
|
2017-09-01 14:36:11 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
%python_build
|
2017-09-08 17:35:05 +00:00
|
|
|
pushd docs
|
2018-04-14 06:45:33 +00:00
|
|
|
make %{?_smp_mflags} html
|
2017-09-08 17:35:05 +00:00
|
|
|
rm _build/html/.buildinfo
|
|
|
|
popd
|
2017-09-01 14:36:11 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
2017-09-08 17:35:05 +00:00
|
|
|
%{python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
find %{buildroot}%{$python_sitearch} -name "*.c" -delete
|
|
|
|
}
|
2017-09-01 14:36:11 +00:00
|
|
|
|
|
|
|
%if %{with test}
|
|
|
|
%check
|
2018-02-17 19:07:09 +00:00
|
|
|
rm tests/test_pytest_plugin.py
|
2017-09-01 14:36:11 +00:00
|
|
|
%python_exec setup.py test
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files %{python_files}
|
2018-04-14 06:45:33 +00:00
|
|
|
%license LICENSE.txt
|
|
|
|
%doc CHANGES.rst CONTRIBUTORS.txt HISTORY.rst README.rst
|
2017-09-01 14:36:11 +00:00
|
|
|
%{python_sitearch}/*
|
|
|
|
|
2017-09-08 17:35:05 +00:00
|
|
|
%files -n %{name}-doc
|
|
|
|
%doc docs/_build/html
|
|
|
|
|
2017-09-01 14:36:11 +00:00
|
|
|
%changelog
|