blob: 40900a5d7af06d8438926de5022984299c0b373d [file] [log] [blame]
Vanessa Rene Valderrama295975d2018-02-27 15:10:17 -08001#!/bin/bash
2
3# Script to download PyPI artifacts
4
5PROJECT_NAME=$(grep name= setup.py | cut -d"'" -f2)
6ARTIFACT_VERSION=$(grep __version__ ${PROJECT_NAME}/_version.py | cut -d'"' -f2)
7REPO_URL="https://nexus3.onap.org/repository/PyPi.staging/packages"
8TAR_NAME="$REPO_URL/$PROJECT_NAME/$ARTIFACT_VERSION/$PROJECT_NAME-$ARTIFACT_VERSION.tar.gz"
9WHEEL_NAME="${REPO_URL}/${PROJECT_NAME}/${ARTIFACT_VERSION}/${PROJECT_NAME}-${ARTIFACT_VERSION}-py2-none-any.whl"
10
11mkdir dist
12cd dist
13
14wget ${TAR_NAME}
15wget ${WHEEL_NAME}