On your build Pi, perform the following steps:
Ensure you have a reliable Internet connection (preferably Ethernet).
Ensure you have the following Debian packages installed:
devscripts, dput, python-all, python3-all, gnupg, build-essential, git, python-setuptools, python3-setuptools, python-rpi.gpio, python3-rpi.gpio
Ensure you have a valid
~/.pypirc
configuration. For example:[distutils] index-servers = pypi [pypi] username:my_username password:my_long_password
Ensure you have a valid
~/.dput.cf
setup which includes the[raspberrypi]
target. For example:[raspberrypi] fqdn = build-master.raspberrypi.org incoming = incoming login = incoming method = scp
Ensure you have a valid public/private key-pair defined for GNUPG.
In the
python-gpiozero
directory, runmake release
. This will launchdch
to update the Debian changelog. Fill this out properly (ticket references!) and the release will be generated, tagged, signed, and registered with GitHub and PyPI.Note
Although the release has been registered at this point, no packages have been generated or uploaded to any service.
Still in the
python-gpiozero
directory, runmake upload
. This will generate the actual debian packages, upload them to Raspbian, and upload the source package to PyPI.On GitHub, close any milestone associated with the release.
On ReadTheDocs, update the project configuration to build the new release, then set it to the default version for the project.