- Run the tests
- Fix the deps OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-trio?expand=0&rev=2
This commit is contained in:
parent
8a4a8b63e0
commit
e4ba32ed36
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 14 21:27:51 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Run the tests
|
||||
- Fix the deps
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat May 11 19:16:24 UTC 2019 - Torsten Gruner <t.gruner@katodev.de>
|
||||
|
||||
|
@ -12,7 +12,8 @@
|
||||
# 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/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
@ -20,37 +21,38 @@
|
||||
Name: python-trio
|
||||
Version: 0.11.0
|
||||
Release: 0
|
||||
License: MIT OR Apache-2.0
|
||||
Summary: An async/await-native I/O library for humans and snake people
|
||||
Url: https://github.com/python-trio/trio
|
||||
License: MIT OR Apache-2.0
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/python-trio/trio
|
||||
Source: https://github.com/python-trio/trio/archive/v%{version}.tar.gz#/trio-%{version}.tar.gz
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module async_generator >= 1.9}
|
||||
BuildRequires: %{python_module attrs >= 18.2.0}
|
||||
BuildRequires: %{python_module idna}
|
||||
BuildRequires: %{python_module outcome}
|
||||
BuildRequires: %{python_module pyOpenSSL}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
# for protocol specifications
|
||||
BuildRequires: %{python_module sniffio}
|
||||
BuildRequires: %{python_module sortedcontainers}
|
||||
%if "%python_flavor" < "3.7"
|
||||
BuildRequires: %{python_module contextvars >= 2.1}
|
||||
%endif
|
||||
# /SECTION
|
||||
BuildRequires: %{python_module trustme}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: netcfg
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-async_generator >= 1.9
|
||||
Requires: python-attrs >= 18.2.0
|
||||
Requires: python-idna
|
||||
Requires: python-outcome
|
||||
Requires: python-sniffio
|
||||
Requires: python-sortedcontainers
|
||||
%if "%python_flavor" < "3.7"
|
||||
Suggests: python-contextvars >= 2.1
|
||||
%endif
|
||||
BuildArch: noarch
|
||||
|
||||
%if "%{python_flavor}" < "3.7"
|
||||
BuildRequires: %{python_module contextvars >= 2.1}
|
||||
%endif
|
||||
%if "%{python_flavor}" < "3.7"
|
||||
Recommends: python-contextvars >= 2.1
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@ -67,8 +69,9 @@ The Trio project's goal is to produce a production-quality, permissively license
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
# check fails. Some code are support in BSD only
|
||||
#python_exec setup.py test
|
||||
# test_static_tool_sees_all_symbols uses jedi/pylint for static analysis,
|
||||
# pointless for us.
|
||||
%pytest -k 'not test_static_tool_sees_all_symbols'
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
|
Loading…
Reference in New Issue
Block a user