Commit graph

311 commits

Author SHA1 Message Date
Miro Hrončok
e0d87e4172 Do not install the pip.whl with executable permissions
The wheel file is never executed, it has no shebang
(yes, zips can have shebangs).

    bash: /usr/share/python-wheels/pip-....whl: cannot execute binary file: Exec format error

This executable permission was never intended,
it only happens to be the default for the install command.
2026-08-31 12:45:22 +02:00
Lumir Balhar
ac655bc5de Security fix for CVE-2026-13346
Co-Authored-by: Miro Hrončok <miro@hroncok.cz>
2026-08-26 08:58:17 +02:00
Lukáš Zachar
08dc5bf450 CI: Make some test not running for ELN (and RHEL)
See also https://forge.fedoraproject.org/ci/tickets/issues/550

[skip changelog]
2026-08-25 14:23:39 +00:00
Miro Hrončok
c05c4a66bb Allow flit-core 4 for building this package 2026-08-20 20:16:00 +02:00
Fedora Release Engineering
47955c1bf6 Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-16 20:49:58 +00:00
Lumir Balhar
9d73fb50fc Update to 26.1.2 (rhbz#2483638)
Co-Authored-By: Miro Hrončok <miro@hroncok.cz>
2026-07-03 11:23:30 +02:00
Python Maint
415ed181e5 Rebuilt for Python 3.15 2026-06-04 21:52:04 +02:00
Python Maint
3f4a4319ae Bump release 2026-06-03 13:59:55 +02:00
Python Maint
9583373c97 Bootstrap for Python 3.15 2026-06-03 13:47:16 +02:00
Miro Hrončok
c8ed4920c4 Never provide pip if this is not the build for the main Python
[skip changelog]
2026-05-23 22:17:15 +00:00
Lumir Balhar
5fd8a26f31 Remove Python 3.6 from CI configuration 2026-05-06 11:53:10 +02:00
Lumir Balhar
a5bfb663f2 Remove Python 3.9 from tests; pip no longer supports it since 26.1. 2026-05-06 11:53:10 +02:00
Lumir Balhar
3f3ab3fbad Update to 26.1.1 (rhbz#2466579) 2026-05-06 11:53:00 +02:00
Miro Hrončok
38d7489b6e Rebuilt for improvements of %python_wheel_inject_sbom in python-rpm-macros-3.14-11 2026-03-12 13:42:19 +01:00
Tomáš Hrnčiar
e2328ff347 Update to 26.0.1
- Fixes: rhbz#2435623
2026-02-11 16:14:15 +01:00
Fedora Release Engineering
80bc682b8f Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-17 08:48:28 +00:00
Miro Hrončok
2b2a030e77 Update to 25.3
- Fixes: rhbz#2406299
2025-11-30 10:15:42 +01:00
Miro Hrončok
1f462a281f CI: Ensure the devel subpackages for 3.6 and 3.9 are available
See https://src.fedoraproject.org/rpms/python3.9/pull-request/213
and https://src.fedoraproject.org/rpms/python3.6/pull-request/153

[skip changelog]
2025-11-30 10:14:27 +01:00
Karolina Surma
584939ebdd CI: Run tests with Python 3.15
[skip changelog]
2025-10-24 12:43:53 +02:00
Python Maint
566ed62a19 Rebuilt for Python 3.14.0rc3 bytecode 2025-09-19 13:59:29 +02:00
Miro Hrončok
8ddd39d6cd Security fix for the bundled urllib3 for CVE-2025-50181 2025-09-10 19:43:27 +02:00
Miro Hrončok
e2a1a1a994 Include SBOM in the .whl file in python-pip-wheel 2025-08-27 16:52:27 +02:00
Karolina Surma
3a83d6ce5d Update to 25.2 (rhbz#2385294)
Drop nowarn-pip._internal.main.patch as the warning is no longer emitted
via ensurepip in Fedora Pythons.
2025-08-21 13:13:40 +02:00
Python Maint
13d07e4daf Rebuilt for Python 3.14.0rc2 bytecode 2025-08-15 14:23:19 +02:00
Lukáš Zachar
c830f0f9ae CI: Drop STI and use tmt instead
Use 'discovery --how shell' for bash completion test as well,
even though it contains metadata, to be same as all other migrated
plans.

Resolves: rhbz#2383041

[skip changelog]
2025-08-11 14:54:33 +02:00
Fedora Release Engineering
69759f2972 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 09:21:56 +00:00
Miro Hrončok
cea7bb935f Use /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem even in truststore
- https://fedoraproject.org/wiki/Changes/dropingOfCertPemFile
- Fixes: rhbz#2380441
2025-07-22 11:45:35 +02:00
Lukáš Zachar
685d136d85 CI: Test bash completion
Originally generated by CursorAI, manually edited.

[skip changelog]
2025-07-09 15:03:23 +02:00
Miro Hrončok
c61c7b352c Use /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
- https://fedoraproject.org/wiki/Changes/dropingOfCertPemFile
2025-07-08 10:17:52 +00:00
Miro Hrončok
5802dc6818 Handle alternate executable names for cases this isn't the main Python
This is  based on work in f1b86318fc
and https://src.fedoraproject.org/rpms/python-pip/pull-request/71 (not merged)

With one notable difference: The Bash completion function has no dot in it now.
I believe that having a dot in it breaks it: https://issues.redhat.com/browse/RHEL-99083

[skip changelog]
2025-06-20 19:48:15 +02:00
Karolina Surma
435a2e9aa1 Use the short -t CLI option for sphinx-build
The long options were added in Sphinx 7.3.0, which is not available in
RHEL 9 and 10. The short option works for each of the currently supported systems.

Ref: https://www.sphinx-doc.org/en/master/changes/7.3.html

[skip changelog]
2025-06-20 14:20:11 +02:00
Karolina Surma
6c37700fd5 Remove the obsolete Conflicts from the Python 2 -> 3 transition
[skip changelog]
2025-06-20 14:20:11 +02:00
Karolina Surma
1ae9237431 Macronize the Python version of the bundled provides
We build it in alternative Python stacks and want it to pick up
the redefined %{python3_pkgversion}. For main Python it
evaluates to 3, meaning no change in Fedora proper.
It will result in a smaller diff when creating alternative package definitions.

[skip changelog]
2025-06-20 14:20:11 +02:00
Karolina Surma
2b190b00bf We don't want to run tests on EPEL by default
It adds unwanted complexity, and in some alternative stacks the
dependencies are not available.

[skip changelog]
2025-06-20 14:19:58 +02:00
Miro Hrončok
b0472d2883 Rebuilt for Python 3.14
- Fix test failures
 - Fixes: rhbz#2335909
2025-06-16 11:01:07 +02:00
Python Maint
8e291b0b6c Bootstrap for Python 3.14 2025-06-02 11:23:07 +02:00
Miro Hrončok
b4fe5333a1 Run functional tests
- Drop test requirement of python-wheel-wheel
- Use pytest-xdist to run tests faster

The motivation for this was the need to drop python-wheel-wheel in wheel 0.46+.
Due to newly gained runtime dependencies of wheel,
such wheel cannot be used as is.

I realized that when the explicit BuildRequires is removed,
the package is brought in by python3-virtualenv.
But even when python3-virtualenv drops the dependency,
the tests still passed without python-wheel-wheel.

Because the tests that require packaged wheels were all --ignored
for obsolete reasons. When unignored, they errored due to missing coverage.whl.

While attempting to fix this, I realized we cannot use the RPM packaged wheel anyway.

When the functional tests run, it takes a while, hence pytest-xdist.

---

For the record, the coverage-0-py3-none-any.whl was created as:

    [project]
    name = "coverage"
    version = "0"

    [build-system]
    requires = ["setuptools >= 77.0.3"]
    build-backend = "setuptools.build_meta"

And coverage.py with:

    def process_startup():
        pass

Wheel generated by `python3 -m build` (with python3-build-1.2.1-4.fc41.noarch).
2025-05-07 09:44:49 +02:00
Miro Hrončok
f467900a68 Remove Recommends only related to unsupported Pythons
This pip version no longer supports Python 3.7 and 3.8.
2025-05-06 00:02:06 +02:00
Miro Hrončok
2fbd290be0 Update to 25.1.1
- Fixes: rhbz#2363801
2025-05-03 11:11:10 +02:00
Miro Hrončok
8390734c31 Stop building the HTML documentation, only build manual pages
- Also build manual pages on RHEL
- The python-pip-doc package is gone but not Obsoleted, it has no dependencies

Also:

Rename the bcond,
update the CI test,
use sphinx-build without the -3 suffix,
always BR python3-sphinx (for RHEL alternate Python versions where we don't package Sphinx).
2025-05-03 11:11:10 +02:00
Miro Hrončok
be112f861a Drop unused rpmlintrc filter
python3-pip.noarch: E: unused-rpmlintrc-filter "E: spelling-error .+'venv'"

[skip changelog]
2025-05-03 11:11:10 +02:00
Miro Hrončok
274df105b5 Remove no longer needed RIGHT-TO-LEFT OVERRIDE stripping
See https://github.com/pypa/pip/pull/12517

[skip changelog]
2025-05-03 09:44:44 +02:00
Tomáš Hrnčiar
d4edbde902 Update to 25.1.0 (rhbz#2362438) 2025-04-29 09:33:34 +00:00
Miro Hrončok
8c346262d5 Bootstrap: wheel is not needed
Also, test this on the CI.

[skip changelog]
2025-04-24 13:36:36 +02:00
Charalampos Stratakis
97a9e3e215 Fix CI tests to account for normalization of dist-info dirs (PEP 491)
setuptools now normalizes the dist-info directory names to lowercase
according to PEP 491

Also egg-info directories are not created anymore

[skip changelog]
2025-03-18 01:25:34 +01:00
Charalampos Stratakis
d681b5b429 Remove testing of retired python3.8 from the CI
See https://fedoraproject.org/wiki/Changes/RetirePython3.8

[skip changelog]
2025-02-27 02:42:36 +01:00
Charalampos Stratakis
048126313b Update to 25.0.1
- Fixes: rhbz#2342135
2025-02-27 01:14:04 +01:00
Fedora Release Engineering
10e0ef58aa Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-18 17:14:20 +00:00
Tomáš Hrnčiar
990a77f1c0 Update to 24.3.1
- Fixes: rhbz#2321997
2024-11-07 09:45:38 +00:00
Miro Hrončok
533a4ecd2d CI: Add Python 3.14
[skip changelog]
2024-11-06 13:24:37 +01:00