Use %pyproject_buildrequires to fix FTBFS with pyproject-rpm-macros >= 0-23

See https://src.fedoraproject.org/rpms/pyproject-rpm-macros/pull-request/65
This commit is contained in:
Miro Hrončok
2020-08-12 13:16:57 +02:00
parent 1e2f8462ed
commit 3e7fdc2f6a
+5 -3
View File
@@ -11,11 +11,8 @@ URL: https://github.com/fedora-python/tox-current-env
Source0: %{pypi_source}
BuildArch: noarch
# Don't use %%pyproject_buildrequires to avoid a build dependency loop.
BuildRequires: python3-devel
BuildRequires: pyproject-rpm-macros
BuildRequires: python3dist(setuptools)
BuildRequires: python3dist(wheel)
%description
The tox-current-env plugin allows to run tests in current Python environment.
@@ -33,6 +30,11 @@ The tox-current-env plugin allows to run tests in current Python environment.
%autosetup -n %{pypi_name}-%{version}
%generate_buildrequires
# Don't use %%pyproject_buildrequires -t/-e to avoid a build dependency loop
%pyproject_buildrequires
%build
%pyproject_wheel