diff --git a/0001_adding_pytest_to_the_testing_dependencies.patch b/0001_adding_pytest_to_the_testing_dependencies.patch deleted file mode 100644 index 09d3911..0000000 --- a/0001_adding_pytest_to_the_testing_dependencies.patch +++ /dev/null @@ -1,14 +0,0 @@ -diff -Naur re-assert-1.1.0.orig/setup.cfg re-assert-1.1.0/setup.cfg ---- re-assert-1.1.0.orig/setup.cfg 2022-10-13 16:11:49.695696821 +0100 -+++ re-assert-1.1.0/setup.cfg 2022-10-13 16:13:32.453753495 +0100 -@@ -23,6 +23,10 @@ - regex - python_requires = >=3.6.1 - -+[options.extras_require] -+test = -+ pytest >= 3 -+ - [bdist_wheel] - universal = True - diff --git a/python-re-assert.spec b/python-re-assert.spec index b60b4fb..aa262fc 100644 --- a/python-re-assert.spec +++ b/python-re-assert.spec @@ -8,12 +8,12 @@ License: MIT URL: https://github.com/asottile/re-assert Source: %{url}/archive/v%{version}/re-assert-%{version}.tar.gz -Patch: 0001_adding_pytest_to_the_testing_dependencies.patch - BuildArch: noarch BuildRequires: python3-devel +BuildRequires: %{py3_dist pytest} + %global common_description %{expand: %{summary}!} @@ -31,7 +31,7 @@ Summary: %{summary} %generate_buildrequires -%pyproject_buildrequires -x test +%pyproject_buildrequires %build