Commit graph

909 commits

Author SHA1 Message Date
0443f116f6 Web documentation at Readthedocs.io
Replacement for https://docs.pagure.org/fedpkg/

Signed-off-by: Ondřej Nosek <onosek@redhat.com>
2026-06-23 00:39:31 +02:00
9e8bd7e28e Post-migration steps
Mostly changing addresses.

Signed-off-by: Ondřej Nosek <onosek@redhat.com>
2026-06-10 02:46:32 +02:00
c12418fb59 request_unretirement: split branches into koji_tags and distgit_branches
Signed-off-by: Anton Medvedev <amedvede@redhat.com>
Merges: https://pagure.io/fedpkg/pull-request/626
2026-06-04 02:47:25 +02:00
a998713d8f Add lookaside_http_version config option
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>
2026-04-29 05:31:43 +02:00
80e1dc5862 docs: modernize Sphinx conf.py
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>
2026-04-01 02:09:25 +02:00
e41c6c3945 update: Add --notes-file option to read notes from file
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>
2026-03-18 01:43:35 +01:00
586ac4ca41 License file without physical address
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>
2026-02-23 10:09:00 +00:00
7f217c967d Modularity retired - remove corresponding commands
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>
2026-02-18 04:06:33 +01:00
e52abb7902 Various code linter issues fixed
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>
2026-02-18 02:44:53 +01:00
d922f4fc1f Check the correct sorting of imports from now on
Enabled ruff plugin for checking import order and fixed wrong lines.

Signed-off-by: Ondřej Nosek <onosek@redhat.com>
2025-12-01 15:16:25 +01:00
452024234e request-unretirement: fix unittests
Relates: https://pagure.io/fedpkg/pull-request/558

JIRA: RHELCMP-14989

Signed-off-by: Ondřej Nosek <onosek@redhat.com>
2025-11-26 06:37:25 +01:00
0fe5ca5187 1.47 Release 1.47
Signed-off-by: Ondřej Nosek <onosek@redhat.com>
2025-11-26 05:17:25 +01:00
2eb01a8600 Use ruff code checker instead of bandit
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>
2025-11-26 02:13:19 +01:00
963ac125d1 Clone the API key info into all help messages
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>
2025-11-10 15:24:21 +01:00
06c72506dd README: Documentation link change, and new Jenkins link.
Issue: #606

Signed-off-by: gleiro <gleiro@redhat.com>
2025-07-14 15:59:11 +02:00
5911bd2600 update: Add unspecified update type
[1] https://github.com/fedora-infra/bodhi/pull/3047
[2] https://github.com/fedora-infra/bodhi/pull/5892

Merges: https://pagure.io/fedpkg/pull-request/604

Signed-off-by: LuK1337 <priv.luk@gmail.com>
2025-07-14 14:25:39 +02:00
e79b346074 request-unretirement: Added a new command
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>
2025-07-08 03:27:00 +02:00
36b9cbdd80 request-repo: creating project and package in Anitya
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>
2025-07-07 23:58:55 +02:00
669430f492 Switch to %pyproject_* macros
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>
2025-06-25 04:14:51 +02:00
301357006c retire: extend the command's console help
JIRA: RHELCMP-14522
Relates: rhbz#2189969

Signed-off-by: Ondřej Nosek <onosek@redhat.com>
2025-05-13 04:46:27 +02:00
927a427b18 Jenkinsfile: use local declaration instead the global
Signed-off-by: Ondřej Nosek <onosek@redhat.com>
2025-05-13 03:59:09 +02:00
122602a2a8 srpm: --offline arg to prevent connecting to Koji
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>
2025-05-13 03:10:58 +02:00
76166fae08 1.46 Release 1.46
Signed-off-by: Ondřej Nosek <onosek@redhat.com>
2025-03-19 01:31:10 +01:00
68d1ac8882 request-repo: add --onboard-packit argument
This is part of this Fedora change:
https://fedoraproject.org/wiki/Changes/AutomatedPackitOnboarding

Merges: https://pagure.io/fedpkg/pull-request/586

Signed-off-by: Nikola Forró <nforro@redhat.com>
2025-03-18 13:15:47 +01:00
7bbcf54547 Fork a package using anonymous auth
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>
2025-03-05 01:39:55 +01:00
Peter Oliver
6b7a842603 Check that auth tokens aren’t written to world-readable files
Fixed by https://pagure.io/rpkg/pull-request/734

Signed-off-by: Peter Oliver <git@mavit.org.uk>
2025-02-26 01:24:15 +00:00
d3db72608e Don't allow to request repositories in modules/ namespace
There are no new modules in Fedora distgit.

Signed-off-by: Miro Hrončok <miro@hroncok.cz>
2025-02-25 23:30:29 +00:00
d8df43d8e7 Do not auto-request EPEL x.y modules
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>
2025-02-19 02:13:03 -06:00
ffe82116bf Dynamically exclude Rawhide branch from fedpkg branching
JIRA: RHELCMP-14182
Fixes: #566
Relates: https://pagure.io/releng/issue/12311
Merges: https://pagure.io/fedpkg/pull-request/573

Signed-off-by: Samyak Jain <samyak.jn11@gmail.com>
2025-02-19 03:41:07 +01:00
215c7add2f Fix unittests when building for ELN target
JIRA: RHELCMP-14347
Fixes: #589

Signed-off-by: Ondřej Nosek <onosek@redhat.com>
2025-02-18 03:07:58 +01:00
1603cdac05 Python 3.13 environment and renew testing image
JIRA: RHELCMP-14330

Signed-off-by: Ondřej Nosek <onosek@redhat.com>
2025-01-29 03:30:49 +01:00
d8f18b789d releases-info should always show the same order
Fixes: #569
JIRA: RHELCMP-14101

Signed-off-by: Ondřej Nosek <onosek@redhat.com>
2025-01-22 04:39:37 +01:00
9323483cad Update expired token exception instructions
Signed-off-by: David Kaufmann <astra@ionic.at>
2025-01-08 23:14:37 +01:00
6511fa2656 Clone epel10 branches with clone -B
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>
2025-01-07 23:12:42 +01:00
c0f9604f9c Update expired token exception instructions
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>
2025-01-07 22:15:50 +01:00
0939d87670 Add setuptools to dependencies for Python 3.12+
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>
2025-01-07 05:01:50 +01:00
042ee46d6e Fix tests on EPEL 9/10.
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>
2025-01-07 03:38:10 +00:00
985e42039a Fixing unittests for py36
There is an issue with the newest pycurl library in PyPI.
Use the older one for this environment.

Signed-off-by: Ondřej Nosek <onosek@redhat.com>
2025-01-07 04:13:55 +01:00
062ab746db gitignore the name-version-build/ directory created by fedpkg prep/local
This directory is created by RPM 4.20+

Signed-off-by: Miro Hrončok <miro@hroncok.cz>
2024-11-18 18:09:31 +01:00
7559b4cdb9 Handle rhel runtimes when minor version exists in disttag
Signed-off-by: Diego Herrera <dherrera@redhat.com>
2024-09-18 03:57:05 +00:00
79cee4a694 Add tests cases for runtime_disttag removal when working with epel10
Signed-off-by: Diego Herrera <dherrera@redhat.com>
2024-09-18 03:57:05 +00:00
ff03aa603f Improvements on string parsing
Signed-off-by: Diego Herrera <dherrera@redhat.com>
2024-09-18 03:57:05 +00:00
54079bf112 Get macros from epel-candidate build target.
Signed-off-by: Diego Herrera <dherrera@redhat.com>
2024-09-18 03:57:05 +00:00
81ba9bb99c Fix EPEL10 branch expression to cover 2 or more digits.
Signed-off-by: Diego Herrera <dherrera@redhat.com>
2024-09-18 03:57:05 +00:00
083d3b3573 Use minor value from koji when no minor in branch name
Signed-off-by: Diego Herrera <dherrera@redhat.com>
2024-09-18 03:57:05 +00:00
284e7988a2 Fix minor requirements for EPEL10+ in test
Signed-off-by: Diego Herrera <dherrera@redhat.com>
2024-09-18 03:57:05 +00:00
bc1d18e659 Do not auto-request ELN modules
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>
2024-09-18 05:53:10 +02:00
b380b847ac Fixes missing key in distro.os_release_info()
During building in Koji unit test fails on missing key 'variant'.

Signed-off-by: Ondřej Nosek <onosek@redhat.com>
2024-09-18 03:36:50 +00:00
19feb5895e Merge #561 Fix URL of Bodhi in staging
Signed-off-by: Ondrej Nosek <onosek@redhat.com>
2024-08-20 01:50:29 +00:00
565bdcbc65 Update check_bodhi_version to check for >= 6.0.0
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>
2024-08-20 03:45:12 +02:00