4 ms·
A thousand ways. One really good idea I read was that you write an empty script, which prints the instructions for each step and you press enter, it prints the
by kissgyorgy 7y ago
A thousand ways. One really good idea I read was that you write an empty script, which prints the instructions for each step and you press enter, it prints the next step. It can only print instructions at first, then later, you can write code to automate some (maybe even validate things) steps. Something like this:
def git_tag():
print("1. git tag the repository")
input("Press enter to continue")
def git_push():
print("2. git push the repository")
input("Press enter to continue")
def pip_deploy():
print("3. Deploy, run: python setup.py sdist upload")
input("Press enter to continue")
def main():
git_tag()
git_push()
pip_deploy()
As simple as that! Then later, you could write code for every step as you have time.
- x1798DE 7y ago> print("3. Deploy, run: python setup.py sdist upload") The setup.py upload command is actually deprecated and has been replaced with "twine upload". https://setuptools.readthedocs.io/en/latest/setuptools.html#upload-upload-source-and-or-egg-distributions-to-pypi https://setuptools.readthedocs.io/en/latest/setuptools.html#... https://pypi.org/project/twine/ https://pypi.org/project/twine/
- silvester23 7y agoI think this might be the article you read: https://blog.danslimmon.com/2019/07/15/do-nothing-scripting-the-key-to-gradual-automation/ https://blog.danslimmon.com/2019/07/15/do-nothing-scripting-...
- kissgyorgy 7y agoYes! Thanks! I couldn't find it.
- blesi 7y agoAt Braintree, we developed a framework for this: https://github.com/braintree/runbook https://github.com/braintree/runbook One of our biggest use cases is for including ample sanity checks as part of our releases to make sure we don't mess it up.