1
0
mirror of https://github.com/ihabunek/toot.git synced 2024-11-03 04:17:21 -05:00
toot/docs/release.rst
2020-01-21 09:46:09 +01:00

48 lines
1.5 KiB
ReStructuredText

=================
Release procedure
=================
This document is a checklist for creating a toot release.
Currently the process is pretty manual and would benefit from automatization.
Bump & tag version
------------------
* Update the version number in ``setup.py``
* Update the version number in ``toot/__init__.py``
* Update ``changelog.yaml`` with the release notes & date
* Run ``./scripts/generate_changelog > CHANGELOG.md`` to generate a human readable changelog
* Commit the changes
* Run ``./scripts/tag_release <version>`` to tag a release in git
* Run ``git push --follow-tags`` to upload changes and tag to Github
Publishing to PyPI
------------------
* ``make dist`` to create source and wheel distributions
* ``make publish`` to push them to PyPI
Publishing to Debian repo
-------------------------
Publishing deb packages is done via `ihabunek/packages <https://github.com/ihabunek/packages>`_.
* run ``make deb_dist`` to create the debian package
* copy deb file to packages project directory
* in packages project directory:
* ``make`` to build the repo files
* ``make publish`` to send them to the server
Github release
--------------
* `Create a release <https://github.com/ihabunek/toot/releases/>`_ for the newly
pushed tag, paste changelog since last tag in the description
* Upload the assets generated in previous two steps to the release:
* source dist (.zip and .tar.gz)
* wheel distribution (.whl)
* debian package (.deb)
TODO: this can be automated: https://developer.github.com/v3/repos/releases/