Merge "Add option for default pip package install"

This commit is contained in:
Zuul 2018-07-02 09:07:42 +00:00 committed by Gerrit Code Review
commit c4af997fe5
3 changed files with 11 additions and 1 deletions

View File

@ -121,3 +121,7 @@ repo_pip_packages:
- wheel
repo_build_store_pip_sources: false
# Default python packages which will be installed
# into every venv.
repo_venv_default_pip_packages: []

View File

@ -0,0 +1,6 @@
---
features:
- The option ``repo_venv_default_pip_packages`` has been added which will
allow deployers to insert any packages into a service venv as needed.
The option expects a list of strings which are valid python package names as
found on PYPI.

View File

@ -146,4 +146,4 @@ VENV_CREATE_COMMAND="{{ repo_build_venv_command_options }}"
{# #}
{# Finally, we output the alphabetically sorted requirements. #}
{# #}
ROLE_VENV_REQUIREMENTS="{{ (requirement_list | sort) | join(' ') }}"
ROLE_VENV_REQUIREMENTS="{{ (repo_venv_default_pip_packages | union(requirement_list) | sort) | join(' ') }}"