Commit Graph

381 Commits

Author SHA1 Message Date
Python Maint
ae98804c27 Bootstrap for Python 3.13 2024-06-06 18:29:49 +02:00
Python Maint
04e3833619 Bootstrap for Python 3.13 2024-06-06 16:29:25 +02:00
Miro Hrončok
7731644df4 Python 3.13 compatibility patches
- Fixes: rhbz#2259516
2024-05-14 17:30:25 +02:00
Karolina Surma
6cfde0c365 Remove mypy from test dependencies 2024-05-02 12:17:47 +02:00
Charalampos Stratakis
20fe514069 Update to 69.2.0
- Resolves: rhbz#2269358
2024-03-18 22:20:10 +01:00
Tomáš Hrnčiar
b987401aa1 Update to 69.1.1
Resolves: rhbz#2263796
2024-03-08 10:52:12 +01:00
Miro Hrončok
7e66c23b74 Undo the removal of pkg_resources DeprecationWarning
This was removed downstream-only to give impacted packages more time.
However, we actually want the warning,
so packagers learn pkg_resources is deprecated.

No remaining Fedora 40 package fails to build because of this warning.
2024-02-06 15:23:43 +01:00
Karolina Surma
f3ed497f0c Sort the bundled provides alphabetically
It's the actual output of pythonbundles.py
[skip changelog]
2024-02-06 12:29:32 +01:00
Karolina Surma
8223f24e00 Update to 69.0.3 2024-02-06 12:29:19 +01:00
Miro Hrončok
13ffb76d61 Convert to %autorelease and %autochangelog
[skip changelog]
2024-01-29 14:58:46 +01:00
Fedora Release Engineering
3705eab593 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-26 10:40:55 +00:00
Fedora Release Engineering
3e1f3a96f8 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-22 07:00:35 +00:00
Tomáš Hrnčiar
19d0ab5ee9 Fedora CI: Add Python 3.12 2024-01-09 10:11:45 +01:00
Miro Hrončok
134fa771d6 Fix setuptools.depends:get_module_constant() on Python 3.13.0a1 2023-11-20 15:00:34 +01:00
Lumir Balhar
5cfff4defd Remove retired Python 3.7 from CI configuration 2023-09-27 08:45:41 +02:00
Lumir Balhar
7a6121ad59 Update to 68.2.2 (rhbz#2208644) 2023-09-27 08:45:32 +02:00
Petr Viktorin
adb9b68bd6 Backport upstream fixes for Python 3.12
These are test-only (and thus build-only) except for a
different fallback value for `setuptools.__version__`.

Fixes: RHBZ#2222249
2023-09-11 17:52:34 +02:00
Fedora Release Engineering
cae1565586 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-21 13:57:52 +00:00
Python Maint
78e4d0e368 Rebuilt for Python 3.12 2023-07-12 13:41:45 +02:00
Python Maint
a10078fdd8 Bootstrap for Python 3.12 2023-06-13 16:36:16 +02:00
Python Maint
8ce045f0e4 Bootstrap for Python 3.12 2023-06-13 16:22:06 +02:00
Python Maint
905836d66c Bootstrap for Python 3.12 2023-06-13 15:55:45 +02:00
Miro Hrončok
d01f5faf1f Adjust the setup.py install deprecation notice when building RPM packages
Before:

    /usr/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
    !!

            ********************************************************************************
            Please avoid running ``setup.py`` directly.
            Instead, use pypa/build, pypa/installer, pypa/build or
            other standards-based tools.

            See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
            ********************************************************************************

    !!

After:

    /usr/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
    !!

            ********************************************************************************
            Please avoid running ``setup.py`` directly.
            Instead, use pypa/build, pypa/installer, pypa/build or
            other standards-based tools.

            Follow the current Python packaging guidelines when building
            Python RPM packages.

            See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html
            and https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/ for details.
            ********************************************************************************

    !!
2023-05-16 11:59:27 +02:00
Charalampos Stratakis
67b4ba944f Update to 67.7.2 2023-04-24 23:43:41 +02:00
Charalampos Stratakis
8ae9b2a777 Update to 67.6.1 2023-04-20 20:23:17 +02:00
Miro Hrončok
c95f5f0bcb Fix tests with wheel 0.40 2023-03-28 11:06:33 +02:00
Miro Hrončok
cf94d87026 Bootstrap re-order: Build setuptools --with bootstrap with python3-rpm-generators
The generators only need packaging and packaging only needs flit.core.

We can now build:

 0. python-rpm-macros bumped to 3.N
 1. python3.N --with bootstrap ...
 2. python-flit --with bootstrap
 3. python-packaging --with bootstrap
 4. python-setuptools --with bootstrap (already using the generators at this point)
 5. ...
2023-03-16 10:41:58 +01:00
Miro Hrončok
d195d55abf Make the bootstrap build work on Python without distutils
The setup.py install command tries to import distutils
but the distutils-precedence.pth file is not yet respected
and Python 3.12+ no longer has distutils in the standard library.

The error was:

    Executing(%install): ...
    ...
    + /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-setuptools-65.5.1-3.fc39~bootstrap.x86_64 --prefix /usr
    running install
    ...
    writing byte-compilation script '/tmp/tmpuud06dfj.py'
    /usr/bin/python3 /tmp/tmpuud06dfj.py
    Traceback (most recent call last):
      File "/tmp/tmpuud06dfj.py", line 1, in <module>
        from distutils.util import byte_compile
    ModuleNotFoundError: No module named 'distutils'
    error: command '/usr/bin/python3' failed with exit code 1
2023-03-15 23:24:57 +01:00
Miro Hrončok
d5c59824d3 Only verify bundled provides --without bootstrap, supply all vendor files at once
The initial build for new Python version does not yet have the script available.
Multiple input files for the script are supported since Fedora 35,
but we keep the versioned BuildRequires for RHEL's sake.

The $PWD makes no sense --without bootstrap and the script should not even import pkg_resources,
see https://src.fedoraproject.org/rpms/python-rpm-generators/pull-request/59
2023-03-07 17:48:09 +01:00
Miro Hrončok
2c17e79de6 Fixup the bootstrap build and make tests depend on it 2023-02-10 18:08:56 +01:00
Miro Hrončok
368763e1d8 Update the RHEL %bconds comment and style, run basic checks even --without tests
It is obvious to me now that this is not going to be removed,
but will be reused for RHEL 10, 11, etc.

The new %bcond syntax is nicer.

Some checks can run even --without tests, do it.
2023-02-10 18:08:02 +01:00
Miro Hrončok
7a72517736 Workaround a build failure with Python 3.11.1 2023-01-23 12:04:34 +01:00
Fedora Release Engineering
668b2de808 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-20 17:14:01 +00:00
Miro Hrončok
905fef41ee Update comment to reflect reality 2022-12-15 19:30:27 +01:00
Miro Hrončok
8d079510db Don't measure wheel size with du
The `du` tool estimates disk usage, so filesystem settings
(block size, compression, holes, etc.) might change the result.

Use `stat` instead for a more reproducible result.

Note that I've changed 900 (KiB) to 900000 (bytes) which is in fact not correct
(900 KiB is 921600 bytes),
but I assumed a human-readable round number works better here.
I've updated the comment to say kB instead of KiB.

Fixes https://bugzilla.redhat.com/2143393
2022-11-30 14:34:59 +01:00
Miro Hrončok
b61d86b965 Update to 65.5.1 2022-11-08 15:26:16 +01:00
Miro Hrončok
8789649f12 Update to 65.5.0 2022-10-14 14:49:23 +02:00
Miro Hrončok
165a539450 Update rpmlintrc for rpmlint 2
All rules removed (they were being reported as unused).
New rules added.
2022-10-13 14:34:04 +02:00
Miro Hrončok
87598673b1 Update the RPM License field to use SPDX expressions 2022-10-13 13:22:09 +02:00
Miro Hrončok
af8f90629d Update to 65.4.1 2022-10-13 13:15:47 +02:00
Lumir Balhar
5e9064dc2a Update to 65.3.0 2022-09-13 11:04:32 +02:00
Tomáš Hrnčiar
97feee3a6c Update to 65.0.2
Fixes: rhbz#2102402
2022-08-17 20:12:12 +02:00
Fedora Release Engineering
a3c06a495c Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-22 22:15:53 +00:00
Miro Hrončok
d9907c51af Fedora CI: Fix Python 3.10 and add Python 3.11 2022-06-27 22:57:08 +00:00
Charalampos Stratakis
ebda604314 Update to 62.6.0
Change wheel size test to 900 KiB as more bundled libraries were added

Fixes: rhbz#2064842
2022-06-20 22:51:12 +02:00
Python Maint
8448afc1bf Rebuilt for Python 3.11 2022-06-14 12:08:50 +02:00
Python Maint
fda069e4cb Bootstrap for Python 3.11 2022-06-13 13:32:02 +02:00
Python Maint
54520e82c6 Bootstrap for Python 3.11 2022-06-13 12:37:10 +02:00
Tomáš Hrnčiar
63fb5028fe No longer use the deprecated sre_constants module in bundled pyparsing 2022-04-19 17:02:38 +02:00
Karolina Surma
b36e0d42f2 Comment the provides explicitly
Anecdata: at least three of the python-maint team members got stuck on "why do
we have the same line twice there" when they read the spec for the first time
2022-03-11 08:41:43 +01:00