mirror of
https://github.com/danieldemus/pyp2spec.git
synced 2026-07-27 21:00:37 +02:00
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:
committed by
Karolina Surma
parent
4244c2a3ae
commit
b7c1cdb63f
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user