Replace deprecated setup.py test with %pytest

This commit is contained in:
Maxwell G 2023-06-07 21:32:43 +00:00
parent b39ea2e6b9
commit 5c9b86e0f7
No known key found for this signature in database
GPG Key ID: F79E4E25E8C661F8

View File

@ -10,6 +10,7 @@ Source0: https://files.pythonhosted.org/packages/source/p/pathspec/pathsp
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pytest
%description
Path Specification (pathspec) is a utility library for pattern matching of file
@ -36,7 +37,7 @@ is derived from Rsync's wildmatch. Git uses wildmatch for its gitignore files.
%check
%{__python3} setup.py test
%pytest
%files -n python3-pathspec
%doc README.rst