diff --git a/python-hatch_vcs.changes b/python-hatch_vcs.changes index 75ed08c..e8ddc75 100644 --- a/python-hatch_vcs.changes +++ b/python-hatch_vcs.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Feb 27 09:05:31 UTC 2023 - Matej Cepl + +- The test build branch MUST BR the package itself. + ------------------------------------------------------------------- Tue Feb 21 08:48:31 UTC 2023 - Matej Cepl diff --git a/python-hatch_vcs.spec b/python-hatch_vcs.spec index ffeaf64..43e844f 100644 --- a/python-hatch_vcs.spec +++ b/python-hatch_vcs.spec @@ -36,7 +36,7 @@ BuildRequires: python-rpm-macros >= 20210929 Requires: python-hatchling >= 0.21.0 # https://github.com/ofek/hatch-vcs/issues/8 Requires: (python-setuptools_scm >= 6.4.0) -Provides: python-hatch-vcs = %{version}-%{info} +Provides: python-hatch-vcs = %{version}-%{release} BuildArch: noarch # SECTION build BuildRequires: %{python_module hatchling >= 0.21.0} @@ -44,8 +44,9 @@ BuildRequires: %{python_module pip} # /SECTION %if %{with test} # SECTION test -BuildRequires: %{python_module setuptools_scm >= 6.4.0} +BuildRequires: %{python_module hatch_vcs = %{version}} BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools_scm >= 6.4.0} BuildRequires: git # /SECTION %endif @@ -61,13 +62,14 @@ This provides a plugin for Hatch that uses your preferred version control system %pyproject_wheel %install +%if %{without test} %pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif %check %if %{with test} %pytest tests -rm -rf %{buildroot} %endif %if %{without test}