Ensure requirements-py2 is synced
PBR supports files of the style requirements-pyN where N is the bundling python version, which means we need to sync the same number of supported possible PBR files that can exist. This adds in the missing py2 that was not being synced even though it is a viable requirements file for PBR. Fixes bug 1371936 Change-Id: I7956d77c275694cf09971766d16af054d2692261
This commit is contained in:
parent
43fa3d0221
commit
040c6a9f53
|
@ -179,10 +179,13 @@ def _copy_requires(suffix, dest_dir):
|
|||
source_reqs = _parse_reqs('global-requirements.txt')
|
||||
dev_reqs = _parse_reqs('dev-requirements.txt')
|
||||
|
||||
target_files = (
|
||||
target_files = [
|
||||
'requirements.txt', 'tools/pip-requires',
|
||||
'test-requirements.txt', 'tools/test-requires',
|
||||
'requirements-py3.txt', 'test-requirements-py3.txt')
|
||||
]
|
||||
for py_version in (2, 3):
|
||||
target_files.append('requirements-py%s.txt' % py_version)
|
||||
target_files.append('test-requirements-py%s.txt' % py_version)
|
||||
|
||||
for dest in target_files:
|
||||
dest_path = os.path.join(dest_dir, dest)
|
||||
|
|
Loading…
Reference in New Issue