diff --git a/python-autopage.spec b/python-autopage.spec index c3c929fa9a700a147cdbfc8825cfd969dabf6567..0bd3e5d49b09849dc71d2290b29b761f6bc54a73 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