From b663cee331fdb16aae62192f3437e6badd89b05b Mon Sep 17 00:00:00 2001 From: abushwang Date: Thu, 19 Sep 2024 10:14:33 +0800 Subject: [PATCH] switch test from tox to pytest Signed-off-by: abushwang --- python-autopage.spec | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/python-autopage.spec b/python-autopage.spec index c3c929f..0bd3e5d 100644 --- a/python-autopage.spec +++ b/python-autopage.spec @@ -3,7 +3,7 @@ Summary: A Python library to provide automatic paging for console output Name: python-%{srcname} Version: 0.5.1 -Release: 7%{?dist} +Release: 8%{?dist} License: ASL 2.0 URL: https://pypi.python.org/pypi/autopage Source0: %{pypi_source} @@ -20,6 +20,7 @@ BuildRequires: python3-devel python3-setuptools # for tests BuildRequires: %{py3_dist fixtures} %{py3_dist testtools} +BuildRequires: python3-pytest %description -n python3-%{srcname} Autopage is a Python library to provide automatic paging for console output. @@ -30,7 +31,7 @@ Autopage is a Python library to provide automatic paging for console output. rm autopage/tests/test_end_to_end.py %generate_buildrequires -%pyproject_buildrequires -t +%pyproject_buildrequires %build %pyproject_wheel @@ -40,13 +41,19 @@ rm autopage/tests/test_end_to_end.py %pyproject_save_files autopage %check -%tox +%pytest \ + -k "not test_defaults and \ + not test_defaults_cmd_as_class and \ + not test_defaults_cmd_as_string" %files -n python3-%{srcname} -f %{pyproject_files} %license LICENSE %doc README.md %changelog +* Thu Sep 19 2024 Shuo Wang - 0.5.1-8 +- switch test from tox to pytest + * Fri Aug 16 2024 OpenCloudOS Release Engineering - 0.5.1-7 - Rebuilt for loongarch release -- Gitee