Add lookaside_http_version configuration parameter to control HTTP
protocol version for lookaside cache transfers. Set to 'auto' by
default to maintain current behavior (let curl negotiate).
Users can override:
- 'auto': Let curl decide (may use HTTP/2)
- '1.1': Force HTTP/1.1 (better for high-latency connections)
- '2': Force HTTP/2 (better for low-latency, multiplexing)
This allows optimization based on network characteristics without
changing default behavior.
Inspired-by: https://pagure.io/rpkg/pull-request/772
Assisted-by: Claude Sonnet 4.5 <noreply@anthropic.com>
Signed-off-by: Ondřej Nosek <onosek@redhat.com>
Replace sphinx-quickstart boilerplate with minimal modern config.
Removes unused LaTeX, man page, and Texinfo output sections.
Also update Makefile to use sphinx-build instead of sphinx-build-3.
Inspired-by: https://pagure.io/pungi/pull-request/1899
Assisted-by: Claude Sonnet 4.5 <noreply@anthropic.com>
Signed-off-by: Ondřej Nosek <onosek@redhat.com>
Users can now provide bodhi update notes from a file using
--notes-file, which is useful for multiline notes with markdown
formatting.
Fixes: #620
Signed-off-by: Ondřej Nosek <onosek@redhat.com>
The old license file contained a physical address, and the linter
complained. Replacement contains a web address instead. Keeping
the license version the same.
Fixes: #608
Signed-off-by: Ondřej Nosek <onosek@redhat.com>
Modularity was discontinued in Fedora 39.
See: https://fedoraproject.org/wiki/Changes/RetireModularity
Override module-related commands to hide them, thus not to list
them among the available commands.
Fixes: #595
Signed-off-by: Ondřej Nosek <onosek@redhat.com>
Claude code suggested some minor improvements; some of them were
accepted.
Regarding not using '%' operator in the log call - it happens before
checking the log level, thus wasting CPU cycles even when debug
logging is disabled.
Signed-off-by: Ondřej Nosek <onosek@redhat.com>
In the testing CI (Jenkins), stop using bandit in favour of ruff.
Bandit is deprecated in the latest Fedora release (F43).
Added an environment for code coverage analysis.
JIRA: RHELCMP-14986
Signed-off-by: Ondřej Nosek <onosek@redhat.com>
I was looking at the help text for request-branch and completely
overlooked the instruction to have a look at request-repo. To imporve
this, I used a couple of strings and cloned the text into all affected
commands.
Also fixed some explicit fedpkg mentions with string interpolation in
the parts I touched.
Merges: https://pagure.io/fedpkg/pull-request/609
Signed-off-by: Michal Pospíšil <mpospisi@redhat.com>
The branch name could be one of the current active Fedora and EPEL releases.
Use the command ``releases-info`` to get release names that can be used
to request a branch.
If the branch was retired more than 8 weeks ago, it will ask for an open
Bugzilla ticket.
Merges: https://pagure.io/fedpkg/pull-request/558
Signed-off-by: Anton Medvedev <amedvede@redhat.com>
Adding fields needed for creating a project and a package in Anitya
on the toddlers side.
When the 'monitoring' option is set, it checks if the package exists
in Anitya, and if not, it asks to provide new arguments.
Merges: https://pagure.io/fedpkg/pull-request/598
Signed-off-by: Anton Medvedev <amedvede@redhat.com>
Drop setuptools support and relevant cleanup.
Only Python3.6 still relies on setuptools so it can't be completely
removed yet. Drop bash and zsh completion in favor of python
argcomplete.
Add python 3.14 classifiers and test environment.
JIRA: RHELCMP-14593
Signed-off-by: Ondřej Nosek <onosek@redhat.com>
Uses newly added rpkg flag to terminate the action. For some branches,
offline mode is not possible because there are required macros in Koji.
JIRA: RHELCMP-14513
Fixes: #600
Signed-off-by: Ondřej Nosek <onosek@redhat.com>
When the repo is cloned anonymously (`fedpkg clone -a`), `fork`
should work in the 'anonymous' mode as well. Fork API call
is the same, but the added remote has a different address = https
protocol instead of ssh.
Fedpkg detects whether `fork` is executed upon an anonymous repo.
The User can force anonymous mode using (`fedpkg fork -a`) parameter.
Fixes: #574
JIRA: RHELCMP-14205
Signed-off-by: Ondřej Nosek <onosek@redhat.com>
After the EPEL 10.0 mass branching, we discovered that running `fedpkg
request-branch epel10.0` would file SCM requests for:
- New Branch "epel10.0" for "rpms/<name>"
- New Repo for "modules/<name>"
- New Branch "epel10.0" for "modules/<name>"
The second two are invalid and unwanted. Thankfully Fabio Valentini
(@decathorpe) noticed that this was similar to what was happening for
ELN a while back, an pointed me to RELEASE_BRANCH_REGEX. This adjust
that regex to also accept EPEL minor version branches.
Related: #564
Signed-off-by: Carl George <carlwgeorge@gmail.com>
Running `fedpkg clone -B` relies on the configured branch regex to
determine the branches to clone. The current regex doesn't match EPEL
branches with more that one digit. We recently started having epel10
branches, and in the future we'll also have epel10.0, epel10.1, and so
forth. This adjusts the regex to account for these branch names.
Merges: https://pagure.io/fedpkg/pull-request/572
Signed-off-by: Carl George <carlwgeorge@gmail.com>
The exception used to instruct the user to run the command
`fedpkg set-pagure-token <token>`, which doesn't work. The command
only accepts the token interactively at a prompt, not on the command
line (presumably for security purposes). Exception message and
unit test for same adjusted accordingly.
Merges: https://pagure.io/fedpkg/pull-request/570
Signed-off-by: FeRD (Frank Dana) <ferdnyc@gmail.com>
Since the package still uses pkg_resources, in Python 3.12 it requires
the installation of setuptools which is no longer available by default.
Merges: https://pagure.io/fedpkg/pull-request/571
Signed-off-by: FeRD (Frank Dana) <ferdnyc@gmail.com>
Indeed in EPEL distro.like() returns "rhel fedora" while on fedora it
returns an empty string.
Signed-off-by: Romain Geissler <romain.geissler@amadeus.com>
ELN is a release branch. While acceptance of the --sl argument is
determined from Bodhi, this regex is still used to determine when modules
should be auto-requested.
Relates: https://pagure.io/releng/issue/12273
Merges: https://pagure.io/fedpkg/pull-request/564
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
This loses the logic for handling an exception if we're under
2.0 or bodhi-client isn't installed at all, but ehhh, that seems
unnecessary. It's pretty unlikely anyone could manage to have
< 2.0 at this point.
Merges: https://pagure.io/fedpkg/pull-request/560
Signed-off-by: Adam Williamson <awilliam@redhat.com>