From 3e7fdc2f6a3bf2609319231ea8b86312db739bcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Wed, 12 Aug 2020 13:16:57 +0200 Subject: [PATCH] Use %pyproject_buildrequires to fix FTBFS with pyproject-rpm-macros >= 0-23 See https://src.fedoraproject.org/rpms/pyproject-rpm-macros/pull-request/65 --- python-tox-current-env.spec | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/python-tox-current-env.spec b/python-tox-current-env.spec index b346cfd..cd299f0 100644 --- a/python-tox-current-env.spec +++ b/python-tox-current-env.spec @@ -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