[modeling] Add jobs for new project yang-kit
[ci-management.git] / shell / pypi-get.sh
1 #!/bin/bash
2
3 # Script to download PyPI artifacts
4
5 PROJECT_NAME=$(grep name= setup.py | cut -d"'" -f2)
6 ARTIFACT_VERSION=$(grep __version__ ${PROJECT_NAME}/_version.py | cut -d'"' -f2)
7 REPO_URL="https://nexus3.onap.org/repository/PyPi.staging/packages"
8 TAR_NAME="$REPO_URL/$PROJECT_NAME/$ARTIFACT_VERSION/$PROJECT_NAME-$ARTIFACT_VERSION.tar.gz"
9 WHEEL_NAME="${REPO_URL}/${PROJECT_NAME}/${ARTIFACT_VERSION}/${PROJECT_NAME}-${ARTIFACT_VERSION}-py2-none-any.whl"
10
11 mkdir dist
12 cd dist
13
14 wget ${TAR_NAME}
15 wget ${WHEEL_NAME}