Commit Graph

366 Commits

Author SHA1 Message Date
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
Karolina Surma
748e1cb28e Update to 60.9.3
- change license string
- change wheel size test to 800 KiB (there are more bundled libraries)
- backport upstream patches to run more tests without the internet
  connection
2022-03-11 08:41:41 +01:00
Karolina Surma
641bd7b73a Cosmetics: remove patch numbering 2022-03-11 08:40:21 +01:00
Fedora Release Engineering
63649828ef - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-21 15:27:19 +00:00
Tomáš Hrnčiar
6fc093d6b3 Update to 59.6.0 2021-12-13 09:27:18 +01:00
Tomas Orsava
524eb44f4d Use new macros %python_wheel_dir and %python_wheel_pkg_prefix
..when creating the wheel subpackage.
This does not actually change the name or the contents of the subpackage.
2021-11-24 13:51:51 +00:00
Karolina Surma
6522fcf15f Update to 58.5.3 2021-11-10 15:59:14 +01:00
Tomáš Hrnčiar
a957ae14ec Update to 58.2.0 2021-10-21 15:09:40 +02:00
Miro Hrončok
cc435048d8 Update to 57.4.0 2021-08-03 13:48:58 +02:00
Fedora Release Engineering
c7c1a86edc - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 09:26:08 +00:00
Miro Hrončok
d4b8cee760 Convert to pyproject-rpm-macros (if without bootstrap) 2021-07-21 13:12:59 +02:00
Tomas Hrnciar
ba5f63ccaf Update to 57.1.0 2021-07-09 10:49:02 +02:00
Miro Hrončok
8517e36621 When verifying bundled provides, work with custom %{python3_pkgversion} set 2021-06-21 09:56:51 +02:00
Lumir Balhar
daf6a5cee0 Update to 57.0.0 2021-06-18 07:08:56 +02:00
Lumir Balhar
e02f56e26e Add missing bundled provide - ordered-set 2021-06-18 07:08:12 +02:00
Python Maint
1be35ccff5 Rebuilt for Python 3.10 2021-06-04 13:24:16 +02:00