You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@systemds.apache.org by ja...@apache.org on 2021/12/02 16:18:45 UTC

[systemds] branch main updated: [MINOR] Update Python version info to x.y.z-dev in pypi-upload script

This is an automated email from the ASF dual-hosted git repository.

janardhan pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/systemds.git


The following commit(s) were added to refs/heads/main by this push:
     new c038d6f  [MINOR] Update Python version info to x.y.z-dev in pypi-upload script
c038d6f is described below

commit c038d6fbadf6045e12834b97d2bb14f502614781
Author: Janardhan Pulivarthi <j1...@protonmail.com>
AuthorDate: Thu Dec 2 21:48:36 2021 +0530

    [MINOR] Update Python version info to x.y.z-dev in pypi-upload script
    
    as per the version scheme introduced in commit https://github.com/apache/systemds/commit/2c90f9e7009d766ed0cb887d4f319c54c322e410
    
    Closes  #1470.
---
 dev/release/pypi-upload.sh | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/dev/release/pypi-upload.sh b/dev/release/pypi-upload.sh
index 4fe763d..8c3341b 100755
--- a/dev/release/pypi-upload.sh
+++ b/dev/release/pypi-upload.sh
@@ -61,8 +61,8 @@ printf "Is this RC voted and approved by PMC? [Yes/No]: \n"
 # Docs: https://www.gnu.org/software/bash/manual/bash.html#index-case
 select yn in "Yes" "No"; do
   case $yn in
-      Yes ) sed -i "s/$RELEASE_VERSION-SNAPSHOT/$RELEASE_VERSION/" systemds/project_info.py; break ;;
-      No ) sed -i "s/$RELEASE_VERSION-SNAPSHOT/$RELEASE_TAG/" systemds/project_info.py; break ;;
+      Yes ) sed -i "s/$RELEASE_VERSION-dev/$RELEASE_VERSION/" systemds/project_info.py; break ;;
+      No ) sed -i "s/$RELEASE_VERSION-dev/$RELEASE_TAG/" systemds/project_info.py; break ;;
       * ) echo "Yes or No response is required.";;
   esac
 done
@@ -79,15 +79,14 @@ python3 -m twine check dist/*
 #              use Edit->paste to paste the API token (https://pypi.org/help/#invalid-auth)
 #            else, use `right click` for paste in the terminal.
 
-# Dev:
-# Test upload to test.pypi.org
-# Credentials are
-# username: __token__ 
-# password: pypi-DU5y...
-
 if [[ $dry_run_flag != 1 ]]; then
   python -m twine upload dist/*
 else
+  # Development test:
+  # Test upload to test.pypi.org
+  # Credentials are
+  # username: __token__ 
+  # password: pypi-DU5y...
   python -m twine upload --repository testpypi dist/*
 fi