From bbaa1d430aad640d9f7056a4f482be04a7ae37dc Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Mon, 27 Oct 2025 16:28:23 +0000 Subject: [PATCH] Fix setuptools_scm not finding the version --- python-pytest-subtests.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/python-pytest-subtests.spec b/python-pytest-subtests.spec index 58b51a6..5ef8a2d 100644 --- a/python-pytest-subtests.spec +++ b/python-pytest-subtests.spec @@ -35,6 +35,14 @@ Summary: %{summary} %{summary}. +%generate_buildrequires -p +export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}' + + +%build -p +export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}' + + %check -a %pytest -rs -v tests