CLI to run toolforge related commands
Local development environment (guideline)
Tox on debian testing
Clone the repo including commit hooks (instructions here https://gerrit.wikimedia.org/r/admin/repos/cloud/toolforge/toolforge-cli).
~:$ apt install tox
Move to the directory where you cloned the repo, and run tox:
That will run the tests and create a virtualenv that you can use to manually debug anything you need, to enter it:
/path/to/repo/toolforge-cli:$ source .tox/py-tests/bin/activate
Building the debian packages
For this you'll need debuild installed:
~:$ sudo apt install debuild
Install the build dependencies, this requires devscripts and equivs:
~:$ sudo apt install devscripts equivs ... /path/to/repo/toolforge-cli:$ sudo mk-build-deps --install debian/control
Or just manually check the
Build-Dependencies and install them manually.
Note that it will build a debian package right there, and install it, you can remove it to clean up the dependencies any time.
Now for the actuall build:
/path/to/repo/toolforge-cli:$ debuild -uc -us
That will end up creating an unsigned package under
If you want to sign it, you will have to do something like:
/path/to/repo/toolforge-cli:$ debuild -firstname.lastname@example.org
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for toolforge_cli-0.1.2-py3-none-any.whl