This contains configuration useful in updating the black package in CIPD.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
cargo install pyoxidizer
BLACK_VERSION=$(pip3 install black== 2>&1 | grep versions: | sed -E 's/.*, ([a-z0-9\.]+)\)/\1/') sed -E -e "s/black==[^\"]+\"/black==${BLACK_VERSION}\"/" -i '' ./pyoxidizer.bzl pyoxidizer build install OS=$(if [[ $(uname) == 'Darwin' ]]; then echo 'mac'; else echo 'linux'; fi) cipd create -tag version:${BLACK_VERSION} -pkg-def ./cipd-${OS}.yaml