From 9ff1475580bc5cfcd68a2033ba16b1b4ff91e6e7 Mon Sep 17 00:00:00 2001 From: luolu12 Date: Fri, 1 Sep 2023 14:29:00 +0800 Subject: [PATCH] Add check to pytest --- python-pytest-cov.spec | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/python-pytest-cov.spec b/python-pytest-cov.spec index cd29fa0..e3804ea 100644 --- a/python-pytest-cov.spec +++ b/python-pytest-cov.spec @@ -2,7 +2,7 @@ Name: python-pytest-cov Version: 4.1.0 -Release: 2 +Release: 3 Summary: Pytest plugin for measuring coverage License: MIT URL: https://pypi.org/project/pytest-cov/ @@ -15,6 +15,9 @@ BuildRequires: python3-setuptools BuildRequires: python3-pip BuildRequires: python3-wheel BuildRequires: python3-hatchling +BuildRequires: python3-virtualenv +BuildRequires: python3-pytest-xdist +BuildRequires: python3-fields %description This plugin produces coverage reports. Compared to just using coverage run this plugin does some extras: @@ -55,15 +58,17 @@ or through coverage’s config file. %pyproject_install %check -%if %{with test} -PYTHONPATH=%{buildroot}%{python3_sitelib}:$PWD/tests py.test-%{python3_version} -vv || : -%endif +%pytest + %files -n python3-pytest-cov %doc AUTHORS.rst CHANGELOG.rst CONTRIBUTING.rst README.rst LICENSE %{python3_sitelib}/* %changelog +* Fri Sep 1 2023 luluoc - 4.1.0-3 +- Add check to pytest + * Wed Jul 12 2023 luluoc - 4.1.0-2 - change py3 to pyproject -- Gitee