From a43a36cd7118e442fbb5fd1dfd5d60fc6d1f03fa Mon Sep 17 00:00:00 2001 From: ntadimeti Date: Mon, 3 Aug 2020 17:24:58 -0400 Subject: [PATCH 1/2] Fix atacworks wheel location --- ci/release/pypi_uploader.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/release/pypi_uploader.sh b/ci/release/pypi_uploader.sh index 178d8d65..c5f9bfc8 100644 --- a/ci/release/pypi_uploader.sh +++ b/ci/release/pypi_uploader.sh @@ -23,7 +23,7 @@ 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 From c859ca0d3aac970567eed6cea50e6f0896c0c30d Mon Sep 17 00:00:00 2001 From: ntadimeti Date: Mon, 3 Aug 2020 17:32:33 -0400 Subject: [PATCH 2/2] Remove renaming as package name reflects that already --- ci/release/pypi_uploader.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ci/release/pypi_uploader.sh b/ci/release/pypi_uploader.sh index c5f9bfc8..56ff272c 100644 --- a/ci/release/pypi_uploader.sh +++ b/ci/release/pypi_uploader.sh @@ -29,10 +29,7 @@ for f in "${WORKSPACE}"/atacworks_wheel/*.whl; do 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