forked from pool/python-aiohttp
- Match up requirements to the setup.py
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiohttp?expand=0&rev=24
This commit is contained in:
parent
57cf0a00b7
commit
3b7ea4b01a
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 31 11:50:26 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Match up requirements to the setup.py
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 31 09:22:37 UTC 2018 - Adrian Schröter <adrian@suse.de>
|
||||
|
||||
|
@ -12,54 +12,54 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python3-%{**}}
|
||||
%define skip_python2 1
|
||||
%bcond_without test
|
||||
Name: python-aiohttp
|
||||
Version: 3.4.0
|
||||
Release: 0
|
||||
Summary: Asynchronous HTTP client/server framework
|
||||
License: Apache-2.0
|
||||
Group: Development/Languages/Python
|
||||
URL: https://aiohttp.readthedocs.io/
|
||||
URL: https://github.com/aio-libs/aiohttp
|
||||
Source: https://files.pythonhosted.org/packages/source/a/aiohttp/aiohttp-%{version}.tar.gz
|
||||
# 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
|
||||
BuildRequires: %{python_module brotlipy}
|
||||
BuildRequires: %{python_module devel >= 3.4.2}
|
||||
BuildRequires: %{python_module Cython >= 0.28.4}
|
||||
BuildRequires: %{python_module devel >= 3.5.3}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python >= 3.4.2
|
||||
Requires: python-async_timeout >= 2.0.0
|
||||
Requires: python-attrs
|
||||
Requires: python-chardet
|
||||
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
|
||||
Requires: python-idna_ssl >= 1.0.0
|
||||
Requires: python-multidict >= 3.3.0
|
||||
Requires: python-yarl >= 0.13.0
|
||||
Requires: python-multidict >= 4.0
|
||||
Requires: python-yarl >= 1.0
|
||||
Recommends: python-aiodns
|
||||
Recommends: python-cChardet
|
||||
Suggests: %{name}-doc
|
||||
# SECTION test requirements
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module async_generator}
|
||||
BuildRequires: %{python_module async_timeout >= 2.0.0}
|
||||
BuildRequires: %{python_module async_timeout >= 3.0}
|
||||
BuildRequires: %{python_module attrs >= 17.3.0}
|
||||
BuildRequires: %{python_module brotlipy}
|
||||
BuildRequires: %{python_module chardet}
|
||||
BuildRequires: %{python_module chardet >= 2.0}
|
||||
BuildRequires: %{python_module gunicorn}
|
||||
BuildRequires: %{python_module idna_ssl >= 1.0.0}
|
||||
BuildRequires: %{python_module multidict >= 3.3.0}
|
||||
BuildRequires: %{python_module multidict >= 4.0}
|
||||
BuildRequires: %{python_module pluggy}
|
||||
BuildRequires: %{python_module pytest-mock}
|
||||
BuildRequires: %{python_module pytest-runner}
|
||||
BuildRequires: %{python_module pytest-timeout}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module yarl >= 1.1.0}
|
||||
%endif
|
||||
BuildRequires: %{python_module yarl >= 1.0}
|
||||
# /SECTION
|
||||
# SECTION docs
|
||||
BuildRequires: %{python_module MarkupSafe}
|
||||
@ -70,7 +70,6 @@ BuildRequires: python3-sphinxcontrib-asyncio
|
||||
BuildRequires: python3-sphinxcontrib-blockdiag
|
||||
BuildRequires: python3-sphinxcontrib-newsfeed
|
||||
# /SECTION
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%package -n %{name}-doc
|
||||
@ -105,11 +104,9 @@ popd
|
||||
find %{buildroot}%{$python_sitearch} -name "*.c" -delete
|
||||
}
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
rm tests/test_pytest_plugin.py
|
||||
%python_exec setup.py test
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE.txt
|
||||
|
Loading…
x
Reference in New Issue
Block a user