From 93e51abe74e09b3ae255b9b12de307f45679acae Mon Sep 17 00:00:00 2001 From: Pete Jemian Date: Sat, 15 Feb 2020 09:09:59 -0600 Subject: [PATCH] fixes #287 --- publish.sh | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/publish.sh b/publish.sh index 2a26270f3..9c128f628 100755 --- a/publish.sh +++ b/publish.sh @@ -7,28 +7,28 @@ STARTED=`date` PACKAGE=`python setup.py --name` RELEASE=`python setup.py --version` -echo "(`date`) PACKAGE: ${PACKAGE}" -echo "(`date`) RELEASE: ${RELEASE}" +echo "# (`date`) PACKAGE: ${PACKAGE}" +echo "# (`date`) RELEASE: ${RELEASE}" if [[ ${RELEASE} == *dirty || ${RELEASE} == *+* ]] ; then - echo "version: ${RELEASE} not ready to publish" + echo "# version: ${RELEASE} not ready to publish" exit 1 fi -echo "# - - - - - - - - - - - - - - - - - - - - - - - build for PyPI" +echo "# (`date`) - - - - - - - - - - - - - - - - - - - - - - build for PyPI" ## PyPI Build and upload:: -echo "(`date`) Building for upload to PyPI" +echo "# (`date`) Building for upload to PyPI" python setup.py sdist bdist_wheel -echo "(`date`) Built for PyPI" +echo "# (`date`) Built for PyPI" -echo "# - - - - - - - - - - - - - - - - - - - - - - - upload to PyPI" +echo "# (`date`) - - - - - - - - - - - - - - - - - - - - - - upload to PyPI" twine upload dist/${PACKAGE}-${RELEASE}* -echo "(`date`) Uploaded to PyPI" +echo "# (`date`) Uploaded to PyPI" -echo "# - - - - - - - - - - - - - - - - - - - - - - - conda build" +echo "# (`date`) - - - - - - - - - - - - - - - - - - - - - - conda build" ## Conda Build and upload:: @@ -41,30 +41,30 @@ else # production releases CHANNEL=aps-anl-tag fi -echo "(`date`) CHANNEL: ${CHANNEL}" +echo "# (`date`) CHANNEL: ${CHANNEL}" ### publish (from linux) -echo "(`date`) Building for upload to conda" +echo "# (`date`) Building for upload to conda" export CONDA_BLD_PATH=/tmp/conda-bld /bin/mkdir -p ${CONDA_BLD_PATH} conda build ./conda-recipe/ -echo "(`date`) Built for conda" +echo "# (`date`) Built for conda" -echo "# - - - - - - - - - - - - - - - - - - - - - - - upload conda" +echo "# (`date`) - - - - - - - - - - - - - - - - - - - - - - upload conda" BUILD_DIR=${CONDA_BLD_PATH}/noarch _package_=$(echo ${PACKAGE} | tr '[:upper:]' '[:lower:]') BUNDLE=${BUILD_DIR}/${_package_}-${RELEASE}-*_0.tar.bz2 -echo "(`date`) uploading to anaconda" -echo "(`date`) CHANNEL: ${CHANNEL}" +echo "# (`date`) uploading to anaconda" +echo "# (`date`) CHANNEL: ${CHANNEL}" anaconda upload -u ${CHANNEL} ${BUNDLE} # also post to my personal channel anaconda upload ${BUNDLE} -echo "(`date`) Uploaded to anaconda" +echo "# (`date`) Uploaded to anaconda" -echo "(${STARTED}) started publishing script" -echo "(`date`) finished publishing script" +echo "# (${STARTED}) started publishing script" +echo "# (`date`) finished publishing script"