diff --git a/python-constantly.spec b/python-constantly.spec index 6b781a089fd1ea84333c8747926b19b676a325cf..f2641a6fdbdc6725b083f947a7200a10deb8a12f 100644 --- a/python-constantly.spec +++ b/python-constantly.spec @@ -6,7 +6,7 @@ Summary: Symbolic constants in Python Name: python-%{srcname} Version: 15.1.0 -Release: 7%{?dist} +Release: 8%{?dist} License: MIT URL: https://github.com/twisted/constantly Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz @@ -18,7 +18,7 @@ BuildRequires: python3-devel BuildRequires: python3dist(sphinx-rtd-theme) %endif %if %{with tests} -BuildRequires: python3dist(twisted) +BuildRequires: python3dist(twisted) python3-pytest %endif BuildArch: noarch @@ -50,7 +50,7 @@ This is the documentation package for %{name}. %prep %autosetup -p1 -n %{srcname}-%{version} %generate_buildrequires -%pyproject_buildrequires %{?with_tests:-t} +%pyproject_buildrequires %build %pyproject_wheel @@ -65,7 +65,7 @@ rm -rf html/.{doctrees,buildinfo} %check %if %{with tests} -%tox +%pytest %endif %files -n python3-%{srcname} -f %{pyproject_files} @@ -77,6 +77,9 @@ rm -rf html/.{doctrees,buildinfo} %endif %changelog +* Wed Sep 18 2024 Shuo Wang - 15.1.0-8 +- switch test from tox to pytest + * Fri Aug 16 2024 OpenCloudOS Release Engineering - 15.1.0-7 - Rebuilt for loongarch release