Add extras to %pyproject_buildrequires

Use the newly added `extras` config key, containing a list of all
detected package extras.
This commit is contained in:
Karolina Surma
2023-10-10 15:55:20 +02:00
committed by Karolina Surma
parent 4244c2a3ae
commit b7c1cdb63f
2 changed files with 6 additions and 2 deletions
+4 -1
View File
@@ -40,7 +40,10 @@ Summary: %{summary}
%generate_buildrequires
%pyproject_buildrequires
{% if extras -%}
# Keep only those extras which you actually want to package or use during tests
{% endif -%}
%pyproject_buildrequires{% if extras %} -x {{extras}}{% endif %}
%build
+2 -1
View File
@@ -35,7 +35,8 @@ Summary: %{summary}
%generate_buildrequires
%pyproject_buildrequires
# Keep only those extras which you actually want to package or use during tests
%pyproject_buildrequires -x docs,lint,test
%build