If you are reading this, you probably forgot how to release a new version. Keep reading.
Start your project with a cookiecutter template.
Start your git flow workflow:
git flow init
3. Create a new milestone in GitHub. Plan the features of your new release. Assign existing bugs to your new milestone. 4. Start a new feature:
git flow feature start <feature name>
5. Code, code and code. More coding. Mess it up several times. Push to feature branch. Watch Travis go red. Write unit tests. Watch Travis go red again. Don't leave uncommitted changes. 6. Finish your feature:
git flow feature finish <feature name>
Repeat 4-6 for every other feature you have planned for this release.
When you're done with the features and ready to publish, start a new release:
git flow release start <release number>
Bump your version (check everything before next step):
bumpversion --no-commit <major, minor or patch>
Update your changelog (edit HISTORY.rst after to customize):
gitchangelog > HISTORY.rst
Commit your changes to version files and changelog:
git commit -aS -m "Updating Changelog and version."
Delete the tag made by bumpversion:
git tag -d <release number>
Finish your release:
git flow release finish -s -p <release number>
15. Draft a new release in GitHub (based on the new version tag) and include a description. Also pick a codename because it makes you cool.
Close the milestone in GitHub.
Publish your new version to PyPI:
make release
Write about your new version in your blog. Tweet it, post it on facebook.
Create a new milestone in GitHub. Assign existing bugs to your new milestone.
Start a new hotfix:
git flow hotfix start <new version>
Code your hotfix.
Bump your version (check everything before next step):
bumpversion --no-commit <major, minor or patch>
Update your changelog (edit HISTORY.rst after to customize):
gitchangelog > HISTORY.rst
Commit your changes to version files and changelog:
git commit -aS -m "Updating Changelog and version."
Delete the tag made by bumpversion:
git tag -d <new version>
Finish your hotfix:
git flow hotfix finish -s -p <new version>
10. Draft a new release in GitHub (based on the new version tag) and include a description. Don't change the codename if it is a hotfix.
Close the milestone in GitHub.
Publish your new version to PyPI:
make release
Write about your new version in your blog. Tweet it, post it on facebook.