Skip to content

Instantly share code, notes, and snippets.

@kwmonroe
Last active October 2, 2019 22:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kwmonroe/6d861c247950dc5bf1221f3b4124cd33 to your computer and use it in GitHub Desktop.
Save kwmonroe/6d861c247950dc5bf1221f3b4124cd33 to your computer and use it in GitHub Desktop.
update conjure-up for brew
# 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