Initial wheel build and publishing infrastructure

This commit is contained in:
Ashwin Srinath
2025-12-03 10:14:15 -05:00
parent 34f1e2a7ee
commit 29389b5791
12 changed files with 417 additions and 2 deletions

View File

@@ -0,0 +1,40 @@
#!/bin/bash
# Argument parser for Python CI scripts.
parse_python_args() {
# Initialize variables
py_version=""
while [[ $# -gt 0 ]]; do
case $1 in
-py-version=*)
py_version="${1#*=}"
shift
;;
-py-version)
if [[ $# -lt 2 ]]; then
echo "Error: -py-version requires a value" >&2
return 1
fi
py_version="$2"
shift 2
;;
*)
# Unknown argument, ignore
shift
;;
esac
done
# Export for use by calling script
export py_version
}
require_py_version() {
if [[ -z "$py_version" ]]; then
echo "Error: -py-version is required" >&2
[[ -n "$1" ]] && echo "$1" >&2
return 1
fi
}