Skip to content

Commit

Permalink
CI: further fix release scripts to work with PEP 625 (#1052)
Browse files Browse the repository at this point in the history
Continuation of #1050
  • Loading branch information
robsdedude authored Apr 26, 2024
1 parent faf7366 commit 25515b5
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions bin/release
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,20 @@ if [ "${VERSION}" == "" ]
then
echo "usage: ${SCRIPT} VERSION"
exit 1
else
source "${ROOT}/bin/dist-functions"
twine upload ${TWINE_ARGS} \
"${DIST}/neo4j-driver-${VERSION}.tar.gz" \
"${DIST}/neo4j-${VERSION}.tar.gz"
fi

source "${ROOT}/bin/dist-functions"
for PACKAGE in "neo4j-driver" "neo4j"; do
NORMALIZED_PACKAGE="$(normalize_dist_name "$PACKAGE")"
if check_file "${DIST}/${NORMALIZED_PACKAGE}-${VERSION}.tar.gz"
then
TWINE_ARGS="${TWINE_ARGS} ${DIST}/${NORMALIZED_PACKAGE}-${VERSION}.tar.gz"
elif check_file "${DIST}/${PACKAGE}-${VERSION}.tar.gz"; then
TWINE_ARGS="${TWINE_ARGS} ${DIST}/${PACKAGE}-${VERSION}.tar.gz"
else
echo "Distribution file for ${PACKAGE} not found"
exit 1
fi
done

twine upload ${TWINE_ARGS}

0 comments on commit 25515b5

Please sign in to comment.