run-wheel.sh: only run wheel for Python projects
tarball JJB macro run wheel, but we have to verify if the project is whether or not a Python project. This patch will make possible for Puppet modules to run the tarball macro without complexity. We check if it's a Python project if metadata.json file IS NOT present. Indeed, this file is really Puppet specific. Change-Id: Id2e307ae53b8ef1bb2be71c8ba3541cadb5ca12b
This commit is contained in:
@@ -14,6 +14,13 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
# metadata.json is a file present in Puppet modules but not in Python projects.
|
||||||
|
# Based on this information, we'll run wheel only on Python projects.
|
||||||
|
# This conditionnal allows to run tarball JJB macro for both types of projects.
|
||||||
|
if [ -r metadata.json ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
venv=${1:-venv}
|
venv=${1:-venv}
|
||||||
|
|
||||||
export UPPER_CONSTRAINTS_FILE=$(pwd)/upper-constraints.txt
|
export UPPER_CONSTRAINTS_FILE=$(pwd)/upper-constraints.txt
|
||||||
|
Reference in New Issue
Block a user