2017-09-01 14:36:11 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-aiohttp
|
|
|
|
#
|
2019-01-15 16:33:00 +00:00
|
|
|
# Copyright (c) 2019 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.
|
|
|
|
|
2018-10-06 09:20:40 +00:00
|
|
|
# Please submit bugfixes or comments via https://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
|
2017-09-01 14:36:11 +00:00
|
|
|
Name: python-aiohttp
|
2019-09-13 12:09:42 +00:00
|
|
|
Version: 3.6.0
|
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-08-31 11:50:47 +00:00
|
|
|
URL: https://github.com/aio-libs/aiohttp
|
2017-09-01 14:36:11 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/a/aiohttp/aiohttp-%{version}.tar.gz
|
2019-09-18 08:19:42 +00:00
|
|
|
# PATCH-FIX-UPSTREAM aiohttp-3.6.0-fix-typeerror.patch
|
|
|
|
Patch0: aiohttp-3.6.0-fix-typeerror.patch
|
2019-01-15 16:33:00 +00:00
|
|
|
BuildRequires: %{python_module Cython}
|
2019-06-04 15:42:37 +00:00
|
|
|
BuildRequires: %{python_module async_timeout >= 3.0}
|
|
|
|
BuildRequires: %{python_module attrs >= 17.3.0}
|
|
|
|
BuildRequires: %{python_module chardet >= 2.0}
|
2018-08-31 11:50:47 +00:00
|
|
|
BuildRequires: %{python_module devel >= 3.5.3}
|
2019-09-18 08:19:42 +00:00
|
|
|
BuildRequires: %{python_module multidict >= 4.5}
|
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-08-31 11:50:47 +00:00
|
|
|
Requires: python >= 3.5.3
|
|
|
|
Requires: python-async_timeout >= 3.0
|
|
|
|
Requires: python-attrs >= 17.3.0
|
|
|
|
Requires: python-brotlipy
|
|
|
|
Requires: python-chardet >= 2.0
|
|
|
|
Requires: python-gunicorn
|
2019-09-18 08:19:42 +00:00
|
|
|
Requires: python-multidict >= 4.5
|
2019-06-04 15:02:58 +00:00
|
|
|
Requires: python-yarl >= 1.0
|
2018-04-14 06:45:33 +00:00
|
|
|
Recommends: python-aiodns
|
|
|
|
Recommends: python-cChardet
|
|
|
|
Suggests: %{name}-doc
|
2019-08-22 09:30:25 +00:00
|
|
|
%if 0%{?suse_version} < 1550
|
|
|
|
BuildRequires: %{python_module idna_ssl >= 1.0}
|
|
|
|
BuildRequires: %{python_module typing_extensions >= 3.6.5}
|
|
|
|
Requires: python-idna_ssl
|
|
|
|
Requires: python-typing_extensions
|
|
|
|
%endif
|
2017-09-08 17:35:05 +00:00
|
|
|
# SECTION test requirements
|
2018-03-23 16:04:53 +00:00
|
|
|
BuildRequires: %{python_module async_generator}
|
2018-08-31 10:50:36 +00:00
|
|
|
BuildRequires: %{python_module brotlipy}
|
2017-09-01 14:36:11 +00:00
|
|
|
BuildRequires: %{python_module gunicorn}
|
2017-12-06 09:27:11 +00:00
|
|
|
BuildRequires: %{python_module pluggy}
|
2019-02-27 14:32:14 +00:00
|
|
|
BuildRequires: %{python_module pytest-cov}
|
2017-09-11 15:42:42 +00:00
|
|
|
BuildRequires: %{python_module pytest-mock}
|
2018-06-25 09:08:20 +00:00
|
|
|
BuildRequires: %{python_module pytest-runner}
|
2017-09-08 17:35:05 +00:00
|
|
|
BuildRequires: %{python_module pytest-timeout}
|
2019-02-27 14:32:14 +00:00
|
|
|
BuildRequires: %{python_module pytest-xdist}
|
2017-09-01 14:36:11 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2019-02-27 14:32:14 +00:00
|
|
|
BuildRequires: %{python_module trustme}
|
2018-08-31 11:50:47 +00:00
|
|
|
BuildRequires: %{python_module yarl >= 1.0}
|
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}
|
2019-09-18 08:19:42 +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
|
|
|
|
|
|
|
%check
|
|
|
|
%python_exec setup.py test
|
|
|
|
|
|
|
|
%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
|