Last active
October 2, 2019 22:23
-
-
Save kwmonroe/6d861c247950dc5bf1221f3b4124cd33 to your computer and use it in GitHub Desktop.
update conjure-up for brew
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# update brew | |
brew update | |
cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core | |
# fork https://github.com/Homebrew/homebrew-core | |
git fetch --all | |
git checkout master | |
git pull | |
git push <FORK> | |
git checkout -b conjure-up-2.6.7 | |
# use poet to generate resources | |
## https://github.com/tdsmith/homebrew-pypi-poet | |
pushd $HOME | |
python3 -m virtualenv cu267 | |
. cu267/bin/activate | |
pip install juju homebrew-pypi-poet | |
poet juju -a aiofiles -a env -a Jinja2 -a juju-wait -a kv -a melddict -a oauthlib -a prettytable -a progressbar2 -a psutil -a python-utils -a raven -a requests-oauthlib -a sh -a termcolor -a ubuntui -a urwid -a pyvmomi | |
## verify revs (ensure env, juju, juju-wait, prettytable are what you want) | |
## update $(brew --prefix)/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/conjure-up.rb with new resources stanzas | |
deactivate | |
rm -rf cu267 | |
popd | |
# test changes | |
## update $(brew --prefix)/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/conjure-up.rb with new conjure-up release | |
brew update | |
brew uninstall --force conjure-up | |
brew install --build-from-source conjure-up | |
## double check output matches resource revs | |
brew test conjure-up | |
## audit check | |
brew audit --strict conjure-up | |
# commit and PR | |
git commit -am 'conjure-up 2.6.7\n\nBump core conjure-up to match latest upstream release. Also refresh the related resources to latest tested revisions.' | |
git push --set-upstream <FORK> conjure-up-2.6.7 | |
## create PR against https://github.com/Homebrew/homebrew-core | |
git checkout master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment