@@ -10,6 +10,7 @@ WHEEL_FILE="requirements.wheel.txt"
1010SOURCE_HASH_FILE=" requirements.hashes.source.txt"
1111WHEEL_HASH_FILE=" requirements.hashes.wheel.txt"
1212BUILD_FILE=" requirements-build.txt"
13+ RHOAI_INDEX_URL=" https://console.redhat.com/api/pypi/public-rhai/rhoai/3.2/cpu-ubi9/simple/"
1314
1415# extra wheels to be included in the wheel list, often come from build-time dependencies
1516EXTRA_WHEELS=" uv,pip,maturin"
@@ -22,7 +23,7 @@ uv pip compile pyproject.toml -o "$RAW_REQ_FILE" \
2223 --python-platform x86_64-unknown-linux-gnu \
2324 --python-version 3.12 \
2425 --refresh \
25- --index https://console.redhat.com/api/pypi/public-rhai/rhoai/3.2/cpu-ubi9/simple/ \
26+ --index ${RHOAI_INDEX_URL} \
2627 --default-index https://pypi.org/simple/ \
2728 --index-strategy unsafe-best-match \
2829 --emit-index-annotation \
@@ -34,7 +35,7 @@ echo "# Packages from pypi.org" > "$SOURCE_FILE"
3435echo " # This file was autogenerated by split_requirements.sh" >> " $SOURCE_FILE "
3536echo " # Packages from console.redhat.com" > " $WHEEL_FILE "
3637echo " # This file was autogenerated by split_requirements.sh" >> " $WHEEL_FILE "
37- echo " --index-url https://console.redhat.com/api/pypi/public-rhai/rhoai/3.2/cpu-ubi9/simple/ " >> " $WHEEL_FILE "
38+ echo " --index-url ${RHOAI_INDEX_URL} " >> " $WHEEL_FILE "
3839
3940current_package=" "
4041
@@ -52,7 +53,7 @@ while IFS= read -r line || [[ -n "$line" ]]; do
5253 echo " $current_package " >> " $SOURCE_FILE "
5354 elif [[ " $NO_WHEEL_PACKAGES " == * " $package_name " * ]]; then
5455 echo " $current_package " >> " $SOURCE_FILE "
55- elif [[ " $index_url " == " https://console.redhat.com/api/pypi/public-rhai/rhoai/3.2/cpu-ubi9/simple/ " ]]; then
56+ elif [[ " $index_url " == " ${RHOAI_INDEX_URL} " ]]; then
5657 echo " $current_package " >> " $WHEEL_FILE "
5758 fi
5859 current_package=" "
@@ -72,7 +73,7 @@ echo "Packages from pypi.org written to: $SOURCE_FILE ($(wc -l < "$SOURCE_FILE")
7273echo " Packages from console.redhat.com written to: $WHEEL_FILE ($( wc -l < " $WHEEL_FILE " ) packages)"
7374
7475
75- uv pip compile " $WHEEL_FILE " --refresh --generate-hashes --index-url https://console.redhat.com/api/pypi/public-rhai/rhoai/3.2/cpu-ubi9/simple/ --python-version 3.12 --emit-index-url --no-deps --no-annotate --universal > " $WHEEL_HASH_FILE "
76+ uv pip compile " $WHEEL_FILE " --refresh --generate-hashes --index-url " ${RHOAI_INDEX_URL} " --python-version 3.12 --emit-index-url --no-deps --no-annotate --universal > " $WHEEL_HASH_FILE "
7677uv pip compile " $SOURCE_FILE " --refresh --generate-hashes --python-version 3.12 --emit-index-url --no-deps --no-annotate > " $SOURCE_HASH_FILE "
7778uv run pybuild-deps compile --output-file= " $BUILD_FILE " " $SOURCE_FILE "
7879
0 commit comments