Skip to content

Commit 982d86b

Browse files
authored
Fix publishing wheels for legacy package neo4j-driver (#1139)
1 parent 05e16fe commit 982d86b

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

bin/check-dist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ else
1919
|| check_file "${DIST}/${PACKAGE}-${VERSION}.tar.gz"); then
2020
STATUS=1
2121
fi
22+
if ! (check_file "${DIST}/${NORMALIZED_PACKAGE}-${VERSION}-py3-none-any.whl" \
23+
|| check_file "${DIST}/${PACKAGE}-${VERSION}-py3-none-any.whl"); then
24+
STATUS=1
25+
fi
2226
done
2327
fi
2428

bin/release

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ fi
2222
source "${ROOT}/bin/dist-functions"
2323
for PACKAGE in "neo4j-driver" "neo4j"; do
2424
NORMALIZED_PACKAGE="$(normalize_dist_name "$PACKAGE")"
25+
2526
if check_file "${DIST}/${NORMALIZED_PACKAGE}-${VERSION}.tar.gz"
2627
then
2728
TWINE_ARGS="${TWINE_ARGS} ${DIST}/${NORMALIZED_PACKAGE}-${VERSION}.tar.gz"
@@ -31,18 +32,16 @@ for PACKAGE in "neo4j-driver" "neo4j"; do
3132
echo "Source distribution file for ${PACKAGE} not found"
3233
exit 1
3334
fi
34-
done
35-
36-
NORMALIZED_PACKAGE="$(normalize_dist_name "neo4j")"
37-
if check_file "${DIST}/${NORMALIZED_PACKAGE}-${VERSION}-py3-none-any.whl"
38-
then
39-
TWINE_ARGS="${TWINE_ARGS} ${DIST}/${NORMALIZED_PACKAGE}-${VERSION}-py3-none-any.whl"
40-
elif check_file "${DIST}/${PACKAGE}-${VERSION}-py3-none-any.whl"; then
41-
TWINE_ARGS="${TWINE_ARGS} ${DIST}/${PACKAGE}-${VERSION}-py3-none-any.whl"
42-
else
43-
echo "Wheel distribution file for ${PACKAGE} not found"
44-
exit 1
45-
fi
4635

36+
if check_file "${DIST}/${NORMALIZED_PACKAGE}-${VERSION}-py3-none-any.whl"
37+
then
38+
TWINE_ARGS="${TWINE_ARGS} ${DIST}/${NORMALIZED_PACKAGE}-${VERSION}-py3-none-any.whl"
39+
elif check_file "${DIST}/${PACKAGE}-${VERSION}-py3-none-any.whl"; then
40+
TWINE_ARGS="${TWINE_ARGS} ${DIST}/${PACKAGE}-${VERSION}-py3-none-any.whl"
41+
else
42+
echo "Wheel distribution file for ${PACKAGE} not found"
43+
exit 1
44+
fi
45+
done
4746

4847
twine upload ${TWINE_ARGS}

0 commit comments

Comments
 (0)