14
0
forked from pool/python-yappi

Accepting request 786087 from home:frispete:OpenStack:Common

- add more testing requirements
- disable a test, that relies on asyncio.run for py < 3.7

OBS-URL: https://build.opensuse.org/request/show/786087
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-yappi?expand=0&rev=7
This commit is contained in:
Tomáš Chvátal
2020-03-18 07:51:24 +00:00
committed by Git OBS Bridge
parent 1f2169b60b
commit 134b93bf47
2 changed files with 14 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Mar 17 23:52:17 UTC 2020 - Hans-Peter Jansen <hpj@urpla.net>
- add more testing requirements
- disable a test, that relies on asyncio.run for py < 3.7
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Mar 15 09:13:20 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com> Sun Mar 15 09:13:20 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -25,8 +25,10 @@ Summary: Yet Another Python Profiler
License: MIT License: MIT
URL: https://github.com/sumerc/yappi URL: https://github.com/sumerc/yappi
Source: https://files.pythonhosted.org/packages/source/y/yappi/yappi-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/y/yappi/yappi-%{version}.tar.gz
BuildRequires: %{python_module contextvars}
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
BuildRequires: %{python_module nose} BuildRequires: %{python_module nose}
BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
@@ -52,7 +54,12 @@ export CFLAGS="%{optflags}"
export PYTHONPATH="tests/" export PYTHONPATH="tests/"
export PATH="$PATH:%{buildroot}/%{_bindir}" export PATH="$PATH:%{buildroot}/%{_bindir}"
# Skip two flaky tests # Skip two flaky tests
%pytest_arch -k 'not (test_basic_old_style or test_basic)' skip_tests="not test_basic_old_style and not test_basic"
%if %{python3_version_nodots} < 37
# this test relies on asyncio.run method
skip_tests="$skip_tests and not test_asyncio_context_vars"
%endif
%pytest_arch -k "$skip_tests"
%files %{python_files} %files %{python_files}
%doc README.md %doc README.md