From 76f555bf7dff55a35f654f3813bc68aa140517a3 Mon Sep 17 00:00:00 2001 From: abushwang Date: Sun, 29 Sep 2024 11:34:47 +0800 Subject: [PATCH] switch test from tox to pytest Signed-off-by: abushwang --- python-Automat.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/python-Automat.spec b/python-Automat.spec index 5171097..3c94f26 100644 --- a/python-Automat.spec +++ b/python-Automat.spec @@ -6,14 +6,14 @@ Summary: Self-service finite-state machines for the programmer on the go Name: python-%{srcname} Version: 22.10.0 -Release: 4%{?dist} +Release: 5%{?dist} License: MIT URL: https://github.com/glyph/automat Source0: %pypi_source Patch0001: backport-remove-dot-from-py.test.patch -BuildRequires: python3-devel +BuildRequires: python3-devel python3-pytest %if %{with docs} BuildRequires: python3dist(sphinx-rtd-theme) %endif @@ -45,7 +45,7 @@ Documentation for Automat sed -i "s|'m2r',||g" setup.py > test.py %generate_buildrequires -%pyproject_buildrequires -t +%pyproject_buildrequires %build %pyproject_wheel @@ -60,7 +60,7 @@ rm -rf html/.{doctrees,buildinfo} %pyproject_save_files %{libname} %check -%tox +%pytest -k "not test_simple_machine_transitions" %files -n python3-%{srcname} -f %{pyproject_files} %{_bindir}/automat-visualize @@ -72,6 +72,9 @@ rm -rf html/.{doctrees,buildinfo} %endif %changelog +* Sun Sep 29 2024 Shuo Wang - 22.10.0-5 +- switch test from tox to pytest + * Thu Sep 26 2024 OpenCloudOS Release Engineering - 22.10.0-4 - Rebuilt for clarifying the packages requirement in BaseOS and AppStream -- Gitee