compatibility update for Python 3.6

This commit is contained in:
2021-04-14 00:59:02 +00:00
parent c63d2dd4bb
commit d111d402db
3 changed files with 53 additions and 8 deletions

View File

@@ -8,22 +8,24 @@ username="__token__"
test_token=`cat test.token`
pypi_token=`cat pypi.token`
#-------------------------------------------------------------------------------------------------------
#--------------------------------------------------------------------------------------------------
# Handle command line arguments
#-------------------------------------------------------------------------------------------------------
#--------------------------------------------------------------------------------------------------
_USERNAME="__token__"
_TOKEN=""
_TESTREPO=$_FALSE
PTYPE="test"
#--- FUNCTION ----------------------------------------------------------------------------------------
#--- FUNCTION -----------------------------------------------------------------------------------
# NAME: __usage
# DESCRIPTION: Display usage information.
#-------------------------------------------------------------------------------------------------------
#--------------------------------------------------------------------------------------------------
__usage() {
cat << EOT
Usage : ${__ScriptName} [options] <publish-type>
Options:
-h Display this help
Publish types:
- pypi Publish to pypi
- test Publish to test.pypi.org