mirror of
https://github.com/clearlinux/autospec.git
synced 2026-09-01 11:25:58 +00:00
Don't add python test buildreqs
Python package's test requirements can often require alternate versions of packages in Clear Linux and can introduce dependency cycles. To avoid this, exclude sections marked for tests from build dependency consideration.
This commit is contained in:
committed by
William Douglas
parent
70fa5f14aa
commit
37bfe3415c
@@ -434,6 +434,13 @@ def grab_python_requirements(descfile):
|
||||
lines = f.readlines()
|
||||
|
||||
for line in lines:
|
||||
# don't add the test section
|
||||
if clean_python_req(line) == '[test]':
|
||||
break
|
||||
if clean_python_req(line) == '[testing]':
|
||||
break
|
||||
if clean_python_req(line) == '[dev]':
|
||||
break
|
||||
add_requires(clean_python_req(line))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user