Merge "Add option for default pip package install"
This commit is contained in:
commit
c4af997fe5
|
@ -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: []
|
||||
|
|
|
@ -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.
|
|
@ -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(' ') }}"
|
||||
|
|
Loading…
Reference in New Issue