Mock Version: 2.12 Mock Version: 2.12 Mock Version: 2.12 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-jwt.spec'], chrootPath='/var/lib/mock/dist-an23-build-200335-60963/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=989gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-jwt.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1674086400 Wrote: /builddir/build/SRPMS/python-jwt-2.6.0-1.an23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --target x86_64 --nodeps /builddir/build/SPECS/python-jwt.spec'], chrootPath='/var/lib/mock/dist-an23-build-200335-60963/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=989gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueraiseExc=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -br --target x86_64 --nodeps /builddir/build/SPECS/python-jwt.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1674086400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.ciZ9Oy + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf PyJWT-2.6.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/PyJWT-2.6.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd PyJWT-2.6.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -rf PyJWT.egg-info + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.UYByJx + umask 022 + cd /builddir/build/BUILD + cd PyJWT-2.6.0 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + echo 'python3dist(toml)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + RPM_TOXENV=py310 + HOSTNAME=rpmbuild + /usr/bin/python3 -s /usr/lib/rpm/anolis/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 Import error: No module named 'toml' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-jwt-2.6.0-1.an23.buildreqs.nosrc.rpm Child return code was: 11 Dynamic buildrequires detected Going to install missing buildrequires. See root.log for details. ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --target x86_64 --nodeps /builddir/build/SPECS/python-jwt.spec'], chrootPath='/var/lib/mock/dist-an23-build-200335-60963/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=989gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueraiseExc=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -br --target x86_64 --nodeps /builddir/build/SPECS/python-jwt.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1674086400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.hG4mrB + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf PyJWT-2.6.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/PyJWT-2.6.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd PyJWT-2.6.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -rf PyJWT.egg-info + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.dYeZwQ + umask 022 + cd /builddir/build/BUILD + cd PyJWT-2.6.0 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + echo 'python3dist(toml)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + RPM_TOXENV=py310 + HOSTNAME=rpmbuild + /usr/bin/python3 -s /usr/lib/rpm/anolis/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 Handling setuptools from build-system.requires Requirement satisfied: setuptools (installed: setuptools 60.9.3) warning: no previously-included files found matching 'codecov.yml' warning: no previously-included files matching '*' found under directory 'docs/_build' warning: no previously-included files matching '*.py[co]' found under directory '*' warning: no previously-included files matching '__pycache__' found under directory '*' HOOK STDOUT: running egg_info HOOK STDOUT: creating PyJWT.egg-info HOOK STDOUT: writing PyJWT.egg-info/PKG-INFO HOOK STDOUT: writing dependency_links to PyJWT.egg-info/dependency_links.txt HOOK STDOUT: writing requirements to PyJWT.egg-info/requires.txt HOOK STDOUT: writing top-level names to PyJWT.egg-info/top_level.txt HOOK STDOUT: writing manifest file 'PyJWT.egg-info/SOURCES.txt' HOOK STDOUT: reading manifest file 'PyJWT.egg-info/SOURCES.txt' HOOK STDOUT: reading manifest template 'MANIFEST.in' HOOK STDOUT: adding license file 'LICENSE' HOOK STDOUT: adding license file 'AUTHORS.rst' HOOK STDOUT: writing manifest file 'PyJWT.egg-info/SOURCES.txt' Handling wheel from get_requires_for_build_wheel Requirement not satisfied: wheel Exiting dependency generation pass: get_requires_for_build_wheel + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-jwt-2.6.0-1.an23.buildreqs.nosrc.rpm Child return code was: 11 Dynamic buildrequires detected Going to install missing buildrequires. See root.log for details. ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --target x86_64 --nodeps /builddir/build/SPECS/python-jwt.spec'], chrootPath='/var/lib/mock/dist-an23-build-200335-60963/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=989gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueraiseExc=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -br --target x86_64 --nodeps /builddir/build/SPECS/python-jwt.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1674086400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.mEoVOc + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf PyJWT-2.6.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/PyJWT-2.6.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd PyJWT-2.6.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -rf PyJWT.egg-info + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.czAiDz + umask 022 + cd /builddir/build/BUILD + cd PyJWT-2.6.0 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + echo 'python3dist(toml)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + RPM_TOXENV=py310 + HOSTNAME=rpmbuild + /usr/bin/python3 -s /usr/lib/rpm/anolis/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 Handling setuptools from build-system.requires Requirement satisfied: setuptools (installed: setuptools 60.9.3) warning: no previously-included files found matching 'codecov.yml' warning: no previously-included files matching '*' found under directory 'docs/_build' warning: no previously-included files matching '*.py[co]' found under directory '*' warning: no previously-included files matching '__pycache__' found under directory '*' HOOK STDOUT: running egg_info HOOK STDOUT: creating PyJWT.egg-info HOOK STDOUT: writing PyJWT.egg-info/PKG-INFO HOOK STDOUT: writing dependency_links to PyJWT.egg-info/dependency_links.txt HOOK STDOUT: writing requirements to PyJWT.egg-info/requires.txt HOOK STDOUT: writing top-level names to PyJWT.egg-info/top_level.txt HOOK STDOUT: writing manifest file 'PyJWT.egg-info/SOURCES.txt' HOOK STDOUT: reading manifest file 'PyJWT.egg-info/SOURCES.txt' HOOK STDOUT: reading manifest template 'MANIFEST.in' HOOK STDOUT: adding license file 'LICENSE' HOOK STDOUT: adding license file 'AUTHORS.rst' HOOK STDOUT: writing manifest file 'PyJWT.egg-info/SOURCES.txt' Handling wheel from get_requires_for_build_wheel Requirement satisfied: wheel (installed: wheel 0.38.4) warning: no previously-included files found matching 'codecov.yml' warning: no previously-included files matching '*' found under directory 'docs/_build' warning: no previously-included files matching '*.py[co]' found under directory '*' warning: no previously-included files matching '__pycache__' found under directory '*' HOOK STDOUT: running dist_info HOOK STDOUT: writing PyJWT.egg-info/PKG-INFO HOOK STDOUT: writing dependency_links to PyJWT.egg-info/dependency_links.txt HOOK STDOUT: writing requirements to PyJWT.egg-info/requires.txt HOOK STDOUT: writing top-level names to PyJWT.egg-info/top_level.txt HOOK STDOUT: reading manifest file 'PyJWT.egg-info/SOURCES.txt' HOOK STDOUT: reading manifest template 'MANIFEST.in' HOOK STDOUT: adding license file 'LICENSE' HOOK STDOUT: adding license file 'AUTHORS.rst' HOOK STDOUT: writing manifest file 'PyJWT.egg-info/SOURCES.txt' HOOK STDOUT: creating '/builddir/build/BUILD/PyJWT-2.6.0/PyJWT.dist-info' Handling cryptography (>=3.4.0) ; extra == 'crypto' from wheel metadata: Requires-Dist Ignoring alien requirement: cryptography (>=3.4.0) ; extra == 'crypto' Handling sphinx (<5.0.0,>=4.5.0) ; extra == 'dev' from wheel metadata: Requires-Dist Ignoring alien requirement: sphinx (<5.0.0,>=4.5.0) ; extra == 'dev' Handling sphinx-rtd-theme ; extra == 'dev' from wheel metadata: Requires-Dist Ignoring alien requirement: sphinx-rtd-theme ; extra == 'dev' Handling zope.interface ; extra == 'dev' from wheel metadata: Requires-Dist Ignoring alien requirement: zope.interface ; extra == 'dev' Handling cryptography (>=3.4.0) ; extra == 'dev' from wheel metadata: Requires-Dist Ignoring alien requirement: cryptography (>=3.4.0) ; extra == 'dev' Handling pytest (<7.0.0,>=6.0.0) ; extra == 'dev' from wheel metadata: Requires-Dist Ignoring alien requirement: pytest (<7.0.0,>=6.0.0) ; extra == 'dev' Handling coverage[toml] (==5.0.4) ; extra == 'dev' from wheel metadata: Requires-Dist Ignoring alien requirement: coverage[toml] (==5.0.4) ; extra == 'dev' Handling pre-commit ; extra == 'dev' from wheel metadata: Requires-Dist Ignoring alien requirement: pre-commit ; extra == 'dev' Handling sphinx (<5.0.0,>=4.5.0) ; extra == 'docs' from wheel metadata: Requires-Dist Ignoring alien requirement: sphinx (<5.0.0,>=4.5.0) ; extra == 'docs' Handling sphinx-rtd-theme ; extra == 'docs' from wheel metadata: Requires-Dist Ignoring alien requirement: sphinx-rtd-theme ; extra == 'docs' Handling zope.interface ; extra == 'docs' from wheel metadata: Requires-Dist Ignoring alien requirement: zope.interface ; extra == 'docs' Handling pytest (<7.0.0,>=6.0.0) ; extra == 'tests' from wheel metadata: Requires-Dist Ignoring alien requirement: pytest (<7.0.0,>=6.0.0) ; extra == 'tests' Handling coverage[toml] (==5.0.4) ; extra == 'tests' from wheel metadata: Requires-Dist Ignoring alien requirement: coverage[toml] (==5.0.4) ; extra == 'tests' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-jwt-2.6.0-1.an23.buildreqs.nosrc.rpm Child return code was: 11 Dynamic buildrequires detected Going to install missing buildrequires. See root.log for details. ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -ba --noprep --target x86_64 --nodeps /builddir/build/SPECS/python-jwt.spec'], chrootPath='/var/lib/mock/dist-an23-build-200335-60963/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=989gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -ba --noprep --target x86_64 --nodeps /builddir/build/SPECS/python-jwt.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1674086400 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.IH68t2 + umask 022 + cd /builddir/build/BUILD + cd PyJWT-2.6.0 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + echo 'python3dist(toml)' + rm -rfv PyJWT.dist-info/ removed 'PyJWT.dist-info/top_level.txt' removed 'PyJWT.dist-info/METADATA' removed 'PyJWT.dist-info/LICENSE' removed 'PyJWT.dist-info/AUTHORS.rst' removed directory 'PyJWT.dist-info/' + '[' -f /usr/bin/python3 ']' + RPM_TOXENV=py310 + HOSTNAME=rpmbuild + /usr/bin/python3 -s /usr/lib/rpm/anolis/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 Handling setuptools from build-system.requires Requirement satisfied: setuptools (installed: setuptools 60.9.3) warning: no previously-included files found matching 'codecov.yml' warning: no previously-included files matching '*' found under directory 'docs/_build' warning: no previously-included files matching '*.py[co]' found under directory '*' warning: no previously-included files matching '__pycache__' found under directory '*' HOOK STDOUT: running egg_info HOOK STDOUT: creating PyJWT.egg-info HOOK STDOUT: writing PyJWT.egg-info/PKG-INFO HOOK STDOUT: writing dependency_links to PyJWT.egg-info/dependency_links.txt HOOK STDOUT: writing requirements to PyJWT.egg-info/requires.txt HOOK STDOUT: writing top-level names to PyJWT.egg-info/top_level.txt HOOK STDOUT: writing manifest file 'PyJWT.egg-info/SOURCES.txt' HOOK STDOUT: reading manifest file 'PyJWT.egg-info/SOURCES.txt' HOOK STDOUT: reading manifest template 'MANIFEST.in' HOOK STDOUT: adding license file 'LICENSE' HOOK STDOUT: adding license file 'AUTHORS.rst' HOOK STDOUT: writing manifest file 'PyJWT.egg-info/SOURCES.txt' Handling wheel from get_requires_for_build_wheel Requirement satisfied: wheel (installed: wheel 0.38.4) warning: no previously-included files found matching 'codecov.yml' warning: no previously-included files matching '*' found under directory 'docs/_build' warning: no previously-included files matching '*.py[co]' found under directory '*' warning: no previously-included files matching '__pycache__' found under directory '*' HOOK STDOUT: running dist_info HOOK STDOUT: writing PyJWT.egg-info/PKG-INFO HOOK STDOUT: writing dependency_links to PyJWT.egg-info/dependency_links.txt HOOK STDOUT: writing requirements to PyJWT.egg-info/requires.txt HOOK STDOUT: writing top-level names to PyJWT.egg-info/top_level.txt HOOK STDOUT: reading manifest file 'PyJWT.egg-info/SOURCES.txt' HOOK STDOUT: reading manifest template 'MANIFEST.in' HOOK STDOUT: adding license file 'LICENSE' HOOK STDOUT: adding license file 'AUTHORS.rst' HOOK STDOUT: writing manifest file 'PyJWT.egg-info/SOURCES.txt' HOOK STDOUT: creating '/builddir/build/BUILD/PyJWT-2.6.0/PyJWT.dist-info' Handling cryptography (>=3.4.0) ; extra == 'crypto' from wheel metadata: Requires-Dist Ignoring alien requirement: cryptography (>=3.4.0) ; extra == 'crypto' Handling sphinx (<5.0.0,>=4.5.0) ; extra == 'dev' from wheel metadata: Requires-Dist Ignoring alien requirement: sphinx (<5.0.0,>=4.5.0) ; extra == 'dev' Handling sphinx-rtd-theme ; extra == 'dev' from wheel metadata: Requires-Dist Ignoring alien requirement: sphinx-rtd-theme ; extra == 'dev' Handling zope.interface ; extra == 'dev' from wheel metadata: Requires-Dist Ignoring alien requirement: zope.interface ; extra == 'dev' Handling cryptography (>=3.4.0) ; extra == 'dev' from wheel metadata: Requires-Dist Ignoring alien requirement: cryptography (>=3.4.0) ; extra == 'dev' Handling pytest (<7.0.0,>=6.0.0) ; extra == 'dev' from wheel metadata: Requires-Dist Ignoring alien requirement: pytest (<7.0.0,>=6.0.0) ; extra == 'dev' Handling coverage[toml] (==5.0.4) ; extra == 'dev' from wheel metadata: Requires-Dist Ignoring alien requirement: coverage[toml] (==5.0.4) ; extra == 'dev' Handling pre-commit ; extra == 'dev' from wheel metadata: Requires-Dist Ignoring alien requirement: pre-commit ; extra == 'dev' Handling sphinx (<5.0.0,>=4.5.0) ; extra == 'docs' from wheel metadata: Requires-Dist Ignoring alien requirement: sphinx (<5.0.0,>=4.5.0) ; extra == 'docs' Handling sphinx-rtd-theme ; extra == 'docs' from wheel metadata: Requires-Dist Ignoring alien requirement: sphinx-rtd-theme ; extra == 'docs' Handling zope.interface ; extra == 'docs' from wheel metadata: Requires-Dist Ignoring alien requirement: zope.interface ; extra == 'docs' Handling pytest (<7.0.0,>=6.0.0) ; extra == 'tests' from wheel metadata: Requires-Dist Ignoring alien requirement: pytest (<7.0.0,>=6.0.0) ; extra == 'tests' Handling coverage[toml] (==5.0.4) ; extra == 'tests' from wheel metadata: Requires-Dist Ignoring alien requirement: coverage[toml] (==5.0.4) ; extra == 'tests' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.sStvYp + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd PyJWT-2.6.0 + mkdir -p /builddir/build/BUILD/PyJWT-2.6.0/.pyproject-builddir + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + TMPDIR=/builddir/build/BUILD/PyJWT-2.6.0/.pyproject-builddir + /usr/bin/python3 -m pip wheel --wheel-dir /builddir/build/BUILD/PyJWT-2.6.0/pyproject-wheeldir --no-deps --use-pep517 --no-build-isolation --disable-pip-version-check --no-clean --progress-bar off --verbose . Processing /builddir/build/BUILD/PyJWT-2.6.0 Preparing metadata (pyproject.toml): started Running command Preparing metadata (pyproject.toml) running dist_info creating /builddir/build/BUILD/PyJWT-2.6.0/.pyproject-builddir/pip-modern-metadata-c_f1zs_o/PyJWT.egg-info writing /builddir/build/BUILD/PyJWT-2.6.0/.pyproject-builddir/pip-modern-metadata-c_f1zs_o/PyJWT.egg-info/PKG-INFO writing dependency_links to /builddir/build/BUILD/PyJWT-2.6.0/.pyproject-builddir/pip-modern-metadata-c_f1zs_o/PyJWT.egg-info/dependency_links.txt writing requirements to /builddir/build/BUILD/PyJWT-2.6.0/.pyproject-builddir/pip-modern-metadata-c_f1zs_o/PyJWT.egg-info/requires.txt writing top-level names to /builddir/build/BUILD/PyJWT-2.6.0/.pyproject-builddir/pip-modern-metadata-c_f1zs_o/PyJWT.egg-info/top_level.txt writing manifest file '/builddir/build/BUILD/PyJWT-2.6.0/.pyproject-builddir/pip-modern-metadata-c_f1zs_o/PyJWT.egg-info/SOURCES.txt' reading manifest file '/builddir/build/BUILD/PyJWT-2.6.0/.pyproject-builddir/pip-modern-metadata-c_f1zs_o/PyJWT.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files found matching 'codecov.yml' warning: no previously-included files matching '*' found under directory 'docs/_build' warning: no previously-included files matching '*.py[co]' found under directory '*' warning: no previously-included files matching '__pycache__' found under directory '*' adding license file 'LICENSE' adding license file 'AUTHORS.rst' writing manifest file '/builddir/build/BUILD/PyJWT-2.6.0/.pyproject-builddir/pip-modern-metadata-c_f1zs_o/PyJWT.egg-info/SOURCES.txt' creating '/builddir/build/BUILD/PyJWT-2.6.0/.pyproject-builddir/pip-modern-metadata-c_f1zs_o/PyJWT.dist-info' Preparing metadata (pyproject.toml): finished with status 'done' Building wheels for collected packages: PyJWT Building wheel for PyJWT (pyproject.toml): started Running command Building wheel for PyJWT (pyproject.toml) running bdist_wheel running build running build_py creating build creating build/lib creating build/lib/jwt copying jwt/__init__.py -> build/lib/jwt copying jwt/algorithms.py -> build/lib/jwt copying jwt/api_jwk.py -> build/lib/jwt copying jwt/api_jws.py -> build/lib/jwt copying jwt/api_jwt.py -> build/lib/jwt copying jwt/exceptions.py -> build/lib/jwt copying jwt/help.py -> build/lib/jwt copying jwt/jwk_set_cache.py -> build/lib/jwt copying jwt/jwks_client.py -> build/lib/jwt copying jwt/utils.py -> build/lib/jwt copying jwt/warnings.py -> build/lib/jwt running egg_info creating PyJWT.egg-info writing PyJWT.egg-info/PKG-INFO writing dependency_links to PyJWT.egg-info/dependency_links.txt writing requirements to PyJWT.egg-info/requires.txt writing top-level names to PyJWT.egg-info/top_level.txt writing manifest file 'PyJWT.egg-info/SOURCES.txt' reading manifest file 'PyJWT.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files found matching 'codecov.yml' warning: no previously-included files matching '*' found under directory 'docs/_build' warning: no previously-included files matching '*.py[co]' found under directory '*' warning: no previously-included files matching '__pycache__' found under directory '*' adding license file 'LICENSE' adding license file 'AUTHORS.rst' writing manifest file 'PyJWT.egg-info/SOURCES.txt' copying jwt/py.typed -> build/lib/jwt installing to build/bdist.linux-x86_64/wheel running install running install_lib creating build/bdist.linux-x86_64 creating build/bdist.linux-x86_64/wheel creating build/bdist.linux-x86_64/wheel/jwt copying build/lib/jwt/__init__.py -> build/bdist.linux-x86_64/wheel/jwt copying build/lib/jwt/algorithms.py -> build/bdist.linux-x86_64/wheel/jwt copying build/lib/jwt/api_jwk.py -> build/bdist.linux-x86_64/wheel/jwt copying build/lib/jwt/api_jws.py -> build/bdist.linux-x86_64/wheel/jwt copying build/lib/jwt/api_jwt.py -> build/bdist.linux-x86_64/wheel/jwt copying build/lib/jwt/exceptions.py -> build/bdist.linux-x86_64/wheel/jwt copying build/lib/jwt/help.py -> build/bdist.linux-x86_64/wheel/jwt copying build/lib/jwt/jwk_set_cache.py -> build/bdist.linux-x86_64/wheel/jwt copying build/lib/jwt/jwks_client.py -> build/bdist.linux-x86_64/wheel/jwt copying build/lib/jwt/utils.py -> build/bdist.linux-x86_64/wheel/jwt copying build/lib/jwt/warnings.py -> build/bdist.linux-x86_64/wheel/jwt copying build/lib/jwt/py.typed -> build/bdist.linux-x86_64/wheel/jwt running install_egg_info Copying PyJWT.egg-info to build/bdist.linux-x86_64/wheel/PyJWT-2.6.0-py3.10.egg-info running install_scripts creating build/bdist.linux-x86_64/wheel/PyJWT-2.6.0.dist-info/WHEEL creating '/builddir/build/BUILD/PyJWT-2.6.0/.pyproject-builddir/pip-wheel-m56de7fw/tmp2fz95qmj/PyJWT-2.6.0-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it adding 'jwt/__init__.py' adding 'jwt/algorithms.py' adding 'jwt/api_jwk.py' adding 'jwt/api_jws.py' adding 'jwt/api_jwt.py' adding 'jwt/exceptions.py' adding 'jwt/help.py' adding 'jwt/jwk_set_cache.py' adding 'jwt/jwks_client.py' adding 'jwt/py.typed' adding 'jwt/utils.py' adding 'jwt/warnings.py' adding 'PyJWT-2.6.0.dist-info/AUTHORS.rst' adding 'PyJWT-2.6.0.dist-info/LICENSE' adding 'PyJWT-2.6.0.dist-info/METADATA' adding 'PyJWT-2.6.0.dist-info/WHEEL' adding 'PyJWT-2.6.0.dist-info/top_level.txt' adding 'PyJWT-2.6.0.dist-info/RECORD' removing build/bdist.linux-x86_64/wheel Building wheel for PyJWT (pyproject.toml): finished with status 'done' Created wheel for PyJWT: filename=PyJWT-2.6.0-py3-none-any.whl size=20345 sha256=be0ee34b5f3c9d787a2378fb925d6a71ff2ba60f4fb0b2fa53ae76d431acd17b Stored in directory: /builddir/.cache/pip/wheels/8f/33/20/4dc5cf889445175585d4be8bbae92803711df8cba5850e4df9 Successfully built PyJWT + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.BrysHh + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-jwt-2.6.0-1.an23.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-jwt-2.6.0-1.an23.x86_64 ++ dirname /builddir/build/BUILDROOT/python-jwt-2.6.0-1.an23.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-jwt-2.6.0-1.an23.x86_64 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd PyJWT-2.6.0 ++ ls /builddir/build/BUILD/PyJWT-2.6.0/pyproject-wheeldir/PyJWT-2.6.0-py3-none-any.whl ++ xargs basename --multiple ++ sed -E 's/([^-]+)-([^-]+)-.+\.whl/\1==\2/' + specifier=PyJWT==2.6.0 + TMPDIR=/builddir/build/BUILD/PyJWT-2.6.0/.pyproject-builddir + /usr/bin/python3 -m pip install --root /builddir/build/BUILDROOT/python-jwt-2.6.0-1.an23.x86_64 --no-deps --disable-pip-version-check --progress-bar off --verbose --ignore-installed --no-warn-script-location --no-index --no-cache-dir --find-links /builddir/build/BUILD/PyJWT-2.6.0/pyproject-wheeldir PyJWT==2.6.0 Using pip 22.0.4 from /usr/lib/python3.10/site-packages/pip (python 3.10) Looking in links: /builddir/build/BUILD/PyJWT-2.6.0/pyproject-wheeldir Processing ./pyproject-wheeldir/PyJWT-2.6.0-py3-none-any.whl Installing collected packages: PyJWT Successfully installed PyJWT-2.6.0 + '[' -d /builddir/build/BUILDROOT/python-jwt-2.6.0-1.an23.x86_64/usr/bin ']' + rm -f /builddir/build/BUILD/pyproject-ghost-distinfo + site_dirs=() + '[' -d /builddir/build/BUILDROOT/python-jwt-2.6.0-1.an23.x86_64/usr/lib/python3.10/site-packages ']' + site_dirs+=("/usr/lib/python3.10/site-packages") + '[' /builddir/build/BUILDROOT/python-jwt-2.6.0-1.an23.x86_64/usr/lib64/python3.10/site-packages '!=' /builddir/build/BUILDROOT/python-jwt-2.6.0-1.an23.x86_64/usr/lib/python3.10/site-packages ']' + '[' -d /builddir/build/BUILDROOT/python-jwt-2.6.0-1.an23.x86_64/usr/lib64/python3.10/site-packages ']' + for site_dir in ${site_dirs[@]} + for distinfo in /builddir/build/BUILDROOT/python-jwt-2.6.0-1.an23.x86_64$site_dir/*.dist-info + echo '%ghost /usr/lib/python3.10/site-packages/PyJWT-2.6.0.dist-info' + sed -i s/pip/rpm/ /builddir/build/BUILDROOT/python-jwt-2.6.0-1.an23.x86_64/usr/lib/python3.10/site-packages/PyJWT-2.6.0.dist-info/INSTALLER + PYTHONPATH=/usr/lib/rpm/anolis + /usr/bin/python3 -B /usr/lib/rpm/anolis/pyproject_preprocess_record.py --buildroot /builddir/build/BUILDROOT/python-jwt-2.6.0-1.an23.x86_64 --record /builddir/build/BUILDROOT/python-jwt-2.6.0-1.an23.x86_64/usr/lib/python3.10/site-packages/PyJWT-2.6.0.dist-info/RECORD --output /builddir/build/BUILD/pyproject-record + rm -fv /builddir/build/BUILDROOT/python-jwt-2.6.0-1.an23.x86_64/usr/lib/python3.10/site-packages/PyJWT-2.6.0.dist-info/RECORD removed '/builddir/build/BUILDROOT/python-jwt-2.6.0-1.an23.x86_64/usr/lib/python3.10/site-packages/PyJWT-2.6.0.dist-info/RECORD' + rm -fv /builddir/build/BUILDROOT/python-jwt-2.6.0-1.an23.x86_64/usr/lib/python3.10/site-packages/PyJWT-2.6.0.dist-info/REQUESTED removed '/builddir/build/BUILDROOT/python-jwt-2.6.0-1.an23.x86_64/usr/lib/python3.10/site-packages/PyJWT-2.6.0.dist-info/REQUESTED' ++ wc -l /builddir/build/BUILD/pyproject-ghost-distinfo ++ cut -f1 '-d ' + lines=1 + '[' 1 -ne 1 ']' + /usr/bin/find-debuginfo -j64 --strict-build-id -m -i --build-id-seed 2.6.0-1.an23 --unique-debug-suffix -2.6.0-1.an23.x86_64 --unique-debug-src-base python-jwt-2.6.0-1.an23.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /builddir/build/BUILD/PyJWT-2.6.0 find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/anolis/brp-ldconfig + COMPRESS='zstd -f --rm -19 -T0' + COMPRESS_EXT=.zst + /usr/lib/rpm/brp-compress + /usr/lib/rpm/anolis/brp-strip-lto /usr/bin/strip + /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/anolis/brp-mangle-shebangs + /usr/lib/rpm/anolis/remove-info-dir + /usr/lib/rpm/anolis/relink_symlinks + /usr/lib/rpm/anolis/check-desktop-files + /usr/lib/rpm/anolis/brp-python-bytecompile '' 1 0 Bytecompiling .py files below /builddir/build/BUILDROOT/python-jwt-2.6.0-1.an23.x86_64/usr/lib/python3.10 using python3.10 + /usr/lib/rpm/anolis/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.9hV2zX + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd PyJWT-2.6.0 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + PATH=/builddir/build/BUILDROOT/python-jwt-2.6.0-1.an23.x86_64/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin + PYTHONPATH=/builddir/build/BUILDROOT/python-jwt-2.6.0-1.an23.x86_64/usr/lib64/python3.10/site-packages:/builddir/build/BUILDROOT/python-jwt-2.6.0-1.an23.x86_64/usr/lib/python3.10/site-packages + PYTHONDONTWRITEBYTECODE=1 + PYTEST_ADDOPTS=' --ignore=/builddir/build/BUILD/PyJWT-2.6.0/.pyproject-builddir' + /usr/bin/pytest ============================= test session starts ============================== platform linux -- Python 3.10.9, pytest-7.1.3, pluggy-1.0.0 rootdir: /builddir/build/BUILD/PyJWT-2.6.0, configfile: tox.ini, testpaths: tests collected 242 items tests/test_advisory.py . [ 0%] tests/test_algorithms.py .............................F................. [ 19%] ........................ [ 29%] tests/test_api_jwk.py .................. [ 37%] tests/test_api_jws.py ..................................s............... [ 57%] ................... [ 65%] tests/test_api_jwt.py .................................................. [ 86%] .... [ 88%] tests/test_exceptions.py . [ 88%] tests/test_jwks_client.py ............... [ 94%] tests/test_jwt.py . [ 95%] tests/test_utils.py .....x...... [100%] =================================== FAILURES =================================== _______________ TestAlgorithms.test_ec_to_jwk_with_invalid_curve _______________ self = key = b'-----BEGIN PRIVATE KEY-----\nMG8CAQAwEwYHKoZIzj0CAQYIKoZIzj0DAQEEVTBTAgEBBBiON6kYcPu8ZUDRTu8W\neXJ2FmX7e9yq0hahNAMyAARHecLjkXWDUJfZ4wiFH61JpmonCYH1GpinVlqw68Sf\nwtDHg2F6SifQEFC6VKj1ZXw=\n-----END PRIVATE KEY-----\n' def prepare_key(self, key): if isinstance(key, (EllipticCurvePrivateKey, EllipticCurvePublicKey)): return key if not isinstance(key, (bytes, str)): raise TypeError("Expecting a PEM-formatted key.") key = force_bytes(key) # Attempt to load key. We don't know if it's # a Signing Key or a Verifying Key, so we try # the Verifying Key first. try: if key.startswith(b"ecdsa-sha2-"): key = load_ssh_public_key(key) else: > key = load_pem_public_key(key) jwt/algorithms.py:411: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ data = b'-----BEGIN PRIVATE KEY-----\nMG8CAQAwEwYHKoZIzj0CAQYIKoZIzj0DAQEEVTBTAgEBBBiON6kYcPu8ZUDRTu8W\neXJ2FmX7e9yq0hahNAMyAARHecLjkXWDUJfZ4wiFH61JpmonCYH1GpinVlqw68Sf\nwtDHg2F6SifQEFC6VKj1ZXw=\n-----END PRIVATE KEY-----\n' backend = None def load_pem_public_key( data: bytes, backend: typing.Any = None ) -> PUBLIC_KEY_TYPES: from cryptography.hazmat.backends.openssl.backend import backend as ossl > return ossl.load_pem_public_key(data) /usr/lib64/python3.10/site-packages/cryptography/hazmat/primitives/serialization/base.py:30: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = b'-----BEGIN PRIVATE KEY-----\nMG8CAQAwEwYHKoZIzj0CAQYIKoZIzj0DAQEEVTBTAgEBBBiON6kYcPu8ZUDRTu8W\neXJ2FmX7e9yq0hahNAMyAARHecLjkXWDUJfZ4wiFH61JpmonCYH1GpinVlqw68Sf\nwtDHg2F6SifQEFC6VKj1ZXw=\n-----END PRIVATE KEY-----\n' def load_pem_public_key(self, data: bytes) -> PUBLIC_KEY_TYPES: mem_bio = self._bytes_to_bio(data) # In OpenSSL 3.0.x the PEM_read_bio_PUBKEY function will invoke # the default password callback if you pass an encrypted private # key. This is very, very, very bad as the default callback can # trigger an interactive console prompt, which will hang the # Python process. We therefore provide our own callback to # catch this and error out properly. userdata = self._ffi.new("CRYPTOGRAPHY_PASSWORD_DATA *") evp_pkey = self._lib.PEM_read_bio_PUBKEY( mem_bio.bio, self._ffi.NULL, self._ffi.addressof( self._lib._original_lib, "Cryptography_pem_password_cb" ), userdata, ) if evp_pkey != self._ffi.NULL: evp_pkey = self._ffi.gc(evp_pkey, self._lib.EVP_PKEY_free) return self._evp_pkey_to_public_key(evp_pkey) else: # It's not a (RSA/DSA/ECDSA) subjectPublicKeyInfo, but we still # need to check to see if it is a pure PKCS1 RSA public key (not # embedded in a subjectPublicKeyInfo) self._consume_errors() res = self._lib.BIO_reset(mem_bio.bio) self.openssl_assert(res == 1) rsa_cdata = self._lib.PEM_read_bio_RSAPublicKey( mem_bio.bio, self._ffi.NULL, self._ffi.addressof( self._lib._original_lib, "Cryptography_pem_password_cb" ), userdata, ) if rsa_cdata != self._ffi.NULL: rsa_cdata = self._ffi.gc(rsa_cdata, self._lib.RSA_free) evp_pkey = self._rsa_cdata_to_evp_pkey(rsa_cdata) return _RSAPublicKey(self, rsa_cdata, evp_pkey) else: > self._handle_key_loading_error() /usr/lib64/python3.10/site-packages/cryptography/hazmat/backends/openssl/backend.py:968: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _handle_key_loading_error(self) -> typing.NoReturn: errors = self._consume_errors() if not errors: raise ValueError( "Could not deserialize key data. The data may be in an " "incorrect format or it may be encrypted with an unsupported " "algorithm." ) elif ( errors[0]._lib_reason_match( self._lib.ERR_LIB_EVP, self._lib.EVP_R_BAD_DECRYPT ) or errors[0]._lib_reason_match( self._lib.ERR_LIB_PKCS12, self._lib.PKCS12_R_PKCS12_CIPHERFINAL_ERROR, ) or ( self._lib.Cryptography_HAS_PROVIDERS and errors[0]._lib_reason_match( self._lib.ERR_LIB_PROV, self._lib.PROV_R_BAD_DECRYPT, ) ) ): raise ValueError("Bad decrypt. Incorrect password?") elif any( error._lib_reason_match( self._lib.ERR_LIB_EVP, self._lib.EVP_R_UNSUPPORTED_PRIVATE_KEY_ALGORITHM, ) for error in errors ): raise ValueError("Unsupported public key algorithm.") else: errors_with_text = binding._errors_with_text(errors) > raise ValueError( "Could not deserialize key data. The data may be in an " "incorrect format, it may be encrypted with an unsupported " "algorithm, or it may be an unsupported key type (e.g. EC " "curves with explicit parameters).", errors_with_text, ) E ValueError: ('Could not deserialize key data. The data may be in an incorrect format, it may be encrypted with an unsupported algorithm, or it may be an unsupported key type (e.g. EC curves with explicit parameters).', [_OpenSSLErrorWithText(code=75497580, lib=9, reason=108, reason_text=b'error:0480006C:PEM routines::no start line')]) /usr/lib64/python3.10/site-packages/cryptography/hazmat/backends/openssl/backend.py:1248: ValueError During handling of the above exception, another exception occurred: self = @crypto_required def test_ec_to_jwk_with_invalid_curve(self): algo = ECAlgorithm(ECAlgorithm.SHA256) with open(key_path("testkey_ec_secp192r1.priv")) as keyfile: > priv_key = algo.prepare_key(keyfile.read()) tests/test_algorithms.py:331: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ jwt/algorithms.py:413: in prepare_key key = load_pem_private_key(key, password=None) /usr/lib64/python3.10/site-packages/cryptography/hazmat/primitives/serialization/base.py:22: in load_pem_private_key return ossl.load_pem_private_key(data, password) /usr/lib64/python3.10/site-packages/cryptography/hazmat/backends/openssl/backend.py:921: in load_pem_private_key return self._load_key( /usr/lib64/python3.10/site-packages/cryptography/hazmat/backends/openssl/backend.py:1189: in _load_key self._handle_key_loading_error() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _handle_key_loading_error(self) -> typing.NoReturn: errors = self._consume_errors() if not errors: raise ValueError( "Could not deserialize key data. The data may be in an " "incorrect format or it may be encrypted with an unsupported " "algorithm." ) elif ( errors[0]._lib_reason_match( self._lib.ERR_LIB_EVP, self._lib.EVP_R_BAD_DECRYPT ) or errors[0]._lib_reason_match( self._lib.ERR_LIB_PKCS12, self._lib.PKCS12_R_PKCS12_CIPHERFINAL_ERROR, ) or ( self._lib.Cryptography_HAS_PROVIDERS and errors[0]._lib_reason_match( self._lib.ERR_LIB_PROV, self._lib.PROV_R_BAD_DECRYPT, ) ) ): raise ValueError("Bad decrypt. Incorrect password?") elif any( error._lib_reason_match( self._lib.ERR_LIB_EVP, self._lib.EVP_R_UNSUPPORTED_PRIVATE_KEY_ALGORITHM, ) for error in errors ): raise ValueError("Unsupported public key algorithm.") else: errors_with_text = binding._errors_with_text(errors) > raise ValueError( "Could not deserialize key data. The data may be in an " "incorrect format, it may be encrypted with an unsupported " "algorithm, or it may be an unsupported key type (e.g. EC " "curves with explicit parameters).", errors_with_text, ) E ValueError: ('Could not deserialize key data. The data may be in an incorrect format, it may be encrypted with an unsupported algorithm, or it may be an unsupported key type (e.g. EC curves with explicit parameters).', [_OpenSSLErrorWithText(code=503841036, lib=60, reason=524556, reason_text=b'error:1E08010C:DECODER routines::unsupported'), _OpenSSLErrorWithText(code=134217857, lib=16, reason=129, reason_text=b'error:08000081:elliptic curve routines::unknown group')]) /usr/lib64/python3.10/site-packages/cryptography/hazmat/backends/openssl/backend.py:1248: ValueError =========================== short test summary info ============================ SKIPPED [1] tests/test_api_jws.py:388: Requires cryptography library not installed XFAIL tests/test_utils.py::test_to_base64url_uint[-1-] FAILED tests/test_algorithms.py::TestAlgorithms::test_ec_to_jwk_with_invalid_curve ============= 1 failed, 239 passed, 1 skipped, 1 xfailed in 5.34s ============== error: Bad exit status from /var/tmp/rpm-tmp.9hV2zX (%check) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.9hV2zX (%check) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 600, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -ba --noprep --target x86_64 --nodeps /builddir/build/SPECS/python-jwt.spec