From 5c9b86e0f781d4def2360b590fe8c2fa4393a2ec Mon Sep 17 00:00:00 2001 From: Maxwell G Date: Wed, 7 Jun 2023 21:32:43 +0000 Subject: [PATCH] Replace deprecated setup.py test with %pytest --- python-pathspec.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python-pathspec.spec b/python-pathspec.spec index 2daeff7..1e3cb23 100644 --- a/python-pathspec.spec +++ b/python-pathspec.spec @@ -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