summaryrefslogtreecommitdiff
path: root/pbr/packaging.py
diff options
context:
space:
mode:
authorBen Nemec <bnemec@redhat.com>2018-08-28 21:39:48 +0000
committerStephen Finucane <stephenfin@redhat.com>2019-01-22 17:19:24 +0000
commitbc4193b183bb58c56cb3b46c04b763aebba09c54 (patch)
treec6b032e6c15104cf6dfd957cc87555e89e5ab68e /pbr/packaging.py
parentd01abc82d081c98748ff95d7bb47abd9c1ff678c (diff)
downloadpbr-bc4193b183bb58c56cb3b46c04b763aebba09c54.tar.gz
Ignore --find-links in requirements file
We already skip things like --index-url, but --find-links can also be present and also shouldn't be included in install_requires. This also fixes some issues with the existing unit test for this filtering. Change-Id: Ie8eca8c19e955d52722feaa71d5843ccd74b0da0 Closes-Bug: 1716808
Diffstat (limited to 'pbr/packaging.py')
-rw-r--r--pbr/packaging.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pbr/packaging.py b/pbr/packaging.py
index bb0ec6b..c1d729f 100644
--- a/pbr/packaging.py
+++ b/pbr/packaging.py
@@ -116,7 +116,8 @@ def parse_requirements(requirements_files=None, strip_markers=False):
continue
# Ignore index URL lines
- if re.match(r'^\s*(-i|--index-url|--extra-index-url).*', line):
+ if re.match(r'^\s*(-i|--index-url|--extra-index-url|--find-links).*',
+ line):
continue
# Handle nested requirements files such as: