An admin CLI tool to process Fedora SCM requests.
The default configuration is located at /etc/fedscm-admin/config.ini
. For more
information on this, please view the "Default Configuration" section below.
The user specified configuration should be located in
~/.config/fedscm-admin/config.ini
. To add an additional path, you may set the
environment variable FEDSCM_ADMIN_CONFIG
to the path of a configuration file.
To get started, you'll also need to get a Pagure API key to create projects/repos and add it to
~/.config/fedscm-admin/config.ini
. To do this:
~/.config/fedscm-admin/config.ini
[admin] pagure_api_token = <api_key_here>
Additionally, you'll need an API key on the "releng/fedora-scm-requests" repo to comment and close tickets. To do this:
~/.config/fedscm-admin/config.ini
[admin] pagure_ticket_api_token = <api_key_here>
Additionally, you'll need an API token to make modifications in PDC. To do this:
[admin] pdc_api_token = <api_key_here>
Lastly, since the tool uses git, you'll need to trust the remote git
server's SSH key. To do this, make sure you have the proper "@cert-authority" entries
in your ~/.ssh/known_hosts
file. One way to achieve this is by running the following
command:
curl --silent https://admin.fedoraproject.org/ssh_known_hosts >> ~/.ssh/known_hosts
The default configuration is located at /etc/fedscm-admin/config.ini
. This
sets the values for:
releng/fedora-scm-requests
repository. This defaults to https://pagure.io
.https://src.fedoraproject.org
.https://pdc.fedoraproject.org
.Although the arguments and options are the same on both commands, the configuration file paths changed to:
Additionally, the old configuration used to have two sections: [app]
and [admin]
. Now all
settings must be in the [admin]
section or they will be ignored.
First check if all the tests are passing using tox
. Run the following command to run tox from
project directory
$ tox
Once all the tests are passed, create the tarball by running the following command from the project directory
$ python setup.py sdist
This creates a tarball in the dist/ directory under the project folder. Use this tarball to build fedscm-admin in Fedora.