D: [iurt_root_command] chroot Building target platforms: noarch Building for target noarch sh: line 4: [: -j8: integer expression expected sh: line 4: [: -j8: integer expression expected Installing /home/pterjan/rpmbuild/SRPMS/python-bugzilla-3.2.0-4.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.hLlouD + umask 022 + cd /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build + test -d /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build + /usr/bin/rm -rf /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/SPECPARTS + RPM_EC=0 ++ jobs -p + exit 0 sh: line 4: [: -j8: integer expression expected Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.3E1Qny + umask 022 + cd /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build + rm -rf python-bugzilla-3.2.0 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/python-bugzilla-3.2.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd python-bugzilla-3.2.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 sh: line 4: [: -j8: integer expression expected Executing(%generate_buildrequires): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.HFqwsw + umask 022 + cd /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build + cd python-bugzilla-3.2.0 + '[' 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-bugzilla-3.2.0-build/python-bugzilla-3.2.0/.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-bugzilla-3.2.0-build/python-bugzilla-3.2.0/.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-bugzilla-3.2.0-build/python-bugzilla-3.2.0/pyproject-wheeldir --output /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/python-bugzilla-3.2.0-4.mga10.noarch-pyproject-buildrequires Handling setuptools >= 40.8 from default build backend Requirement satisfied: setuptools >= 40.8 (installed: setuptools 75.6.0) Handling wheel from default build backend Requirement satisfied: wheel (installed: wheel 0.43.0) /usr/lib/python3.12/site-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'tests_require' warnings.warn(msg) running egg_info writing python_bugzilla.egg-info/PKG-INFO writing dependency_links to python_bugzilla.egg-info/dependency_links.txt writing entry points to python_bugzilla.egg-info/entry_points.txt writing requirements to python_bugzilla.egg-info/requires.txt writing top-level names to python_bugzilla.egg-info/top_level.txt reading manifest file 'python_bugzilla.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'xmlrpc-api-notes.txt' adding license file 'COPYING' writing manifest file 'python_bugzilla.egg-info/SOURCES.txt' running dist_info writing python_bugzilla.egg-info/PKG-INFO writing dependency_links to python_bugzilla.egg-info/dependency_links.txt writing entry points to python_bugzilla.egg-info/entry_points.txt writing requirements to python_bugzilla.egg-info/requires.txt writing top-level names to python_bugzilla.egg-info/top_level.txt reading manifest file 'python_bugzilla.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'xmlrpc-api-notes.txt' adding license file 'COPYING' writing manifest file 'python_bugzilla.egg-info/SOURCES.txt' creating '/home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/python-bugzilla-3.2.0/python_bugzilla-3.2.0.dist-info' Handling requests from hook generated metadata: Requires-Dist (python-bugzilla) Requirement satisfied: requests (installed: requests 2.32.3) + cat /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/python-bugzilla-3.2.0-4.mga10.noarch-pyproject-buildrequires + rm -rfv python_bugzilla-3.2.0.dist-info/ removed 'python_bugzilla-3.2.0.dist-info/COPYING' removed 'python_bugzilla-3.2.0.dist-info/entry_points.txt' removed 'python_bugzilla-3.2.0.dist-info/top_level.txt' removed 'python_bugzilla-3.2.0.dist-info/METADATA' removed directory 'python_bugzilla-3.2.0.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 sh: line 4: [: -j8: integer expression expected Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.O8ryHf + umask 022 + cd /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build + cd python-bugzilla-3.2.0 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + mkdir -p /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/python-bugzilla-3.2.0/.pyproject-builddir + 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-bugzilla-3.2.0-build/python-bugzilla-3.2.0/.pyproject-builddir + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_wheel.py /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/python-bugzilla-3.2.0/pyproject-wheeldir Processing /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/python-bugzilla-3.2.0 Preparing metadata (pyproject.toml): started Running command Preparing metadata (pyproject.toml) /usr/lib/python3.12/site-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'tests_require' warnings.warn(msg) running dist_info creating /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/python-bugzilla-3.2.0/.pyproject-builddir/pip-modern-metadata-t3egaylh/python_bugzilla.egg-info writing /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/python-bugzilla-3.2.0/.pyproject-builddir/pip-modern-metadata-t3egaylh/python_bugzilla.egg-info/PKG-INFO writing dependency_links to /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/python-bugzilla-3.2.0/.pyproject-builddir/pip-modern-metadata-t3egaylh/python_bugzilla.egg-info/dependency_links.txt writing entry points to /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/python-bugzilla-3.2.0/.pyproject-builddir/pip-modern-metadata-t3egaylh/python_bugzilla.egg-info/entry_points.txt writing requirements to /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/python-bugzilla-3.2.0/.pyproject-builddir/pip-modern-metadata-t3egaylh/python_bugzilla.egg-info/requires.txt writing top-level names to /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/python-bugzilla-3.2.0/.pyproject-builddir/pip-modern-metadata-t3egaylh/python_bugzilla.egg-info/top_level.txt writing manifest file '/home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/python-bugzilla-3.2.0/.pyproject-builddir/pip-modern-metadata-t3egaylh/python_bugzilla.egg-info/SOURCES.txt' reading manifest file '/home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/python-bugzilla-3.2.0/.pyproject-builddir/pip-modern-metadata-t3egaylh/python_bugzilla.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'xmlrpc-api-notes.txt' adding license file 'COPYING' writing manifest file '/home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/python-bugzilla-3.2.0/.pyproject-builddir/pip-modern-metadata-t3egaylh/python_bugzilla.egg-info/SOURCES.txt' creating '/home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/python-bugzilla-3.2.0/.pyproject-builddir/pip-modern-metadata-t3egaylh/python_bugzilla-3.2.0.dist-info' Preparing metadata (pyproject.toml): finished with status 'done' Building wheels for collected packages: python-bugzilla Building wheel for python-bugzilla (pyproject.toml): started Running command Building wheel for python-bugzilla (pyproject.toml) /usr/lib/python3.12/site-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'tests_require' warnings.warn(msg) running bdist_wheel running build running build_py creating build/lib/bugzilla copying bugzilla/oldclasses.py -> build/lib/bugzilla copying bugzilla/exceptions.py -> build/lib/bugzilla copying bugzilla/rhbugzilla.py -> build/lib/bugzilla copying bugzilla/_rhconverters.py -> build/lib/bugzilla copying bugzilla/_util.py -> build/lib/bugzilla copying bugzilla/apiversion.py -> build/lib/bugzilla copying bugzilla/_session.py -> build/lib/bugzilla copying bugzilla/_authfiles.py -> build/lib/bugzilla copying bugzilla/__init__.py -> build/lib/bugzilla copying bugzilla/_backendrest.py -> build/lib/bugzilla copying bugzilla/bug.py -> build/lib/bugzilla copying bugzilla/_backendbase.py -> build/lib/bugzilla copying bugzilla/_backendxmlrpc.py -> build/lib/bugzilla copying bugzilla/base.py -> build/lib/bugzilla copying bugzilla/_cli.py -> build/lib/bugzilla installing to build/bdist.linux-x86_64/wheel running install running install_lib creating build/bdist.linux-x86_64/wheel creating build/bdist.linux-x86_64/wheel/bugzilla copying build/lib/bugzilla/oldclasses.py -> build/bdist.linux-x86_64/wheel/./bugzilla copying build/lib/bugzilla/exceptions.py -> build/bdist.linux-x86_64/wheel/./bugzilla copying build/lib/bugzilla/rhbugzilla.py -> build/bdist.linux-x86_64/wheel/./bugzilla copying build/lib/bugzilla/_rhconverters.py -> build/bdist.linux-x86_64/wheel/./bugzilla copying build/lib/bugzilla/_util.py -> build/bdist.linux-x86_64/wheel/./bugzilla copying build/lib/bugzilla/apiversion.py -> build/bdist.linux-x86_64/wheel/./bugzilla copying build/lib/bugzilla/_session.py -> build/bdist.linux-x86_64/wheel/./bugzilla copying build/lib/bugzilla/_authfiles.py -> build/bdist.linux-x86_64/wheel/./bugzilla copying build/lib/bugzilla/__init__.py -> build/bdist.linux-x86_64/wheel/./bugzilla copying build/lib/bugzilla/_backendrest.py -> build/bdist.linux-x86_64/wheel/./bugzilla copying build/lib/bugzilla/bug.py -> build/bdist.linux-x86_64/wheel/./bugzilla copying build/lib/bugzilla/_backendbase.py -> build/bdist.linux-x86_64/wheel/./bugzilla copying build/lib/bugzilla/_backendxmlrpc.py -> build/bdist.linux-x86_64/wheel/./bugzilla copying build/lib/bugzilla/base.py -> build/bdist.linux-x86_64/wheel/./bugzilla copying build/lib/bugzilla/_cli.py -> build/bdist.linux-x86_64/wheel/./bugzilla running install_data creating build/bdist.linux-x86_64/wheel/python_bugzilla-3.2.0.data/data creating build/bdist.linux-x86_64/wheel/python_bugzilla-3.2.0.data/data/share/man/man1 copying man/bugzilla.1 -> build/bdist.linux-x86_64/wheel/python_bugzilla-3.2.0.data/data/share/man/man1 running install_egg_info running egg_info writing python_bugzilla.egg-info/PKG-INFO writing dependency_links to python_bugzilla.egg-info/dependency_links.txt writing entry points to python_bugzilla.egg-info/entry_points.txt writing requirements to python_bugzilla.egg-info/requires.txt writing top-level names to python_bugzilla.egg-info/top_level.txt reading manifest file 'python_bugzilla.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'xmlrpc-api-notes.txt' adding license file 'COPYING' writing manifest file 'python_bugzilla.egg-info/SOURCES.txt' Copying python_bugzilla.egg-info to build/bdist.linux-x86_64/wheel/./python_bugzilla-3.2.0-py3.12.egg-info running install_scripts creating build/bdist.linux-x86_64/wheel/python_bugzilla-3.2.0.dist-info/WHEEL creating '/home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/python-bugzilla-3.2.0/.pyproject-builddir/pip-wheel-dmu2xjur/.tmp-tefrlm9n/python_bugzilla-3.2.0-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it adding 'bugzilla/__init__.py' adding 'bugzilla/_authfiles.py' adding 'bugzilla/_backendbase.py' adding 'bugzilla/_backendrest.py' adding 'bugzilla/_backendxmlrpc.py' adding 'bugzilla/_cli.py' adding 'bugzilla/_rhconverters.py' adding 'bugzilla/_session.py' adding 'bugzilla/_util.py' adding 'bugzilla/apiversion.py' adding 'bugzilla/base.py' adding 'bugzilla/bug.py' adding 'bugzilla/exceptions.py' adding 'bugzilla/oldclasses.py' adding 'bugzilla/rhbugzilla.py' adding 'python_bugzilla-3.2.0.data/data/share/man/man1/bugzilla.1' adding 'python_bugzilla-3.2.0.dist-info/COPYING' adding 'python_bugzilla-3.2.0.dist-info/METADATA' adding 'python_bugzilla-3.2.0.dist-info/WHEEL' adding 'python_bugzilla-3.2.0.dist-info/entry_points.txt' adding 'python_bugzilla-3.2.0.dist-info/top_level.txt' adding 'python_bugzilla-3.2.0.dist-info/RECORD' removing build/bdist.linux-x86_64/wheel Building wheel for python-bugzilla (pyproject.toml): finished with status 'done' Created wheel for python-bugzilla: filename=python_bugzilla-3.2.0-py3-none-any.whl size=64774 sha256=1f3d02e2c772f9014b1d1673bc0bab949149a13e73f5f99e26a038bdaf8c7a6b Stored in directory: /home/pterjan/.cache/pip/wheels/c2/4a/57/0b2be27ead0d64b90bebf14099b5fd9dcb1f7a4ffeca22cd3a Successfully built python-bugzilla + RPM_EC=0 ++ jobs -p + exit 0 sh: line 4: [: -j8: integer expression expected sh: line 4: [: -j8: integer expression expected Executing(%install): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.b2JvtA + umask 022 + cd /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build + '[' 1 -eq 1 ']' + '[' /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/BUILDROOT '!=' / ']' + rm -rf /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/BUILDROOT ++ dirname /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/BUILDROOT + mkdir -p /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build + mkdir /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/BUILDROOT + cd python-bugzilla-3.2.0 + '[' 1 -eq 1 ']' ++ ls /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/python-bugzilla-3.2.0/pyproject-wheeldir/python_bugzilla-3.2.0-py3-none-any.whl ++ xargs basename --multiple ++ sed -E 's/([^-]+)-([^-]+)-.+\.whl/\1==\2/' + specifier=python_bugzilla==3.2.0 + '[' -z python_bugzilla==3.2.0 ']' + TMPDIR=/home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/python-bugzilla-3.2.0/.pyproject-builddir + /usr/bin/python3 -m pip install --root /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/BUILDROOT --prefix /usr --no-deps --disable-pip-version-check --progress-bar off --verbose --ignore-installed --no-warn-script-location --no-index --no-cache-dir --find-links /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/python-bugzilla-3.2.0/pyproject-wheeldir python_bugzilla==3.2.0 Using pip 24.3.1 from /usr/lib/python3.12/site-packages/pip (python 3.12) Looking in links: /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/python-bugzilla-3.2.0/pyproject-wheeldir Processing ./pyproject-wheeldir/python_bugzilla-3.2.0-py3-none-any.whl Installing collected packages: python_bugzilla Creating /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/BUILDROOT/usr/bin changing mode of /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/BUILDROOT/usr/bin/bugzilla to 755 Successfully installed python_bugzilla-3.2.0 + '[' -d /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/BUILDROOT/usr/bin ']' + '[' -z sP ']' + shebang_flags=-kasP + /usr/bin/python3 -B /usr/lib/rpm/redhat/pathfix.py -pni /usr/bin/python3 -kasP /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/BUILDROOT/usr/bin/bugzilla /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/BUILDROOT/usr/bin/bugzilla: updating + rm -rfv /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/BUILDROOT/usr/bin/__pycache__ + rm -f /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/python-bugzilla-3.2.0-4.mga10.noarch-pyproject-ghost-distinfo + site_dirs=() + '[' -d /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/BUILDROOT/usr/lib/python3.12/site-packages ']' + site_dirs+=("/usr/lib/python3.12/site-packages") + '[' /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/BUILDROOT/usr/lib64/python3.12/site-packages '!=' /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/BUILDROOT/usr/lib/python3.12/site-packages ']' + '[' -d /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/BUILDROOT/usr/lib64/python3.12/site-packages ']' + for site_dir in ${site_dirs[@]} + for distinfo in /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/BUILDROOT$site_dir/*.dist-info + echo '%ghost /usr/lib/python3.12/site-packages/python_bugzilla-3.2.0.dist-info' + sed -i s/pip/rpm/ /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/BUILDROOT/usr/lib/python3.12/site-packages/python_bugzilla-3.2.0.dist-info/INSTALLER + PYTHONPATH=/usr/lib/rpm/redhat + /usr/bin/python3 -B /usr/lib/rpm/redhat/pyproject_preprocess_record.py --buildroot /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/BUILDROOT --record /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/BUILDROOT/usr/lib/python3.12/site-packages/python_bugzilla-3.2.0.dist-info/RECORD --output /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/python-bugzilla-3.2.0-4.mga10.noarch-pyproject-record + rm -fv /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/BUILDROOT/usr/lib/python3.12/site-packages/python_bugzilla-3.2.0.dist-info/RECORD removed '/home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/BUILDROOT/usr/lib/python3.12/site-packages/python_bugzilla-3.2.0.dist-info/RECORD' + rm -fv /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/BUILDROOT/usr/lib/python3.12/site-packages/python_bugzilla-3.2.0.dist-info/REQUESTED removed '/home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/BUILDROOT/usr/lib/python3.12/site-packages/python_bugzilla-3.2.0.dist-info/REQUESTED' ++ wc -l /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/python-bugzilla-3.2.0-4.mga10.noarch-pyproject-ghost-distinfo ++ cut -f1 '-d ' + lines=1 + '[' 1 -ne 1 ']' + RPM_FILES_ESCAPE=4.19 + /usr/bin/python3 /usr/lib/rpm/redhat/pyproject_save_files.py --output-files /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/python-bugzilla-3.2.0-4.mga10.noarch-pyproject-files --output-modules /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/python-bugzilla-3.2.0-4.mga10.noarch-pyproject-modules --buildroot /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/BUILDROOT --sitelib /usr/lib/python3.12/site-packages --sitearch /usr/lib64/python3.12/site-packages --python-version 3.12 --pyproject-record /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/python-bugzilla-3.2.0-4.mga10.noarch-pyproject-record --prefix /usr bugzilla + /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/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /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 -j48 Bytecompiling .py files below /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/BUILDROOT/usr/lib/python3.12 using python3.12 Not clamping source mtimes, $SOURCE_DATE_EPOCH not set + /usr/lib/rpm/redhat/brp-python-hardlink sh: line 4: [: -j8: integer expression expected Executing(%check): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.w3D68O + umask 022 + cd /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build + cd python-bugzilla-3.2.0 + '[' 1 -eq 1 ']' + pytest-3 Error setting locale: unsupported locale setting ============================= test session starts ============================== platform linux -- Python 3.12.8, pytest-8.3.4, pluggy-1.5.0 rootdir: /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/python-bugzilla-3.2.0 collected 53 items tests/test_api_attachments.py . [ 1%] tests/test_api_authfiles.py .... [ 9%] tests/test_api_bug.py ..... [ 18%] tests/test_api_externalbugs.py . [ 20%] tests/test_api_groups.py . [ 22%] tests/test_api_misc.py .................... [ 60%] tests/test_api_products.py ... [ 66%] tests/test_api_users.py . [ 67%] tests/test_cli_attach.py .. [ 71%] tests/test_cli_info.py . [ 73%] tests/test_cli_login.py .. [ 77%] tests/test_cli_misc.py .......F. [ 94%] tests/test_cli_modify.py . [ 96%] tests/test_cli_new.py . [ 98%] tests/test_cli_query.py F [100%] =================================== FAILURES =================================== ________________________________ testManualURL _________________________________ run_cli = ._do_run at 0x7fe4ad0aaf20> def testManualURL(run_cli): """ Test passing a manual URL, to hit those non-testsuite code paths """ try: cmd = "bugzilla --bztype foobar " cmd += "--bugzilla https:///FAKEURL query --bug_id 1" > run_cli(cmd, None) tests/test_cli_misc.py:103: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:104: in _do_run return tests.utils.do_run_cli(capsys, monkeypatch, *args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ capsys = <_pytest.capture.CaptureFixture object at 0x7fe4ad08ba70> monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fe4ad0ad2e0> argvstr = 'bugzilla --bztype foobar --bugzilla https:///FAKEURL query --bug_id 1' bzinstance = None, expectfail = False, stdin = None def do_run_cli(capsys, monkeypatch, argvstr, bzinstance, expectfail=False, stdin=None): """ Run bin/bugzilla.main() directly with passed argv """ argv = shlex.split(argvstr) monkeypatch.setattr(sys, "argv", argv) if stdin: monkeypatch.setattr(sys, "stdin", io.StringIO(stdin)) else: monkeypatch.setattr(sys.stdin, "isatty", lambda: True) ret = 0 try: # pylint: disable=protected-access if bzinstance is None: bugzilla._cli.cli() else: bugzilla._cli.main(unittest_bz_instance=bzinstance) except SystemExit as sys_e: ret = sys_e.code out, err = capsys.readouterr() outstr = out + err if ret != 0 and not expectfail: > raise RuntimeError("Command failed with %d\ncmd=%s\nout=%s" % (ret, argvstr, outstr)) E RuntimeError: Command failed with 2 E cmd=bugzilla --bztype foobar --bugzilla https:///FAKEURL query --bug_id 1 E out= E Connection lost/failed: HTTPSConnectionPool(host='fakeurl', port=443): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'fakeurl' ([Errno -2] Name or service not known)")) tests/utils.py:111: RuntimeError During handling of the above exception, another exception occurred: run_cli = ._do_run at 0x7fe4ad0aaf20> def testManualURL(run_cli): """ Test passing a manual URL, to hit those non-testsuite code paths """ try: cmd = "bugzilla --bztype foobar " cmd += "--bugzilla https:///FAKEURL query --bug_id 1" run_cli(cmd, None) except Exception as e: > assert "No host supplied" in str(e) E assert 'No host supplied' in 'Command failed with 2\ncmd=bugzilla --bztype foobar --bugzilla https:///FAKEURL query --bug_id 1\nout=\nConnection lo...n.HTTPSConnection object at 0x7fe4ad0ad520>: Failed to resolve \'fakeurl\' ([Errno -2] Name or service not known)"))\n' E + where 'Command failed with 2\ncmd=bugzilla --bztype foobar --bugzilla https:///FAKEURL query --bug_id 1\nout=\nConnection lo...n.HTTPSConnection object at 0x7fe4ad0ad520>: Failed to resolve \'fakeurl\' ([Errno -2] Name or service not known)"))\n' = str(RuntimeError('Command failed with 2\ncmd=bugzilla --bztype foobar --bugzilla https:///FAKEURL query --bug_id 1\nout=\n....HTTPSConnection object at 0x7fe4ad0ad520>: Failed to resolve \'fakeurl\' ([Errno -2] Name or service not known)"))\n')) tests/test_cli_misc.py:105: AssertionError __________________________________ test_query __________________________________ run_cli = ._do_run at 0x7fe4ad0a93a0> def test_query(run_cli): # bad field option fakebz = tests.mockbackend.make_bz() cmd = "bugzilla query --field FOO" out = run_cli(cmd, fakebz, expectfail=True) assert "Invalid field argument" in out # Simple query with some comma opts cmd = "bugzilla query " cmd += "--product foo --component foo,bar --bug_id 1234,2480" fakebz = tests.mockbackend.make_bz( bug_search_args="data/mockargs/test_query1.txt", bug_search_return="data/mockreturn/test_query1.txt") out = run_cli(cmd, fakebz) tests.utils.diff_compare(out, "data/clioutput/test_query1.txt") # RHBZ query with a ton of opts cmd = "bugzilla query " cmd += "--product foo --component foo,bar --bug_id 1234,2480 " cmd += "--keywords fribkeyword --fixed_in amifixed " cmd += "--qa_whiteboard some-example-whiteboard " cmd += "--cc foo@example.com --qa_contact qa@example.com " cmd += "--comment 'some comment string' " fakebz = tests.mockbackend.make_bz(rhbz=True, bug_search_args="data/mockargs/test_query1-rhbz.txt", bug_search_return="data/mockreturn/test_query1.txt") out = run_cli(cmd, fakebz) tests.utils.diff_compare(out, "data/clioutput/test_query1-rhbz.txt") # --emailtype handling cmd = "bugzilla query --cc foo@example.com --emailtype BAR " fakebz = tests.mockbackend.make_bz(rhbz=True, bug_search_args="data/mockargs/test_query2-rhbz.txt", bug_search_return="data/mockreturn/test_query1.txt") out = run_cli(cmd, fakebz) tests.utils.diff_compare(out, "data/clioutput/test_query2-rhbz.txt") # Same but with --ids output cmd = "bugzilla query --ids " cmd += "--product foo --component foo,bar --bug_id 1234,2480" fakebz = tests.mockbackend.make_bz( bug_search_args="data/mockargs/test_query1-ids.txt", bug_search_return="data/mockreturn/test_query1.txt") out = run_cli(cmd, fakebz) tests.utils.diff_compare(out, "data/clioutput/test_query1-ids.txt") # Same but with --raw output cmd = "bugzilla query --raw --bug_id 1165434" fakebz = tests.mockbackend.make_bz( bug_search_args="data/mockargs/test_query2.txt", bug_search_return={"bugs": [{"id": 1165434}]}, bug_get_args=None, bug_get_return="data/mockreturn/test_getbug_rhel.txt") out = run_cli(cmd, fakebz) # Dictionary ordering is random, so scrub it from our output out = re.sub(r"\{.*\}", r"'DICT SCRUBBED'", out, re.MULTILINE) > tests.utils.diff_compare(out, "data/clioutput/test_query2.txt") tests/test_cli_query.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ inputdata = "Bugzilla 1165434: \nATTRIBUTE[actual_time]: 0.0\nATTRIBUTE[alias]: []\nATTRIBUTE[assigned_to]: lvm-team@redhat.com\nA...nATTRIBUTE[version]: ['5.8']\nATTRIBUTE[weburl]: https:TESTSUITEMOCK\nATTRIBUTE[whiteboard]: genericwhiteboard\n\n\n\n" filename = '/home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/python-bugzilla-3.2.0/tests/data/clioutput/test_query2.txt' expect_out = "Bugzilla 1165434: \nATTRIBUTE[actual_time]: 0.0\nATTRIBUTE[alias]: []\nATTRIBUTE[assigned_to]: lvm-team@redhat.com\nA...TRIBUTE[version]: ['5.8']\nATTRIBUTE[weburl]: https:///TESTSUITEMOCK\nATTRIBUTE[whiteboard]: genericwhiteboard\n\n\n\n" def diff_compare(inputdata, filename, expect_out=None): """Compare passed string output to contents of filename""" def _process(data): if isinstance(data, tuple) and len(data) == 1: data = data[0] if isinstance(data, (dict, tuple)): out = pprint.pformat(data, width=81) else: out = str(data) if not out.endswith("\n"): out += "\n" return out actual_out = _process(inputdata) if filename: filename = tests_path(filename) if not os.path.exists(filename) or tests.CLICONFIG.REGENERATE_OUTPUT: open(filename, "w").write(actual_out) expect_out = open(filename).read() else: expect_out = _process(expect_out) diff = "".join(difflib.unified_diff(expect_out.splitlines(1), actual_out.splitlines(1), fromfile=filename or "Manual input", tofile="Generated Output")) if diff: > raise AssertionError("Conversion outputs did not match.\n%s" % diff) E AssertionError: Conversion outputs did not match. E --- /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/python-bugzilla-3.2.0/tests/data/clioutput/test_query2.txt E +++ Generated Output E @@ -57,7 +57,7 @@ E ATTRIBUTE[target_release]: ['---'] E ATTRIBUTE[url]: E ATTRIBUTE[version]: ['5.8'] E -ATTRIBUTE[weburl]: https:///TESTSUITEMOCK E +ATTRIBUTE[weburl]: https:TESTSUITEMOCK E ATTRIBUTE[whiteboard]: genericwhiteboard tests/utils.py:81: AssertionError =============================== warnings summary =============================== tests/conftest.py:41 /home/pterjan/rpmbuild/BUILD/python-bugzilla-3.2.0-build/python-bugzilla-3.2.0/tests/conftest.py:41: PytestRemovedIn9Warning: The (path: py.path.local) argument is deprecated, please use (collection_path: pathlib.Path) see https://docs.pytest.org/en/latest/deprecations.html#py-path-local-arguments-for-hooks-replaced-with-pathlib-path def pytest_ignore_collect(path, config): -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/test_cli_misc.py::testManualURL - assert 'No host supplied' in '... FAILED tests/test_cli_query.py::test_query - AssertionError: Conversion outpu... =================== 2 failed, 51 passed, 1 warning in 0.72s ==================== error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.w3D68O (%check) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.w3D68O (%check) I: [iurt_root_command] ERROR: chroot