- Update to 1.7.0:

* Support for pytest 4

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-profiling?expand=0&rev=3
This commit is contained in:
Tomáš Chvátal
2019-06-03 09:17:00 +00:00
committed by Git OBS Bridge
parent 21c0c30a5d
commit e19429194e
4 changed files with 12 additions and 7 deletions

View File

@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pytest-profiling
Version: 1.6.0
Version: 1.7.0
Release: 0
Summary: Profiling plugin for pytest
License: MIT
@@ -36,8 +36,8 @@ BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module gprof2dot}
BuildRequires: %{python_module more-itertools}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytest-virtualenv}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module six}
# /SECTION
%python_subpackages
@@ -47,7 +47,6 @@ Profiling plugin for py.test
%prep
%setup -q -n pytest-profiling-%{version}
sed -i 's:pytest<[0-9.]*:pytest:g' setup.py
# Unpin
sed -i 's/more-itertools==5.0.0/more-itertools/' tests/integration/test_profile_integration.py
@@ -60,7 +59,7 @@ sed -i 's/more-itertools==5.0.0/more-itertools/' tests/integration/test_profile_
%check
# integration tests omit as they try to use the system image instead of buildroot
%python_exec -m pytest -k 'not test_profile_integration'
%pytest -k 'not test_profile_integration'
%files %{python_files}
%doc CHANGES.md README.md