Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


I think this might be the article you read:

https://blog.danslimmon.com/2019/07/15/do-nothing-scripting-...


Yes! Thanks! I couldn't find it.


> 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#... https://pypi.org/project/twine/


At Braintree, we developed a framework for this:

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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: