File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,6 @@ if [ -z "$VERSION" ]; then
1717fi
1818echo " Version is $VERSION "
1919
20- INDEX=" ${PYPI_INDEX:- pypi.org} "
21-
2220# Step 2: Get package name from pyproject.toml
2321PACKAGE_NAME=$( awk -F' =' ' /^name/ {gsub(/[" ]/, "", $2); print $2}' " $PYPROJECT_FILE " )
2422if [ -z " $PACKAGE_NAME " ]; then
2725echo " PACKAGE_NAME is $PACKAGE_NAME "
2826
2927# Step 3: Get latest release version from PyPI
28+ INDEX=" ${PYPI_INDEX:- pypi.org} "
3029PUBLISHED_VERSIONS=$( curl -s " https://$INDEX /pypi/$PACKAGE_NAME /json" | jq -r ' .releases | keys | .[]' )
3130
3231if [ -z " $PUBLISHED_VERSIONS " ]; then
33- error_exit " Unable to retrieve published version from PyPI for $PACKAGE_NAME "
32+ error_exit " Unable to retrieve published version from $INDEX for $PACKAGE_NAME "
3433fi
35- echo " Published PyPI versions are $PUBLISHED_VERSIONS "
34+ echo " Published PyPI versions on $INDEX are $PUBLISHED_VERSIONS "
3635
3736# Step 4: Check if current version is in the list of published versions
3837PUBLISHING=" true"
You can’t perform that action at this time.
0 commit comments