mirror of
https://github.com/danieldemus/pyp2spec.git
synced 2026-07-29 13:44:21 +02:00
Runtime BR's are implicitly required
This commit is contained in:
+5
-6
@@ -10,19 +10,18 @@ TEMPLATE_PATH = Path().resolve(__file__) / 'template.spec'
|
||||
|
||||
def generate_extra_build_requires(config):
|
||||
"""If defined in config file, return extra build requires.
|
||||
If none were defined, return an empty string."""
|
||||
If none were defined, return `-r` - runtime extra BRs`."""
|
||||
|
||||
# TODO: This doesn't handle doubles like -xr
|
||||
# TODO: custom tox env (-e)
|
||||
options = {
|
||||
"test": "-t",
|
||||
"runtime": "-r",
|
||||
"tox": "-t",
|
||||
"extra": "-x",
|
||||
}
|
||||
extra_brs = config.get_list("extra_build_requires")
|
||||
|
||||
# No extra BuildRequires were defined - return empty string
|
||||
# No extra BuildRequires were defined - return `-r` = runtime
|
||||
if not extra_brs:
|
||||
return ""
|
||||
return "-r"
|
||||
|
||||
generated_brs = []
|
||||
add = generated_brs.append
|
||||
|
||||
Reference in New Issue
Block a user