Try to install more dependencies in the release notes job
Try to install the dependencies from other sources in the release notes job, but ignore failures. This should allow projects with unusual dependencies (most often oslosphnix) in their release notes build to continue to work until we can simplify their dependency list. Change-Id: I6b6d596eccb956f24a3ae3056a474ba347673c82 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
parent
5c77008c3d
commit
01e81d79aa
@ -26,12 +26,29 @@
|
||||
set -e
|
||||
set -x
|
||||
|
||||
OPTIONAL_REQUIREMENTS_SOURCES="
|
||||
docs/requirements.txt
|
||||
requirements.txt
|
||||
test-requirements.txt
|
||||
"
|
||||
|
||||
UPPER_CONSTRAINTS="{{ upper_constraints }}"
|
||||
python -m virtualenv .venv
|
||||
VENV=.venv/bin
|
||||
$VENV/pip install sphinx $UPPER_CONSTRAINTS
|
||||
$VENV/pip install openstackdocstheme $UPPER_CONSTRAINTS
|
||||
$VENV/pip install reno $UPPER_CONSTRAINTS
|
||||
|
||||
# Install from other optional sources, ignoring errors.
|
||||
# TODO(jaegerandi): as below, these extra requirements are only
|
||||
# for things like oslosphix which some releasenotes jobs still
|
||||
# depend on.
|
||||
for reqfile in $OPTIONAL_REQUIREMENTS_SOURCES; do
|
||||
if [ -e $reqfile ] ; then
|
||||
$VENV/pip install -r $reqfile $UPPER_CONSTRAINTS || true
|
||||
fi
|
||||
done
|
||||
|
||||
# Optionally, install local requirements
|
||||
if [ -e releasenotes/requirements.txt ] ; then
|
||||
$VENV/pip install -r releasenotes/requirements.txt $UPPER_CONSTRAINTS
|
||||
@ -39,4 +56,6 @@
|
||||
# TODO(jaegerandi): Remove once all repos are fixed.
|
||||
# Try installing current repo in case it needs to be available for
|
||||
# example for version number calculation. Ignore any failures here.
|
||||
$VENV/pip install . || true
|
||||
if [ -f setup.cfg ] ; then
|
||||
$VENV/pip install $UPPER_CONSTRAINTS . || true
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user