diff options
author | Ben Nemec <bnemec@redhat.com> | 2018-08-28 21:39:48 +0000 |
---|---|---|
committer | Stephen Finucane <stephenfin@redhat.com> | 2019-01-22 17:19:24 +0000 |
commit | bc4193b183bb58c56cb3b46c04b763aebba09c54 (patch) | |
tree | c6b032e6c15104cf6dfd957cc87555e89e5ab68e /pbr/packaging.py | |
parent | d01abc82d081c98748ff95d7bb47abd9c1ff678c (diff) | |
download | pbr-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.py | 3 |
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: |