File tree Expand file tree Collapse file tree
scripts/verify-sub-packages Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,6 +38,14 @@ if [ -z "$VERSION" ] || [ -z "$RC" ]; then
3838fi
3939
4040SCRIPT_DIR=" $( cd " $( dirname " $0 " ) " && pwd) "
41+
42+ # Check prerequisites
43+ for cmd in gpg java flit uv svn; do
44+ if ! command -v " $cmd " > /dev/null 2>&1 ; then
45+ echo " ERROR: $cmd is required but not found. Please install it."
46+ exit 1
47+ fi
48+ done
4149PACKAGE=" apache-hamilton-contrib"
4250SRC_TAR=" ${PACKAGE} -${VERSION} -incubating-src.tar.gz"
4351WHEEL=" apache_hamilton_contrib-${VERSION} -py3-none-any.whl"
@@ -135,6 +143,9 @@ cd /tmp # prevent '' in sys.path from resolving local hamilton checkout
135143
136144uv pip install -q " $ARTIFACTS_DIR /$WHEEL " apache-hamilton
137145
146+ # Run from /tmp to avoid CWD shadowing the installed hamilton package
147+ cd /tmp
148+
138149python -c " import importlib.metadata; assert importlib.metadata.version('apache-hamilton-contrib') == '${VERSION} '"
139150echo " ✓ Version correct"
140151
Original file line number Diff line number Diff line change @@ -38,6 +38,14 @@ if [ -z "$VERSION" ] || [ -z "$RC" ]; then
3838fi
3939
4040SCRIPT_DIR=" $( cd " $( dirname " $0 " ) " && pwd) "
41+
42+ # Check prerequisites
43+ for cmd in gpg java flit uv svn; do
44+ if ! command -v " $cmd " > /dev/null 2>&1 ; then
45+ echo " ERROR: $cmd is required but not found. Please install it."
46+ exit 1
47+ fi
48+ done
4149PACKAGE=" apache-hamilton-lsp"
4250SRC_TAR=" ${PACKAGE} -${VERSION} -incubating-src.tar.gz"
4351WHEEL=" apache_hamilton_lsp-${VERSION} -py3-none-any.whl"
Original file line number Diff line number Diff line change @@ -38,6 +38,14 @@ if [ -z "$VERSION" ] || [ -z "$RC" ]; then
3838fi
3939
4040SCRIPT_DIR=" $( cd " $( dirname " $0 " ) " && pwd) "
41+
42+ # Check prerequisites
43+ for cmd in gpg java flit uv svn; do
44+ if ! command -v " $cmd " > /dev/null 2>&1 ; then
45+ echo " ERROR: $cmd is required but not found. Please install it."
46+ exit 1
47+ fi
48+ done
4149PACKAGE=" apache-hamilton-sdk"
4250SRC_TAR=" ${PACKAGE} -${VERSION} -incubating-src.tar.gz"
4351WHEEL=" apache_hamilton_sdk-${VERSION} -py3-none-any.whl"
Original file line number Diff line number Diff line change @@ -38,6 +38,14 @@ if [ -z "$VERSION" ] || [ -z "$RC" ]; then
3838fi
3939
4040SCRIPT_DIR=" $( cd " $( dirname " $0 " ) " && pwd) "
41+
42+ # Check prerequisites
43+ for cmd in gpg java flit uv svn; do
44+ if ! command -v " $cmd " > /dev/null 2>&1 ; then
45+ echo " ERROR: $cmd is required but not found. Please install it."
46+ exit 1
47+ fi
48+ done
4149PACKAGE=" apache-hamilton-ui"
4250SRC_TAR=" ${PACKAGE} -${VERSION} -incubating-src.tar.gz"
4351WHEEL=" apache_hamilton_ui-${VERSION} -py3-none-any.whl"
You can’t perform that action at this time.
0 commit comments