2017-09-01 16:36:11 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-aiohttp
|
|
|
|
#
|
2018-02-17 20:07:09 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2017-09-01 16:36:11 +02: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 11:20:40 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-09-11 17:42:42 +02:00
|
|
|
#
|
2017-09-01 16:36:11 +02:00
|
|
|
|
|
|
|
|
2017-09-22 15:51:34 +02:00
|
|
|
%{?!python_module:%define python_module() python3-%{**}}
|
2017-09-08 19:35:05 +02:00
|
|
|
%define skip_python2 1
|
2017-09-01 16:36:11 +02:00
|
|
|
Name: python-aiohttp
|
2018-10-06 11:20:40 +02:00
|
|
|
Version: 3.4.4
|
2017-09-01 16:36:11 +02:00
|
|
|
Release: 0
|
2017-09-11 17:42:42 +02:00
|
|
|
Summary: Asynchronous HTTP client/server framework
|
2017-09-01 16:36:11 +02:00
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Languages/Python
|
2018-08-31 13:50:47 +02:00
|
|
|
URL: https://github.com/aio-libs/aiohttp
|
2017-09-01 16:36:11 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/a/aiohttp/aiohttp-%{version}.tar.gz
|
2018-10-06 11:20:40 +02:00
|
|
|
# PATCH-FIX-UPSTREAM mcepl@suse.com -- Fix failing tests due to invalid escapes in regexps
|
|
|
|
# https://github.com/aio-libs/aiohttp/issues/3325
|
|
|
|
Patch0: invalid-escapes-in-tests.patch
|
2018-11-20 17:36:19 +01:00
|
|
|
# PATCH-FIX-UPSTREAM glaubitz@suse.com -- Fix failing test due to naming conflict with pytest fixtures
|
|
|
|
# https://github.com/aio-libs/aiohttp/issues/3392
|
|
|
|
Patch1: rename-request-fixture.patch
|
2018-10-06 11:32:20 +02:00
|
|
|
BuildRequires: %{python_module Cython >= 0.28.4}
|
2018-08-31 13:50:47 +02:00
|
|
|
BuildRequires: %{python_module devel >= 3.5.3}
|
2017-09-01 16:36:11 +02:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2018-04-14 08:45:33 +02:00
|
|
|
BuildRequires: fdupes
|
2017-09-11 17:42:42 +02:00
|
|
|
BuildRequires: python-rpm-macros
|
2018-08-31 13:50:47 +02: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
|
2018-04-14 08:45:33 +02:00
|
|
|
Requires: python-idna_ssl >= 1.0.0
|
2018-08-31 13:50:47 +02:00
|
|
|
Requires: python-multidict >= 4.0
|
|
|
|
Requires: python-yarl >= 1.0
|
2018-04-14 08:45:33 +02:00
|
|
|
Recommends: python-aiodns
|
|
|
|
Recommends: python-cChardet
|
|
|
|
Suggests: %{name}-doc
|
2017-09-08 19:35:05 +02:00
|
|
|
# SECTION test requirements
|
2018-03-23 17:04:53 +01:00
|
|
|
BuildRequires: %{python_module async_generator}
|
2018-08-31 13:50:47 +02:00
|
|
|
BuildRequires: %{python_module async_timeout >= 3.0}
|
|
|
|
BuildRequires: %{python_module attrs >= 17.3.0}
|
2018-08-31 12:50:36 +02:00
|
|
|
BuildRequires: %{python_module brotlipy}
|
2018-08-31 13:50:47 +02:00
|
|
|
BuildRequires: %{python_module chardet >= 2.0}
|
2017-09-01 16:36:11 +02:00
|
|
|
BuildRequires: %{python_module gunicorn}
|
2018-02-17 20:07:09 +01:00
|
|
|
BuildRequires: %{python_module idna_ssl >= 1.0.0}
|
2018-08-31 13:50:47 +02:00
|
|
|
BuildRequires: %{python_module multidict >= 4.0}
|
2017-12-06 10:27:11 +01:00
|
|
|
BuildRequires: %{python_module pluggy}
|
2017-09-11 17:42:42 +02:00
|
|
|
BuildRequires: %{python_module pytest-mock}
|
2018-06-25 11:08:20 +02:00
|
|
|
BuildRequires: %{python_module pytest-runner}
|
2017-09-08 19:35:05 +02:00
|
|
|
BuildRequires: %{python_module pytest-timeout}
|
2017-09-01 16:36:11 +02:00
|
|
|
BuildRequires: %{python_module pytest}
|
2018-08-31 13:50:47 +02:00
|
|
|
BuildRequires: %{python_module yarl >= 1.0}
|
2017-09-08 19:35:05 +02:00
|
|
|
# /SECTION
|
|
|
|
# SECTION docs
|
2017-12-10 15:58:23 +01:00
|
|
|
BuildRequires: %{python_module MarkupSafe}
|
2018-02-17 20:07:09 +01:00
|
|
|
BuildRequires: python3-Pygments >= 2.1
|
2017-09-08 19:35:05 +02:00
|
|
|
BuildRequires: python3-Sphinx
|
2018-02-17 20:07:09 +01:00
|
|
|
BuildRequires: python3-aiohttp-theme
|
2017-09-08 19:35:05 +02:00
|
|
|
BuildRequires: python3-sphinxcontrib-asyncio
|
2018-03-23 17:04:53 +01:00
|
|
|
BuildRequires: python3-sphinxcontrib-blockdiag
|
2017-09-08 19:35:05 +02:00
|
|
|
BuildRequires: python3-sphinxcontrib-newsfeed
|
|
|
|
# /SECTION
|
2017-09-01 16:36:11 +02:00
|
|
|
%python_subpackages
|
|
|
|
|
2017-09-08 19:35:05 +02:00
|
|
|
%package -n %{name}-doc
|
2018-04-14 08:45:33 +02:00
|
|
|
Summary: Documentation files for %{name}
|
2017-09-08 19:35:05 +02:00
|
|
|
Group: Documentation/HTML
|
|
|
|
|
2017-09-01 16:36:11 +02:00
|
|
|
%description
|
2017-09-11 17:42:42 +02:00
|
|
|
Asynchronous HTTP client/server framework for Python.
|
2017-09-08 19:35:05 +02:00
|
|
|
|
2017-09-11 17:42:42 +02: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 19:35:05 +02:00
|
|
|
|
|
|
|
%description -n %{name}-doc
|
2018-04-14 08:45:33 +02:00
|
|
|
HTML documentation on the API and examples for %{name}.
|
2017-09-01 16:36:11 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n aiohttp-%{version}
|
2018-10-06 11:20:40 +02:00
|
|
|
%autopatch -p1
|
2017-09-01 16:36:11 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
%python_build
|
2017-09-08 19:35:05 +02:00
|
|
|
pushd docs
|
2018-04-14 08:45:33 +02:00
|
|
|
make %{?_smp_mflags} html
|
2017-09-08 19:35:05 +02:00
|
|
|
rm _build/html/.buildinfo
|
|
|
|
popd
|
2017-09-01 16:36:11 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
2017-09-08 19:35:05 +02:00
|
|
|
%{python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
find %{buildroot}%{$python_sitearch} -name "*.c" -delete
|
|
|
|
}
|
2017-09-01 16:36:11 +02:00
|
|
|
|
|
|
|
%check
|
2018-02-17 20:07:09 +01:00
|
|
|
rm tests/test_pytest_plugin.py
|
2017-09-01 16:36:11 +02:00
|
|
|
%python_exec setup.py test
|
|
|
|
|
|
|
|
%files %{python_files}
|
2018-04-14 08:45:33 +02:00
|
|
|
%license LICENSE.txt
|
|
|
|
%doc CHANGES.rst CONTRIBUTORS.txt HISTORY.rst README.rst
|
2017-09-01 16:36:11 +02:00
|
|
|
%{python_sitearch}/*
|
|
|
|
|
2017-09-08 19:35:05 +02:00
|
|
|
%files -n %{name}-doc
|
|
|
|
%doc docs/_build/html
|
|
|
|
|
2017-09-01 16:36:11 +02:00
|
|
|
%changelog
|