2023-09-25 10:27:42 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# python version must match lowest supported (3.8)
|
|
|
|
major=3
|
|
|
|
minor=8
|
|
|
|
if ! python -c "import sys; assert sys.version_info.major == $major and sys.version_info.minor == $minor"; then
|
|
|
|
echo "python version not equal to expected $major.$minor: $(python --version)"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2023-10-26 12:22:40 -05:00
|
|
|
# NOTE(alan): Order matters in compiling. Start with base and test. Then do the rest in any order.
|
|
|
|
echo "running: pip-compile --upgrade base.in"
|
|
|
|
pip-compile --upgrade "requirements/base.in" -c requirements/constraints.in
|
|
|
|
echo "running: pip-compile --upgrade test.in"
|
|
|
|
pip-compile --upgrade "requirements/test.in" -c requirements/constraints.in
|
|
|
|
|
|
|
|
for file in requirements/*.in; do
|
|
|
|
if [[ "$file" =~ "constraints" ]] || [[ "$file" =~ "base" ]] || [[ "$file" =~ "test" ]]; then
|
|
|
|
continue;
|
|
|
|
fi;
|
|
|
|
echo "running: pip-compile --upgrade $file"
|
|
|
|
pip-compile --upgrade "$file" -c requirements/constraints.in
|
|
|
|
done
|
|
|
|
|
2023-10-24 10:54:00 -04:00
|
|
|
for file in requirements/**/*.in; do
|
2023-10-26 12:22:40 -05:00
|
|
|
if [[ "$file" =~ "constraints" ]] || [[ "$file" =~ "base" ]] || [[ "$file" =~ "test" ]]; then
|
2023-09-25 10:27:42 -04:00
|
|
|
continue;
|
|
|
|
fi;
|
|
|
|
echo "running: pip-compile --upgrade $file"
|
2023-10-18 17:36:51 -07:00
|
|
|
pip-compile --upgrade "$file" -c requirements/constraints.in
|
2023-09-25 10:27:42 -04:00
|
|
|
done
|