diff options
-rw-r--r-- | python-hatch-vcs.spec | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/python-hatch-vcs.spec b/python-hatch-vcs.spec index 84c9c47..2b5da30 100644 --- a/python-hatch-vcs.spec +++ b/python-hatch-vcs.spec @@ -1,3 +1,5 @@ +%global bootstrap 1 + Name: python-hatch-vcs Version: 0.3.0 Release: 2 @@ -8,13 +10,15 @@ URL: https://pypi.org/project/hatch-vcs Source0: https://files.pythonhosted.org/packages/04/33/b68d68e532392d938472d16a03e4ce0ccd749ea31b42d18f8baa6547cbfd/hatch_vcs-0.3.0.tar.gz Patch0: Fix-setuptools_scm-7.1.0-test-incompatible.patch BuildArch: noarch - -BuildRequires: python3-devel python3-pip python3-hatchling -BuildRequires: python3-setuptools_scm python3-pathspec python3-hatch-vcs +%if !%{?bootstrap} +BuildRequires: python3-hatch-vcs +%endif +BuildRequires: python3-hatchling BuildRequires: python3dist(pytest) BuildRequires: git-core - - +BuildRequires: python3-setuptools_scm python3-pathspec +BuildRequires: python3-devel python3-pip +BuildRequires: openEuler-rpm-config >= 30-39 %global common_description %{expand: This provides a plugin for Hatch that uses your preferred version control system (like Git) to determine project versions.} @@ -36,7 +40,9 @@ Summary: %{summary} %pyproject_install hatch_vcs==%{version} %check +%if !%{?bootstrap} %{__python3} -m pytest +%endif %files -n python3-hatch-vcs %license LICENSE.txt |