D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/python-catcher-0.1.7-16.mga10.src.rpm Building target platforms: noarch Building for target noarch Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.bsayL3 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf python-catcher-0.1.7 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/python-catcher-0.1.7.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd python-catcher-0.1.7 + rm -rf /home/pterjan/rpmbuild/BUILD/python-catcher-0.1.7-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/python-catcher-0.1.7-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -rf python-catcher.egg-info + find -name '*.py' + xargs sed -i '1s|^#!python|#!/usr/bin/python3|' + 2to3 -w -n . /usr/bin/2to3:3: DeprecationWarning: lib2to3 package is deprecated and may not be able to parse Python 3.10+ from lib2to3.main import main RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored ./setup.py RefactoringTool: Refactored ./catcher/__init__.py RefactoringTool: No changes to ./catcher/_version.py RefactoringTool: No changes to ./catcher/collector.py RefactoringTool: Refactored ./catcher/tests.py RefactoringTool: No changes to ./catcher/formatters/html.py RefactoringTool: No changes to ./catcher/formatters/text.py RefactoringTool: No changes to ./catcher/uploaders/ajentiorg.py RefactoringTool: No changes to ./catcher/uploaders/pastehtml.py RefactoringTool: Files that were modified: RefactoringTool: ./setup.py RefactoringTool: ./catcher/__init__.py RefactoringTool: ./catcher/_version.py RefactoringTool: ./catcher/collector.py RefactoringTool: ./catcher/tests.py RefactoringTool: ./catcher/formatters/html.py RefactoringTool: ./catcher/formatters/text.py RefactoringTool: ./catcher/uploaders/ajentiorg.py RefactoringTool: ./catcher/uploaders/pastehtml.py --- ./setup.py (original) +++ ./setup.py (refactored) @@ -3,7 +3,7 @@ from distutils.core import setup from setuptools import find_packages -execfile('catcher/_version.py') +exec(compile(open('catcher/_version.py', "rb").read(), 'catcher/_version.py', 'exec')) setup( name='python-catcher', --- ./catcher/__init__.py (original) +++ ./catcher/__init__.py (refactored) @@ -1,4 +1,4 @@ from . import formatters from . import uploaders from .collector import collect, backup -from _version import __version__ +from ._version import __version__ --- ./catcher/tests.py (original) +++ ./catcher/tests.py (refactored) @@ -1,4 +1,4 @@ -from __future__ import print_function + import unittest import catcher + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.ppBrof + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd python-catcher-0.1.7 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + : + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + '[' -f setup.py ']' + echo 'python3dist(setuptools) >= 40.8' + echo 'python3dist(wheel)' + for f in pyproject.toml setup.py setup.cfg + '[' -f pyproject.toml ']' + for f in pyproject.toml setup.py setup.cfg + '[' -f setup.py ']' + sed -i -E -e '/^requires/s/(['\''"]\s*flit_core\s*>=\s*[0-9]+(\.[0-9]+)+)\s*,\s*<\s*[0-9]+(\.[0-9]+)*(\s*['\''"])/\1\4/' setup.py + sed -i -E -e '/python_requires/s/(['\''"]?\s*\S*\s*>=\s*[0-9]+(\.[0-9]+)*)\s*(,\s*(<|!=)\s*[0-9]+(\.[0-9]+)*(\.\*)*)+(\s*['\''"]?)/\1\7/' setup.py + sed -i -E -e 's/(['\''"]?\s*\S*\s*>=\s*[0-9]+(\.[0-9a-z]+)*)\s*,\s*(<|!=|<=)\s*[0-9]+(\.[0-9a-z]+)*(-?dev[0-9]*)?(\.\*)*(\s*['\''"]?)/\1\7/g' setup.py + sed -i -E -e 's/(['\''"]\w+\s*)!=(\s*([0-9])+(\.[0-9]+)*\s*['\''"])/\1>\2/g' setup.py + sed -i -E -e 's/(['\''"]\s*>=\s*[0-9]+(\.[0-9]+)*)\s*,\s*(<|!=)\s*[0-9]+(\.[0-9]+)*(\s*['\''"])/\1\5/g' setup.py + sed -i -E -e 's/(['\''"]?\s*\S*\s*>=\s*[0-9]+(\.[0-9]+)*)\s*(,\s*(<|!=)\s*[0-9]+(\.[0-9]+)*(\.\*)*)+(\s*['\''"]?)/\1\7/g' setup.py + sed -i -E -e 's/(['\''"]\s*)\^(\s*[0-9]+(\.[0-9]+)*\s*['\''"])/\1>=\2/g' setup.py + sed -i -e 's/~=/>=/g' setup.py + sed -i -E -e 's/(['\''"]\s*\S*\s*)==(\s*[0-9]+(\.[0-9]+)*)\.\*(\s*['\''"])/\1>=\2\4/g' setup.py + sed -i -E -e 's/(['\''"]?\w*\s*>=\s*[0-9]+(\.[0-9]+)*)\s*,\s*(<|!=)[0-9]+(\.[0-9]+)*\s*(['\''"]?)/\1\5/g' setup.py + for f in pyproject.toml setup.py setup.cfg + '[' -f setup.cfg ']' + sed -i -E -e '/^requires/s/(['\''"]\s*flit_core\s*>=\s*[0-9]+(\.[0-9]+)+)\s*,\s*<\s*[0-9]+(\.[0-9]+)*(\s*['\''"])/\1\4/' setup.cfg + sed -i -E -e '/python_requires/s/(['\''"]?\s*\S*\s*>=\s*[0-9]+(\.[0-9]+)*)\s*(,\s*(<|!=)\s*[0-9]+(\.[0-9]+)*(\.\*)*)+(\s*['\''"]?)/\1\7/' setup.cfg + sed -i -E -e 's/(['\''"]?\s*\S*\s*>=\s*[0-9]+(\.[0-9a-z]+)*)\s*,\s*(<|!=|<=)\s*[0-9]+(\.[0-9a-z]+)*(-?dev[0-9]*)?(\.\*)*(\s*['\''"]?)/\1\7/g' setup.cfg + sed -i -E -e 's/(['\''"]\w+\s*)!=(\s*([0-9])+(\.[0-9]+)*\s*['\''"])/\1>\2/g' setup.cfg + sed -i -E -e 's/(['\''"]\s*>=\s*[0-9]+(\.[0-9]+)*)\s*,\s*(<|!=)\s*[0-9]+(\.[0-9]+)*(\s*['\''"])/\1\5/g' setup.cfg + sed -i -E -e 's/(['\''"]?\s*\S*\s*>=\s*[0-9]+(\.[0-9]+)*)\s*(,\s*(<|!=)\s*[0-9]+(\.[0-9]+)*(\.\*)*)+(\s*['\''"]?)/\1\7/g' setup.cfg + sed -i -E -e 's/(['\''"]\s*)\^(\s*[0-9]+(\.[0-9]+)*\s*['\''"])/\1>=\2/g' setup.cfg + sed -i -e 's/~=/>=/g' setup.cfg + sed -i -E -e 's/(['\''"]\s*\S*\s*)==(\s*[0-9]+(\.[0-9]+)*)\.\*(\s*['\''"])/\1>=\2\4/g' setup.cfg + sed -i -E -e 's/(['\''"]?\w*\s*>=\s*[0-9]+(\.[0-9]+)*)\s*,\s*(<|!=)[0-9]+(\.[0-9]+)*\s*(['\''"]?)/\1\5/g' setup.cfg + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /home/pterjan/rpmbuild/BUILD/python-catcher-0.1.7/.pyproject-builddir + echo -n + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + TMPDIR=/home/pterjan/rpmbuild/BUILD/python-catcher-0.1.7/.pyproject-builddir + RPM_TOXENV=py312 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /home/pterjan/rpmbuild/BUILD/python-catcher-0.1.7/pyproject-wheeldir --output /home/pterjan/rpmbuild/BUILD/python-catcher-0.1.7-16.mga10.noarch-pyproject-buildrequires Handling setuptools >= 40.8 from default build backend Requirement satisfied: setuptools >= 40.8 (installed: setuptools 69.0.2) Handling wheel from default build backend Requirement satisfied: wheel (installed: wheel 0.43.0) Handling wheel from get_requires_for_build_wheel Requirement satisfied: wheel (installed: wheel 0.43.0) Handling requests from hook generated metadata: Requires-Dist (python-catcher) Requirement satisfied: requests (installed: requests 2.32.3) Handling Mako from hook generated metadata: Requires-Dist (python-catcher) Requirement satisfied: Mako (installed: Mako 1.3.0) + cat /home/pterjan/rpmbuild/BUILD/python-catcher-0.1.7-16.mga10.noarch-pyproject-buildrequires + rm -rfv python_catcher-0.1.7.dist-info/ removed 'python_catcher-0.1.7.dist-info/top_level.txt' removed 'python_catcher-0.1.7.dist-info/METADATA' removed directory 'python_catcher-0.1.7.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.Nrud61 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd python-catcher-0.1.7 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -sP' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.yAF4FT + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' /home/pterjan/rpmbuild/BUILDROOT/python-catcher-0.1.7-16.mga10.noarch '!=' / ']' + rm -rf /home/pterjan/rpmbuild/BUILDROOT/python-catcher-0.1.7-16.mga10.noarch ++ dirname /home/pterjan/rpmbuild/BUILDROOT/python-catcher-0.1.7-16.mga10.noarch + mkdir -p /home/pterjan/rpmbuild/BUILDROOT + mkdir /home/pterjan/rpmbuild/BUILDROOT/python-catcher-0.1.7-16.mga10.noarch + cd python-catcher-0.1.7 + '[' 1 -eq 1 ']' + /usr/bin/python3 setup.py install --skip-build --root /home/pterjan/rpmbuild/BUILDROOT/python-catcher-0.1.7-16.mga10.noarch /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 or other standards-based tools. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. ******************************************************************************** !! self.initialize_options() + /usr/bin/find-debuginfo -j16 --strict-build-id -m -i --build-id-seed 0.1.7-16.mga10 --unique-debug-suffix -0.1.7-16.mga10.noarch --unique-debug-src-base python-catcher-0.1.7-16.mga10.noarch --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /home/pterjan/rpmbuild/BUILD/python-catcher-0.1.7 find-debuginfo: starting Extracting debug info from 0 files Creating .debug symlinks for symlinks to ELF files find-debuginfo: done + /usr/lib/rpm/check-buildroot + '[' -n '' ']' + /usr/share/spec-helper/clean_files + '[' -n '' ']' + /usr/share/spec-helper/compress_files .xz + '[' -n '' ']' + /usr/share/spec-helper/relink_symlinks + '[' -n '' ']' + /usr/share/spec-helper/clean_perl + '[' -n '' ']' + /usr/share/spec-helper/lib_symlinks + '[' -n '' ']' + /usr/share/spec-helper/gprintify + '[' -n '' ']' + /usr/share/spec-helper/fix_mo + '[' -n '' ']' + /usr/share/spec-helper/fix_pamd + '[' -n '' ']' + /usr/share/spec-helper/remove_info_dir + '[' -n '' ']' + /usr/share/spec-helper/fix_eol + '[' -n '' ']' + /usr/share/spec-helper/check_desktop_files + '[' -n '' ']' + /usr/share/spec-helper/check_elf_files + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/brp-remove-la-files + /usr/lib/rpm/redhat/brp-mangle-shebangs + env -u SOURCE_DATE_EPOCH /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j16 Bytecompiling .py files below /home/pterjan/rpmbuild/BUILDROOT/python-catcher-0.1.7-16.mga10.noarch/usr/lib/python3.12 using python3.12 Not clamping source mtimes, $SOURCE_DATE_EPOCH not set + /usr/lib/rpm/redhat/brp-python-hardlink Processing files: python3-catcher-0.1.7-16.mga10.noarch Provides: python-catcher = 0.1.7-16.mga10 python3-catcher = 0.1.7-16.mga10 python3.12-catcher = 0.1.7-16.mga10 python3.12dist(python-catcher) = 0.1.7 python3dist(python-catcher) = 0.1.7 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: python(abi) = 3.12 python3.12dist(mako) python3.12dist(requests) Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/pterjan/rpmbuild/BUILDROOT/python-catcher-0.1.7-16.mga10.noarch Wrote: /home/pterjan/rpmbuild/RPMS/noarch/python3-catcher-0.1.7-16.mga10.noarch.rpm Executing(%clean): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.3qn60c + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd python-catcher-0.1.7 + /usr/bin/rm -rf /home/pterjan/rpmbuild/BUILDROOT/python-catcher-0.1.7-16.mga10.noarch + RPM_EC=0 ++ jobs -p + exit 0 Executing(rmbuild): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.FiTmEE + umask 022 + cd /home/pterjan/rpmbuild/BUILD + rm -rf /home/pterjan/rpmbuild/BUILD/python-catcher-0.1.7-SPECPARTS + rm -rf python-catcher-0.1.7 python-catcher-0.1.7.gemspec + RPM_EC=0 ++ jobs -p + exit 0 D: [iurt_root_command] Success!