development · Python

Committing the new version file to GitHub

As part of committing recently made changes to GitHub you also have to commit the changed file. Perhaps this is overly lazy, but I wrote a small Python script called to save myself just a few keystrokes per commit. When I prepared the to submit this script to PyPI I discovered someone else already made a far more complicated bumpversion package, so I decided to name mine bumpversionsimple.

This script will search for a file in the subdirectories of the current directory. It will read the file and create a commit message when committing the changes. Note that when it finds multiple files (unexpected in a project directory!) it will just print out an error, do nothing and exit.

Installation is simple:

pip install bumpversionsimple




Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s