Skip to content

Commit 25515b5

Browse files
authored
CI: further fix release scripts to work with PEP 625 (#1052)
Continuation of #1050
1 parent faf7366 commit 25515b5

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

bin/release

+16-5
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,20 @@ if [ "${VERSION}" == "" ]
1717
then
1818
echo "usage: ${SCRIPT} VERSION"
1919
exit 1
20-
else
21-
source "${ROOT}/bin/dist-functions"
22-
twine upload ${TWINE_ARGS} \
23-
"${DIST}/neo4j-driver-${VERSION}.tar.gz" \
24-
"${DIST}/neo4j-${VERSION}.tar.gz"
2520
fi
21+
22+
source "${ROOT}/bin/dist-functions"
23+
for PACKAGE in "neo4j-driver" "neo4j"; do
24+
NORMALIZED_PACKAGE="$(normalize_dist_name "$PACKAGE")"
25+
if check_file "${DIST}/${NORMALIZED_PACKAGE}-${VERSION}.tar.gz"
26+
then
27+
TWINE_ARGS="${TWINE_ARGS} ${DIST}/${NORMALIZED_PACKAGE}-${VERSION}.tar.gz"
28+
elif check_file "${DIST}/${PACKAGE}-${VERSION}.tar.gz"; then
29+
TWINE_ARGS="${TWINE_ARGS} ${DIST}/${PACKAGE}-${VERSION}.tar.gz"
30+
else
31+
echo "Distribution file for ${PACKAGE} not found"
32+
exit 1
33+
fi
34+
done
35+
36+
twine upload ${TWINE_ARGS}

0 commit comments

Comments
 (0)