Skip to content

Commit

Permalink
Merge pull request #204 from ntadimeti/ntadimeti/pypi_folderfix
Browse files Browse the repository at this point in the history
Fix wheel package location
  • Loading branch information
ntadimeti authored Aug 4, 2020
2 parents 6ff895b + c859ca0 commit e9fa1e9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ci/release/pypi_uploader.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,13 @@ if [ "${COMMIT_HASH}" != "master" ]; then
return 0
fi

for f in "${WORKSPACE}"/atacworks/atacworks_wheel/*.whl; do
for f in "${WORKSPACE}"/atacworks_wheel/*.whl; do
if [ ! -e "${f}" ]; then
echo "atacworks Whl file does not exist"
exit 1
else
conda install -c conda-forge twine
# Change .whl package name to support PyPI upload
MODIFIED_WHL_NAME=$(dirname ${f})/$(basename "${f}" | sed -r "s/(.*-.+-.+)-.+-.+.whl/\1-none-any.whl/")
mv "${f}" "${MODIFIED_WHL_NAME}"
echo "File name ${f} was changed into ${MODIFIED_WHL_NAME}"
echo "Uploading file name ${f} to PYPI"
# Perform Upload
python3 -m twine upload --skip-existing "${WORKSPACE}"/atacworks_wheel/*
fi
Expand Down

0 comments on commit e9fa1e9

Please sign in to comment.