From 558807b2d9ec467745cde8e6780138a9afe61759 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Wed, 2 Dec 2020 12:18:50 +0100 Subject: [PATCH] Simplify the bootstrap sequence of packaging --- python-flit.spec | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/python-flit.spec b/python-flit.spec index f4500d9..db091cf 100644 --- a/python-flit.spec +++ b/python-flit.spec @@ -25,17 +25,22 @@ BuildArch: noarch BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros BuildRequires: python3-pip -BuildRequires: python3-requests -BuildRequires: python3-docutils -BuildRequires: python3-pygments + +# Runtime deps needed to build self BuildRequires: python3-toml %if %{with tests} +# Runtime deps, others +BuildRequires: python3-requests +BuildRequires: python3-docutils +BuildRequires: python3-pygments + +# Test deps BuildRequires: /usr/bin/python BuildRequires: python3-pytest BuildRequires: python3-responses -# Requires flit to build: +# Test deps that require flit to build: BuildRequires: python3-testpath BuildRequires: python3-requests-download %endif