a0ca6ce157
Currently, building ramdisks installs ironic-python-agent without any upper-constraints. This causes the package to be installed with newer, untested dependencies. This commits introduces a tool to generate a local upper-constraints file based on predefined strategies (below). Additionally, the fallback to the openstack/requirements uses the URL defined in tox.ini instead of redefining it. This prevents having to keep track of two separate variables when releasing. upper-constraints lookup strategies (in order): * UPPER_CONSTRAINTS_FILE points to a local file * UPPER_CONSTRAINTS_FILE points to a URL * /opt/stack/new/requirements/upper-constraints.txt * upper-constraints.txt from openstack/requirements git repository Partial-bug: #1616554 Change-Id: Ib5c0c57cafdb6ffd7456e61f3b1bb5fa57520e5a
10 lines
503 B
Bash
Executable File
10 lines
503 B
Bash
Executable File
#!/bin/bash
|
|
# NOTE(mmitchell): This extracts the URL defined as the default value for
|
|
# UPPER_CONSTRAINTS_FILE in tox.ini. This is used by image
|
|
# builders to avoid duplicating the default value in multiple
|
|
# scripts. This is specially done to leverage the release
|
|
# tools that automatically update the tox.ini when projects
|
|
# are released.
|
|
sed -n 's/^.*{env:UPPER_CONSTRAINTS_FILE\:\([^}]*\)}.*$/\1/p' $1 | head -n1
|
|
|