Just got my first package approved and am now sponsored.
I’m trying to make the next step, following the docs (New Package Process for New Contributors :: Fedora Docs) and I’m running into an annoying problem:
fedpkg request-repo, I am prompted to get an API token, which I do, but when I try to run
fedpkg set-pagure-token I get
ERROR: User config file not found at: $HOME/.config/rpkg/fedpkg.conf
I can’t find any documentation telling me what needs to be in that file or how to create it. Or am I just supposed to put the API key there?
Hi, I’m not sure but I found this.
Take a look at the
fedpkg man page, that has information on what needs to go into the config files:
usage: fedpkg request-repo [-h]
[--summary SUMMARY] [--exception]
Request a new dist-git repository
Before the operation, you need to generate a pagure.io API token at:
"Create a new ticket"
Update your token with the following command:
fedpkg set-pagure-token <api_key_here>
Command saves token to fedpkg config file:
token = <api_key_here>
It should create the file if it doesn’t exist I guess, worth filing a bug
Thanks - I completely missed the example when I glanced at the man page.
Creating the file manually in that format worked.
I’ll go ahead and file that
bug regarding the file being created if it doesn’t exist.
EDIT: File that PR