A developer should use the following steps to update the version X.Y.Z
of Ninja associated with the current Ninja python distributions.
Available Ninja archives can be found here.
If using nox, run:
nox -s bump -- <version>
And follow the instructions it gives you. Leave off the version to bump to the latest version. Add --commit to run the commit procedure.
Install requests and githubrelease:
$ pip install requests githubrelease
Execute scripts/update_ninja_version.py command line tool with the desired
X.Y.Z
Ninja version available for download. For example:$ release=1.11.1.g95dee.kitware.jobserver-1 $ python scripts/update_ninja_version.py ${release} Collecting URLs and SHA256s from 'https://github.com/Kitware/ninja/archive/v1.10.0.gfb670.kitware.jobserver-1' Downloading https://github.com/Kitware/ninja/archive/v1.11.1.g95dee.kitware.jobserver-1.tar.gz Downloading https://github.com/Kitware/ninja/archive/v1.11.1.g95dee.kitware.jobserver-1.tar.gz - done Downloading https://github.com/Kitware/ninja/archive/v1.11.1.g95dee.kitware.jobserver-1.zip Downloading https://github.com/Kitware/ninja/archive/v1.11.1.g95dee.kitware.jobserver-1.zip - done Collecting URLs and SHA256s from 'https://github.com/Kitware/ninja/archive/v1.10.0.gfb670.kitware.jobserver-1' - done Updating 'NinjaUrls.cmake' with CMake version 1.11.1.g95dee.kitware.jobserver-1 Updating 'NinjaUrls.cmake' with CMake version 1.11.1.g95dee.kitware.jobserver-1 - done Updating README.rst Updating README.rst - done Updating docs/update_ninja_version.rst Updating docs/update_ninja_version.rst - done Updating tests/test_ninja.py Updating tests/test_ninja.py - done
Create a topic named update-to-ninja-X.Y.Z and commit the changes. For example:
release=1.11.1.g95dee.kitware.jobserver-1 git checkout -b update-to-ninja-${release} git add NinjaUrls.cmake README.rst docs/update_ninja_version.rst tests/test_ninja.py git commit -m "Update to Ninja ${release}"
Create a Pull Request.
If all CI tests are passing, merge the topic and consider making a new release.