build_packages.sh
#!/bin/bash
# Builds packages, sets new versions, but doesn't upload anything to pypi.
# Set DEV_RELEASE=1 to build the dev of packages.
set -ex
# Change to packages directory.
cd "$(dirname "$0")"
# Ensure ordered by dependency dag
while read -r package_dir; do
# Ignore empty lines
if [ -z "$package_dir" ]; then
continue
fi
# Ignore lines beginning with `#`
if [[ $package_dir =~ ^#.* ]]; then
continue
fi
printf "\n========= RELEASING PACKAGE %s =========\n\n" "$package_dir"
cd "$package_dir"
make clean
make commit-version
make dist
make new-version
cd ..
done < packages_by_dep_dag.txt