Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-dunamai.spec'], chrootPath='/var/lib/mock/f38-build-side-42-init-devel-835814-28392/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=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-dunamai.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: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1687651200 Wrote: /builddir/build/SRPMS/python-dunamai-1.15.0-1.fc38.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/python-dunamai.spec'], chrootPath='/var/lib/mock/f38-build-side-42-init-devel-835814-28392/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=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueraiseExc=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/python-dunamai.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: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1687651200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.n2MvZq + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf dunamai-1.15.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/python-dunamai-1.15.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd dunamai-1.15.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.lk6lxY + umask 022 + cd /builddir/build/BUILD + cd dunamai-1.15.0 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + echo '(python3dist(toml) if python3-devel < 3.11)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/dunamai-1.15.0/.pyproject-builddir + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + TMPDIR=/builddir/build/BUILD/dunamai-1.15.0/.pyproject-builddir + RPM_TOXENV=py311 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/dunamai-1.15.0/pyproject-wheeldir Handling poetry-core>=1.0.0 from build-system.requires Requirement not satisfied: poetry-core>=1.0.0 Exiting dependency generation pass: build backend + rm -rfv '*.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-dunamai-1.15.0-1.fc38.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 --noclean --target noarch --nodeps /builddir/build/SPECS/python-dunamai.spec'], chrootPath='/var/lib/mock/f38-build-side-42-init-devel-835814-28392/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=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueraiseExc=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/python-dunamai.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: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1687651200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.okCXEV + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf dunamai-1.15.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/python-dunamai-1.15.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd dunamai-1.15.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.tAKKCZ + umask 022 + cd /builddir/build/BUILD + cd dunamai-1.15.0 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + echo '(python3dist(toml) if python3-devel < 3.11)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/dunamai-1.15.0/.pyproject-builddir + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + TMPDIR=/builddir/build/BUILD/dunamai-1.15.0/.pyproject-builddir + RPM_TOXENV=py311 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/dunamai-1.15.0/pyproject-wheeldir Handling poetry-core>=1.0.0 from build-system.requires Requirement satisfied: poetry-core>=1.0.0 (installed: poetry-core 1.4.0) Handling importlib-metadata (>=1.6.0) ; python_version < "3.8" from hook generated metadata: Requires-Dist Ignoring alien requirement: importlib-metadata (>=1.6.0) ; python_version < "3.8" Handling packaging (>=20.9) from hook generated metadata: Requires-Dist Requirement satisfied: packaging (>=20.9) (installed: packaging 23.0) + rm -rfv dunamai-1.15.0.dist-info/ removed 'dunamai-1.15.0.dist-info/LICENSE' removed 'dunamai-1.15.0.dist-info/entry_points.txt' removed 'dunamai-1.15.0.dist-info/WHEEL' removed 'dunamai-1.15.0.dist-info/METADATA' removed directory 'dunamai-1.15.0.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-dunamai-1.15.0-1.fc38.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 --noclean --target noarch --nodeps /builddir/build/SPECS/python-dunamai.spec'], chrootPath='/var/lib/mock/f38-build-side-42-init-devel-835814-28392/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=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -ba --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/python-dunamai.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: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1687651200 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.gL1GiC + umask 022 + cd /builddir/build/BUILD + cd dunamai-1.15.0 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + echo '(python3dist(toml) if python3-devel < 3.11)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/dunamai-1.15.0/.pyproject-builddir + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + TMPDIR=/builddir/build/BUILD/dunamai-1.15.0/.pyproject-builddir + RPM_TOXENV=py311 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/dunamai-1.15.0/pyproject-wheeldir Handling poetry-core>=1.0.0 from build-system.requires Requirement satisfied: poetry-core>=1.0.0 (installed: poetry-core 1.4.0) Handling importlib-metadata (>=1.6.0) ; python_version < "3.8" from hook generated metadata: Requires-Dist Ignoring alien requirement: importlib-metadata (>=1.6.0) ; python_version < "3.8" Handling packaging (>=20.9) from hook generated metadata: Requires-Dist Requirement satisfied: packaging (>=20.9) (installed: packaging 23.0) + rm -rfv dunamai-1.15.0.dist-info/ removed 'dunamai-1.15.0.dist-info/LICENSE' removed 'dunamai-1.15.0.dist-info/entry_points.txt' removed 'dunamai-1.15.0.dist-info/WHEEL' removed 'dunamai-1.15.0.dist-info/METADATA' removed directory 'dunamai-1.15.0.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.QugQZG + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd dunamai-1.15.0 + mkdir -p /builddir/build/BUILD/dunamai-1.15.0/.pyproject-builddir + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + TMPDIR=/builddir/build/BUILD/dunamai-1.15.0/.pyproject-builddir + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_wheel.py /builddir/build/BUILD/dunamai-1.15.0/pyproject-wheeldir Processing /builddir/build/BUILD/dunamai-1.15.0 Preparing metadata (pyproject.toml): started Running command Preparing metadata (pyproject.toml) Preparing metadata (pyproject.toml): finished with status 'done' Building wheels for collected packages: dunamai Building wheel for dunamai (pyproject.toml): started Running command Building wheel for dunamai (pyproject.toml) Building wheel for dunamai (pyproject.toml): finished with status 'done' Created wheel for dunamai: filename=dunamai-1.15.0-py3-none-any.whl size=23437 sha256=829ac1be4239aacb3dbd72e095742cbfb790e3e86039a7a9529bfad36e0fe54c Stored in directory: /builddir/.cache/pip/wheels/b9/22/d4/986a9a446b2128d6fb536810b076c285f874a78115c6ea3c49 Successfully built dunamai + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.G5GHtp + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-dunamai-1.15.0-1.fc38.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-dunamai-1.15.0-1.fc38.noarch ++ dirname /builddir/build/BUILDROOT/python-dunamai-1.15.0-1.fc38.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-dunamai-1.15.0-1.fc38.noarch + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd dunamai-1.15.0 ++ ls /builddir/build/BUILD/dunamai-1.15.0/pyproject-wheeldir/dunamai-1.15.0-py3-none-any.whl ++ xargs basename --multiple ++ sed -E 's/([^-]+)-([^-]+)-.+\.whl/\1==\2/' + specifier=dunamai==1.15.0 + TMPDIR=/builddir/build/BUILD/dunamai-1.15.0/.pyproject-builddir + /usr/bin/python3 -m pip install --root /builddir/build/BUILDROOT/python-dunamai-1.15.0-1.fc38.noarch --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 /builddir/build/BUILD/dunamai-1.15.0/pyproject-wheeldir dunamai==1.15.0 Using pip 22.3.1 from /usr/lib/python3.11/site-packages/pip (python 3.11) Looking in links: /builddir/build/BUILD/dunamai-1.15.0/pyproject-wheeldir Processing ./pyproject-wheeldir/dunamai-1.15.0-py3-none-any.whl Installing collected packages: dunamai Creating /builddir/build/BUILDROOT/python-dunamai-1.15.0-1.fc38.noarch/usr/bin changing mode of /builddir/build/BUILDROOT/python-dunamai-1.15.0-1.fc38.noarch/usr/bin/dunamai to 755 Successfully installed dunamai-1.15.0 + '[' -d /builddir/build/BUILDROOT/python-dunamai-1.15.0-1.fc38.noarch/usr/bin ']' + '[' -z sP ']' + shebang_flags=-kasP + /usr/bin/python3 -B /usr/lib/rpm/redhat/pathfix.py -pni /usr/bin/python3 -kasP /builddir/build/BUILDROOT/python-dunamai-1.15.0-1.fc38.noarch/usr/bin/dunamai /builddir/build/BUILDROOT/python-dunamai-1.15.0-1.fc38.noarch/usr/bin/dunamai: updating + rm -rfv /builddir/build/BUILDROOT/python-dunamai-1.15.0-1.fc38.noarch/usr/bin/__pycache__ + rm -f /builddir/build/BUILD/python-dunamai-1.15.0-1.fc38.noarch-pyproject-ghost-distinfo + site_dirs=() + '[' -d /builddir/build/BUILDROOT/python-dunamai-1.15.0-1.fc38.noarch/usr/lib/python3.11/site-packages ']' + site_dirs+=("/usr/lib/python3.11/site-packages") + '[' /builddir/build/BUILDROOT/python-dunamai-1.15.0-1.fc38.noarch/usr/lib64/python3.11/site-packages '!=' /builddir/build/BUILDROOT/python-dunamai-1.15.0-1.fc38.noarch/usr/lib/python3.11/site-packages ']' + '[' -d /builddir/build/BUILDROOT/python-dunamai-1.15.0-1.fc38.noarch/usr/lib64/python3.11/site-packages ']' + for site_dir in ${site_dirs[@]} + for distinfo in /builddir/build/BUILDROOT/python-dunamai-1.15.0-1.fc38.noarch$site_dir/*.dist-info + echo '%ghost /usr/lib/python3.11/site-packages/dunamai-1.15.0.dist-info' + sed -i s/pip/rpm/ /builddir/build/BUILDROOT/python-dunamai-1.15.0-1.fc38.noarch/usr/lib/python3.11/site-packages/dunamai-1.15.0.dist-info/INSTALLER + PYTHONPATH=/usr/lib/rpm/redhat + /usr/bin/python3 -B /usr/lib/rpm/redhat/pyproject_preprocess_record.py --buildroot /builddir/build/BUILDROOT/python-dunamai-1.15.0-1.fc38.noarch --record /builddir/build/BUILDROOT/python-dunamai-1.15.0-1.fc38.noarch/usr/lib/python3.11/site-packages/dunamai-1.15.0.dist-info/RECORD --output /builddir/build/BUILD/python-dunamai-1.15.0-1.fc38.noarch-pyproject-record + rm -fv /builddir/build/BUILDROOT/python-dunamai-1.15.0-1.fc38.noarch/usr/lib/python3.11/site-packages/dunamai-1.15.0.dist-info/RECORD removed '/builddir/build/BUILDROOT/python-dunamai-1.15.0-1.fc38.noarch/usr/lib/python3.11/site-packages/dunamai-1.15.0.dist-info/RECORD' + rm -fv /builddir/build/BUILDROOT/python-dunamai-1.15.0-1.fc38.noarch/usr/lib/python3.11/site-packages/dunamai-1.15.0.dist-info/REQUESTED removed '/builddir/build/BUILDROOT/python-dunamai-1.15.0-1.fc38.noarch/usr/lib/python3.11/site-packages/dunamai-1.15.0.dist-info/REQUESTED' ++ wc -l /builddir/build/BUILD/python-dunamai-1.15.0-1.fc38.noarch-pyproject-ghost-distinfo ++ cut -f1 '-d ' + lines=1 + '[' 1 -ne 1 ']' + /usr/bin/python3 /usr/lib/rpm/redhat/pyproject_save_files.py --output-files /builddir/build/BUILD/python-dunamai-1.15.0-1.fc38.noarch-pyproject-files --output-modules /builddir/build/BUILD/python-dunamai-1.15.0-1.fc38.noarch-pyproject-modules --buildroot /builddir/build/BUILDROOT/python-dunamai-1.15.0-1.fc38.noarch --sitelib /usr/lib/python3.11/site-packages --sitearch /usr/lib64/python3.11/site-packages --python-version 3.11 --pyproject-record /builddir/build/BUILD/python-dunamai-1.15.0-1.fc38.noarch-pyproject-record --prefix /usr dunamai + install -t /builddir/build/BUILDROOT/python-dunamai-1.15.0-1.fc38.noarch/usr/share/man/man1 -p -m 0644 -D /builddir/build/SOURCES/dunamai.1 /builddir/build/SOURCES/dunamai-check.1 /builddir/build/SOURCES/dunamai-from.1 /builddir/build/SOURCES/dunamai-from-any.1 /builddir/build/SOURCES/dunamai-from-bazaar.1 /builddir/build/SOURCES/dunamai-from-darcs.1 /builddir/build/SOURCES/dunamai-from-fossil.1 /builddir/build/SOURCES/dunamai-from-git.1 /builddir/build/SOURCES/dunamai-from-mercurial.1 /builddir/build/SOURCES/dunamai-from-pijul.1 /builddir/build/SOURCES/dunamai-from-subversion.1 + /usr/bin/find-debuginfo -j8 --strict-build-id -m -i --build-id-seed 1.15.0-1.fc38 --unique-debug-suffix -1.15.0-1.fc38.noarch --unique-debug-src-base python-dunamai-1.15.0-1.fc38.noarch --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/dunamai-1.15.0 find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j8 Bytecompiling .py files below /builddir/build/BUILDROOT/python-dunamai-1.15.0-1.fc38.noarch/usr/lib/python3.11 using python3.11 + /usr/lib/rpm/redhat/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.vUueHZ + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd dunamai-1.15.0 + git config --global user.email you@example.com + git config --global user.name 'Your Name' + brz whoami 'Your Name ' + export 'DARCS_EMAIL=Yep something ' + DARCS_EMAIL='Yep something ' + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + PATH=/builddir/build/BUILDROOT/python-dunamai-1.15.0-1.fc38.noarch/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin + PYTHONPATH=/builddir/build/BUILDROOT/python-dunamai-1.15.0-1.fc38.noarch/usr/lib64/python3.11/site-packages:/builddir/build/BUILDROOT/python-dunamai-1.15.0-1.fc38.noarch/usr/lib/python3.11/site-packages + PYTHONDONTWRITEBYTECODE=1 + PYTEST_ADDOPTS=' --ignore=/builddir/build/BUILD/dunamai-1.15.0/.pyproject-builddir' + PYTEST_XDIST_AUTO_NUM_WORKERS=8 + /usr/bin/pytest -n auto -v ============================= test session starts ============================== platform linux -- Python 3.11.4, pytest-7.2.2, pluggy-1.0.0 -- /usr/bin/python3 cachedir: .pytest_cache rootdir: /builddir/build/BUILD/dunamai-1.15.0 plugins: xdist-3.1.0 gw0 I / gw1 I / gw2 I / gw3 I / gw4 I / gw5 I / gw6 I / gw7 I [gw0] linux Python 3.11.4 cwd: /builddir/build/BUILD/dunamai-1.15.0 [gw1] linux Python 3.11.4 cwd: /builddir/build/BUILD/dunamai-1.15.0 [gw2] linux Python 3.11.4 cwd: /builddir/build/BUILD/dunamai-1.15.0 [gw3] linux Python 3.11.4 cwd: /builddir/build/BUILD/dunamai-1.15.0 [gw4] linux Python 3.11.4 cwd: /builddir/build/BUILD/dunamai-1.15.0 [gw5] linux Python 3.11.4 cwd: /builddir/build/BUILD/dunamai-1.15.0 [gw6] linux Python 3.11.4 cwd: /builddir/build/BUILD/dunamai-1.15.0 [gw7] linux Python 3.11.4 cwd: /builddir/build/BUILD/dunamai-1.15.0 [gw0] Python 3.11.4 (main, Jun 19 2023, 00:00:00) [GCC 13.1.1 20230511 (Red Hat 13.1.1-2)] [gw1] Python 3.11.4 (main, Jun 19 2023, 00:00:00) [GCC 13.1.1 20230511 (Red Hat 13.1.1-2)] [gw2] Python 3.11.4 (main, Jun 19 2023, 00:00:00) [GCC 13.1.1 20230511 (Red Hat 13.1.1-2)] [gw3] Python 3.11.4 (main, Jun 19 2023, 00:00:00) [GCC 13.1.1 20230511 (Red Hat 13.1.1-2)] [gw4] Python 3.11.4 (main, Jun 19 2023, 00:00:00) [GCC 13.1.1 20230511 (Red Hat 13.1.1-2)] [gw5] Python 3.11.4 (main, Jun 19 2023, 00:00:00) [GCC 13.1.1 20230511 (Red Hat 13.1.1-2)] [gw6] Python 3.11.4 (main, Jun 19 2023, 00:00:00) [GCC 13.1.1 20230511 (Red Hat 13.1.1-2)] [gw7] Python 3.11.4 (main, Jun 19 2023, 00:00:00) [GCC 13.1.1 20230511 (Red Hat 13.1.1-2)] gw0 [58] / gw1 [58] / gw2 [58] / gw3 [58] / gw4 [58] / gw5 [58] / gw6 [58] / gw7 [58] scheduling tests via LoadScheduling tests/integration/test_dunamai.py::test__version__from_git__gitflow tests/integration/test_dunamai.py::test__version__not_a_repository tests/integration/test_dunamai.py::test__version__from_mercurial__archival_untagged tests/integration/test_dunamai.py::test__version__from_git__with_annotated_tags tests/integration/test_dunamai.py::test__version__from_git__archival_tagged tests/integration/test_dunamai.py::test__version__from_darcs tests/integration/test_dunamai.py::test__version__from_bazaar tests/integration/test_dunamai.py::test__version__from_git__with_mixed_tags [gw3] [ 1%] PASSED tests/integration/test_dunamai.py::test__version__from_git__archival_tagged [gw5] [ 3%] PASSED tests/integration/test_dunamai.py::test__version__from_mercurial__archival_untagged tests/integration/test_dunamai.py::test__version__from_git__archival_tagged_post tests/integration/test_dunamai.py::test__version__from_mercurial__archival_tagged [gw3] [ 5%] PASSED tests/integration/test_dunamai.py::test__version__from_git__archival_tagged_post tests/integration/test_dunamai.py::test__version__from_pijul [gw5] [ 6%] PASSED tests/integration/test_dunamai.py::test__version__from_mercurial__archival_tagged [gw3] [ 8%] SKIPPED tests/integration/test_dunamai.py::test__version__from_pijul tests/unit/test_dunamai.py::test__pattern__regex tests/unit/test_dunamai.py::test__pattern__parse [gw3] [ 10%] PASSED tests/unit/test_dunamai.py::test__pattern__parse [gw5] [ 12%] PASSED tests/unit/test_dunamai.py::test__pattern__regex tests/unit/test_dunamai.py::test__version__str [gw3] [ 13%] PASSED tests/unit/test_dunamai.py::test__version__str tests/unit/test_dunamai.py::test__version__init tests/unit/test_dunamai.py::test__version__repr [gw3] [ 15%] PASSED tests/unit/test_dunamai.py::test__version__repr [gw5] [ 17%] PASSED tests/unit/test_dunamai.py::test__version__init tests/unit/test_dunamai.py::test__version__serialize__pep440 tests/unit/test_dunamai.py::test__version__ordering [gw3] [ 18%] PASSED tests/unit/test_dunamai.py::test__version__serialize__pep440 tests/unit/test_dunamai.py::test__version__serialize__semver [gw3] [ 20%] PASSED tests/unit/test_dunamai.py::test__version__serialize__semver tests/unit/test_dunamai.py::test__version__serialize__pep440_metadata [gw5] [ 22%] PASSED tests/unit/test_dunamai.py::test__version__ordering [gw3] [ 24%] PASSED tests/unit/test_dunamai.py::test__version__serialize__pep440_metadata tests/unit/test_dunamai.py::test__version__serialize__pvp tests/unit/test_dunamai.py::test__version__serialize__semver_with_metadata [gw3] [ 25%] PASSED tests/unit/test_dunamai.py::test__version__serialize__semver_with_metadata tests/unit/test_dunamai.py::test__version__serialize__pep440_with_dirty [gw5] [ 27%] PASSED tests/unit/test_dunamai.py::test__version__serialize__pvp [gw3] [ 29%] PASSED tests/unit/test_dunamai.py::test__version__serialize__pep440_with_dirty tests/unit/test_dunamai.py::test__version__serialize__pvp_with_metadata tests/unit/test_dunamai.py::test__version__serialize__semver_with_dirty [gw3] [ 31%] PASSED tests/unit/test_dunamai.py::test__version__serialize__semver_with_dirty [gw5] [ 32%] PASSED tests/unit/test_dunamai.py::test__version__serialize__pvp_with_metadata tests/unit/test_dunamai.py::test__version__serialize__format_as_str tests/unit/test_dunamai.py::test__version__serialize__pvp_with_dirty [gw3] [ 34%] PASSED tests/unit/test_dunamai.py::test__version__serialize__format_as_str [gw5] [ 36%] PASSED tests/unit/test_dunamai.py::test__version__serialize__pvp_with_dirty tests/unit/test_dunamai.py::test__version__serialize__format_as_callable [gw3] [ 37%] PASSED tests/unit/test_dunamai.py::test__version__serialize__format_as_callable tests/unit/test_dunamai.py::test__version__bump tests/unit/test_dunamai.py::test__version__parse [gw5] [ 39%] PASSED tests/unit/test_dunamai.py::test__version__bump tests/unit/test_dunamai.py::test__get_version__from_name [gw3] [ 41%] PASSED tests/unit/test_dunamai.py::test__version__parse tests/unit/test_dunamai.py::test__get_version__first_choice [gw5] [ 43%] PASSED tests/unit/test_dunamai.py::test__get_version__from_name [gw3] [ 44%] PASSED tests/unit/test_dunamai.py::test__get_version__first_choice tests/unit/test_dunamai.py::test__get_version__fallback [gw3] [ 46%] PASSED tests/unit/test_dunamai.py::test__get_version__fallback tests/unit/test_dunamai.py::test__get_version__third_choice tests/unit/test_dunamai.py::test__get_version__from_name__ignore [gw5] [ 48%] PASSED tests/unit/test_dunamai.py::test__get_version__third_choice tests/unit/test_dunamai.py::test__get_version__first_choice__ignore [gw5] [ 50%] PASSED tests/unit/test_dunamai.py::test__get_version__first_choice__ignore [gw3] [ 51%] PASSED tests/unit/test_dunamai.py::test__get_version__from_name__ignore tests/unit/test_dunamai.py::test__get_version__first_choice__ignore__with_commit tests/unit/test_dunamai.py::test__get_version__first_choice__ignore_with_distance [gw3] [ 53%] PASSED tests/unit/test_dunamai.py::test__get_version__first_choice__ignore_with_distance [gw5] [ 55%] PASSED tests/unit/test_dunamai.py::test__get_version__first_choice__ignore__with_commit tests/unit/test_dunamai.py::test__get_version__third_choice__ignore tests/unit/test_dunamai.py::test__get_version__first_choice__ignore__without_commit [gw3] [ 56%] PASSED tests/unit/test_dunamai.py::test__get_version__third_choice__ignore [gw5] [ 58%] PASSED tests/unit/test_dunamai.py::test__get_version__first_choice__ignore__without_commit tests/unit/test_dunamai.py::test__version__from_any_vcs tests/unit/test_dunamai.py::test__check_version__pep440 [gw5] [ 60%] PASSED tests/unit/test_dunamai.py::test__check_version__pep440 tests/unit/test_dunamai.py::test__check_version__pvp [gw5] [ 62%] PASSED tests/unit/test_dunamai.py::test__check_version__pvp tests/unit/test_dunamai.py::test__default_version_pattern [gw5] [ 63%] PASSED tests/unit/test_dunamai.py::test__default_version_pattern tests/unit/test_dunamai.py::test__serialize_pep440 [gw5] [ 65%] PASSED tests/unit/test_dunamai.py::test__serialize_pep440 tests/unit/test_dunamai.py::test__serialize_semver [gw5] [ 67%] PASSED tests/unit/test_dunamai.py::test__serialize_semver tests/unit/test_dunamai.py::test__serialize_pvp [gw5] [ 68%] PASSED tests/unit/test_dunamai.py::test__serialize_pvp tests/unit/test_dunamai.py::test__bump_version [gw5] [ 70%] PASSED tests/unit/test_dunamai.py::test__bump_version tests/unit/test_main.py::test__parse_args__from [gw4] [ 72%] PASSED tests/integration/test_dunamai.py::test__version__not_a_repository tests/integration/test_dunamai.py::test__version__from_mercurial [gw5] [ 74%] PASSED tests/unit/test_main.py::test__parse_args__from tests/unit/test_main.py::test__parse_args__check [gw5] [ 75%] PASSED tests/unit/test_main.py::test__parse_args__check [gw1] [ 77%] PASSED tests/integration/test_dunamai.py::test__version__from_git__with_mixed_tags tests/integration/test_dunamai.py::test__version__from_git__with_nonchronological_commits [gw1] [ 79%] PASSED tests/integration/test_dunamai.py::test__version__from_git__with_nonchronological_commits [gw3] [ 81%] PASSED tests/unit/test_dunamai.py::test__version__from_any_vcs tests/unit/test_dunamai.py::test__check_version__semver [gw3] [ 82%] PASSED tests/unit/test_dunamai.py::test__check_version__semver [gw2] [ 84%] PASSED tests/integration/test_dunamai.py::test__version__from_git__gitflow tests/integration/test_dunamai.py::test__version__from_git__archival_untagged [gw2] [ 86%] PASSED tests/integration/test_dunamai.py::test__version__from_git__archival_untagged [gw0] [ 87%] FAILED tests/integration/test_dunamai.py::test__version__from_git__with_annotated_tags tests/integration/test_dunamai.py::test__version__from_git__with_lightweight_tags [gw6] [ 89%] FAILED tests/integration/test_dunamai.py::test__version__from_darcs tests/integration/test_dunamai.py::test__version__from_subversion [gw0] [ 91%] PASSED tests/integration/test_dunamai.py::test__version__from_git__with_lightweight_tags [gw7] [ 93%] FAILED tests/integration/test_dunamai.py::test__version__from_bazaar tests/integration/test_dunamai.py::test__version__from_fossil [gw6] [ 94%] FAILED tests/integration/test_dunamai.py::test__version__from_subversion [gw7] [ 96%] FAILED tests/integration/test_dunamai.py::test__version__from_fossil [gw4] [ 98%] FAILED tests/integration/test_dunamai.py::test__version__from_mercurial tests/unit/test_main.py::test__cli_check [gw4] [100%] PASSED tests/unit/test_main.py::test__cli_check =================================== FAILURES =================================== _________________ test__version__from_git__with_annotated_tags _________________ [gw0] linux -- Python 3.11.4 /usr/bin/python3 tmp_path = PosixPath('/tmp/pytest-of-mockbuild/pytest-0/popen-gw0/test__version__from_git__with_0') @pytest.mark.skipif(shutil.which("git") is None, reason="Requires Git") def test__version__from_git__with_annotated_tags(tmp_path) -> None: vcs = tmp_path / "dunamai-git-annotated" vcs.mkdir() run = make_run_callback(vcs) from_vcs = make_from_callback(Version.from_git) b = "master" legacy = is_git_legacy() with chdir(vcs): run("git init") try: # Compatibility for newer Git versions: run("git branch -m master") except Exception: pass assert from_vcs(fresh=True) == Version("0.0.0", distance=0, dirty=True, branch=b) # Additional one-off check not in other VCS integration tests: # strict mode requires there to be a tag with pytest.raises(RuntimeError): from_vcs(strict=True) (vcs / "foo.txt").write_text("hi") assert from_vcs(fresh=True) == Version("0.0.0", distance=0, dirty=True, branch=b) run("git add .") run('git commit --no-gpg-sign -m "Initial commit"') assert from_vcs() == Version("0.0.0", distance=1, dirty=False, branch=b) # Detect dirty if untracked files (vcs / "bar.txt").write_text("bye") assert from_vcs() == Version("0.0.0", distance=1, dirty=True, branch=b) # Once the untracked file is removed we are no longer dirty (vcs / "bar.txt").unlink() assert from_vcs() == Version("0.0.0", distance=1, dirty=False, branch=b) # Additional one-off check not in other VCS integration tests: # when the only tag in the repository does not match the pattern. run("git tag other -m Annotated") with pytest.raises(ValueError): from_vcs() avoid_identical_ref_timestamps() run("git tag v0.1.0 -m Annotated") assert from_vcs() == Version("0.1.0", dirty=False, branch=b) assert from_vcs(latest_tag=True) == Version("0.1.0", dirty=False, branch=b) assert run("dunamai from git") == "0.1.0" assert run("dunamai from any") == "0.1.0" # Additional one-off checks not in other VCS integration tests: assert run(r'dunamai from any --pattern "(?P\d\.\d\.\d)"') == "0.1.0" run(r'dunamai from any --pattern "(\d\.\d\.\d)"', 1) assert run('dunamai from any --format "v{base}"') == "v0.1.0" assert run('dunamai from any --style "semver"') == "0.1.0" assert ( run('dunamai from any --format "v{base}" --style "semver"', 1) == "Version 'v0.1.0' does not conform to the Semantic Versioning style" ) assert run("dunamai from any --latest-tag") == "0.1.0" > assert from_explicit_vcs(Vcs.Any) == Version("0.1.0", dirty=False, branch=b) tests/integration/test_dunamai.py:135: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fresh = False, args = (,), kwargs = {} version = Version(base='0.1.0', stage=None, revision=None, distance=0, commit='344d439', dirty=False, tagged_metadata=None, epoch=None, branch='master', timestamp=datetime.datetime(2023, 6, 25, 12, 19, 44, tzinfo=datetime.timezone.utc)) @py_assert4 = True, @py_assert3 = False @py_assert2 = datetime.datetime(2023, 6, 25, 12, 19, 53, 958740, tzinfo=datetime.timezone.utc) @py_assert5 = None def inner(*args, fresh: bool = False, **kwargs): version = function(*args, **kwargs) if fresh: assert version.commit is None assert version.timestamp is None else: assert isinstance(version.commit, str) assert len(version.commit) > 0 if chronological: assert isinstance(version.timestamp, dt.datetime) now = dt.datetime.utcnow().replace(tzinfo=dt.timezone.utc) delta = dt.timedelta(minutes=1) > assert now - delta <= version.timestamp <= now + delta E AssertionError: assert (datetime.datetime(2023, 6, 25, 12, 20, 53, 958740, tzinfo=datetime.timezone.utc) - datetime.timedelta(seconds=60)) <= datetime.datetime(2023, 6, 25, 12, 19, 44, tzinfo=datetime.timezone.utc) E + where datetime.datetime(2023, 6, 25, 12, 19, 44, tzinfo=datetime.timezone.utc) = Version(base='0.1.0', stage=None, revision=None, distance=0, commit='344d439', dirty=False, tagged_metadata=None, epoch=None, branch='master', timestamp=datetime.datetime(2023, 6, 25, 12, 19, 44, tzinfo=datetime.timezone.utc)).timestamp tests/integration/test_dunamai.py:60: AssertionError __________________________ test__version__from_darcs ___________________________ [gw6] linux -- Python 3.11.4 /usr/bin/python3 tmp_path = PosixPath('/tmp/pytest-of-mockbuild/pytest-0/popen-gw6/test__version__from_darcs0') @pytest.mark.skipif(shutil.which("darcs") is None, reason="Requires Darcs") def test__version__from_darcs(tmp_path) -> None: vcs = tmp_path / "dunamai-darcs" vcs.mkdir() run = make_run_callback(vcs) from_vcs = make_from_callback(Version.from_darcs) with chdir(vcs): run("darcs init") assert from_vcs(fresh=True) == Version("0.0.0", distance=0, dirty=False) (vcs / "foo.txt").write_text("hi") assert from_vcs(fresh=True) == Version("0.0.0", distance=0, dirty=True) run("darcs add foo.txt") run('darcs record -am "Initial commit"') assert from_vcs() == Version("0.0.0", distance=1, dirty=False) run("darcs tag v0.1.0") assert from_vcs() == Version("0.1.0", dirty=False) assert from_vcs(latest_tag=True) == Version("0.1.0", dirty=False) assert run("dunamai from darcs") == "0.1.0" assert run("dunamai from any") == "0.1.0" (vcs / "foo.txt").write_text("bye") assert from_vcs() == Version("0.1.0", dirty=True) run('darcs record -am "Second"') assert from_vcs() == Version("0.1.0", distance=1, dirty=False) assert from_any_vcs() == Version("0.1.0", distance=1, dirty=False) run("darcs tag unmatched") assert from_vcs() == Version("0.1.0", distance=2, dirty=False) with pytest.raises(ValueError): from_vcs(latest_tag=True) run("darcs tag v0.2.0") assert from_vcs() == Version("0.2.0", dirty=False) run("darcs obliterate --all --last 3") > assert from_vcs() == Version("0.1.0", dirty=False) tests/integration/test_dunamai.py:574: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fresh = False, args = (), kwargs = {} version = Version(base='0.1.0', stage=None, revision=None, distance=0, commit='cfb5f45fbc8d6503d741d251567692a76e7d4192', dirty=...data=None, epoch=None, branch=None, timestamp=datetime.datetime(2023, 6, 25, 12, 19, 56, tzinfo=datetime.timezone.utc)) @py_assert4 = True, @py_assert3 = False @py_assert2 = datetime.datetime(2023, 6, 25, 12, 19, 57, 120968, tzinfo=datetime.timezone.utc) @py_assert5 = None def inner(*args, fresh: bool = False, **kwargs): version = function(*args, **kwargs) if fresh: assert version.commit is None assert version.timestamp is None else: assert isinstance(version.commit, str) assert len(version.commit) > 0 if chronological: assert isinstance(version.timestamp, dt.datetime) now = dt.datetime.utcnow().replace(tzinfo=dt.timezone.utc) delta = dt.timedelta(minutes=1) > assert now - delta <= version.timestamp <= now + delta E AssertionError: assert (datetime.datetime(2023, 6, 25, 12, 20, 57, 120968, tzinfo=datetime.timezone.utc) - datetime.timedelta(seconds=60)) <= datetime.datetime(2023, 6, 25, 12, 19, 56, tzinfo=datetime.timezone.utc) E + where datetime.datetime(2023, 6, 25, 12, 19, 56, tzinfo=datetime.timezone.utc) = Version(base='0.1.0', stage=None, revision=None, distance=0, commit='cfb5f45fbc8d6503d741d251567692a76e7d4192', dirty=False, tagged_metadata=None, epoch=None, branch=None, timestamp=datetime.datetime(2023, 6, 25, 12, 19, 56, tzinfo=datetime.timezone.utc)).timestamp tests/integration/test_dunamai.py:60: AssertionError __________________________ test__version__from_bazaar __________________________ [gw7] linux -- Python 3.11.4 /usr/bin/python3 tmp_path = PosixPath('/tmp/pytest-of-mockbuild/pytest-0/popen-gw7/test__version__from_bazaar0') @pytest.mark.skipif(shutil.which("bzr") is None, reason="Requires Bazaar") def test__version__from_bazaar(tmp_path) -> None: vcs = tmp_path / "dunamai-bzr" vcs.mkdir() run = make_run_callback(vcs) from_vcs = make_from_callback(Version.from_bazaar, clear=False) b = "dunamai-bzr" with chdir(vcs): run("bzr init") assert from_vcs(fresh=True) == Version("0.0.0", distance=0, dirty=False) (vcs / "foo.txt").write_text("hi") assert from_vcs(fresh=True) == Version("0.0.0", distance=0, dirty=True) run("bzr add .") run('bzr commit -m "Initial commit"') assert from_vcs() == Version("0.0.0", distance=1, commit="1", dirty=False, branch=b) run("bzr tag v0.1.0") assert from_vcs() == Version("0.1.0", commit="1", dirty=False, branch=b) > assert from_vcs(latest_tag=True) == Version("0.1.0", commit="1", dirty=False, branch=b) tests/integration/test_dunamai.py:693: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fresh = False, args = (), kwargs = {'latest_tag': True} version = Version(base='0.1.0', stage=None, revision=None, distance=0, commit='1', dirty=False, tagged_metadata=None, epoch=None, branch='dunamai-bzr', timestamp=datetime.datetime(2023, 6, 25, 12, 20, 44, tzinfo=datetime.timezone.utc)) @py_assert4 = True, @py_assert3 = False @py_assert2 = datetime.datetime(2023, 6, 25, 12, 20, 55, 5626, tzinfo=datetime.timezone.utc) @py_assert5 = None def inner(*args, fresh: bool = False, **kwargs): version = function(*args, **kwargs) if fresh: assert version.commit is None assert version.timestamp is None else: assert isinstance(version.commit, str) assert len(version.commit) > 0 if chronological: assert isinstance(version.timestamp, dt.datetime) now = dt.datetime.utcnow().replace(tzinfo=dt.timezone.utc) delta = dt.timedelta(minutes=1) > assert now - delta <= version.timestamp <= now + delta E AssertionError: assert (datetime.datetime(2023, 6, 25, 12, 21, 55, 5626, tzinfo=datetime.timezone.utc) - datetime.timedelta(seconds=60)) <= datetime.datetime(2023, 6, 25, 12, 20, 44, tzinfo=datetime.timezone.utc) E + where datetime.datetime(2023, 6, 25, 12, 20, 44, tzinfo=datetime.timezone.utc) = Version(base='0.1.0', stage=None, revision=None, distance=0, commit='1', dirty=False, tagged_metadata=None, epoch=None, branch='dunamai-bzr', timestamp=datetime.datetime(2023, 6, 25, 12, 20, 44, tzinfo=datetime.timezone.utc)).timestamp tests/integration/test_dunamai.py:60: AssertionError ________________________ test__version__from_subversion ________________________ [gw6] linux -- Python 3.11.4 /usr/bin/python3 tmp_path = PosixPath('/tmp/pytest-of-mockbuild/pytest-0/popen-gw6/test__version__from_subversion0') @pytest.mark.skipif( None in [shutil.which("svn"), shutil.which("svnadmin")], reason="Requires Subversion" ) def test__version__from_subversion(tmp_path) -> None: vcs = tmp_path / "dunamai-svn" vcs.mkdir() run = make_run_callback(vcs) from_vcs = make_from_callback(Version.from_subversion, clear=False) vcs_srv = tmp_path / "dunamai-svn-srv" vcs_srv.mkdir() run_srv = make_run_callback(vcs_srv) vcs_srv_uri = vcs_srv.as_uri() with chdir(vcs_srv): run_srv("svnadmin create .") with chdir(vcs): run('svn checkout "{}" .'.format(vcs_srv_uri)) assert from_vcs(fresh=True) == Version("0.0.0", distance=0, dirty=False) run("svn mkdir trunk tags") # No tags yet, so version should be 0.0.0. assert from_vcs(fresh=True) == Version("0.0.0", distance=0, dirty=True) run("svn add --force .") run('svn commit -m "Initial commit"') # commit 1 run("svn update") # A single commit, but still no tags. Version should be 0.0.0. assert from_vcs() == Version("0.0.0", distance=1, commit="1", dirty=False) with chdir(vcs / "trunk"): # ^-- Make sure things work when we're in trunk, too. Path("foo.txt").write_text("hi") run("svn add --force .") run('svn commit -m "Initial foo.txt commit"') # commit 2 run("svn update") # Two commits, but still no tag. Version should still be 0.0.0. assert from_vcs() == Version("0.0.0", distance=2, commit="2", dirty=False) run( 'svn copy {0}/trunk {0}/tags/v0.1.0 -m "Tag 1"'.format(vcs_srv_uri) ) # commit 3 and first tag! run("svn update") # 3 commits, one tag (v.0.1.0), version should be 0.1.0. assert from_vcs() == Version("0.1.0", commit="3", dirty=False) assert run("dunamai from subversion") == "0.1.0" assert run("dunamai from any") == "0.1.0" # Dirty the working directory. Make sure we identify it as such. (vcs / "trunk" / "foo.txt").write_text("bye") assert from_vcs() == Version("0.1.0", commit="3", dirty=True) # Fourth commit, still just one tag. Version should be 0.1.0, and dirty flag # should be reset. run('svn commit -m "Fourth"') # commit 4 run("svn update") assert from_vcs() == Version("0.1.0", distance=1, commit="4", dirty=False) assert from_any_vcs_unmocked() == Version("0.1.0", distance=1, commit="4", dirty=False) # Ensure we get the tag based on the highest commit, not necessarily # just the newest tag. run('svn copy {0}/trunk {0}/tags/v0.2.0 -m "Tag 2"'.format(vcs_srv_uri)) # commit 5 run('svn copy {0}/trunk {0}/tags/v0.1.1 -r 1 -m "Tag 3"'.format(vcs_srv_uri)) # commit 6 run("svn update") assert from_vcs() == Version("0.2.0", distance=1, commit="6", dirty=False) assert from_vcs(latest_tag=True) == Version("0.2.0", distance=1, commit="6", dirty=False) run('svn copy {0}/trunk {0}/tags/unmatched -m "Tag 4"'.format(vcs_srv_uri)) # commit 7 run("svn update") assert from_vcs() == Version("0.2.0", distance=2, commit="7", dirty=False) with pytest.raises(ValueError): from_vcs(latest_tag=True) # Checkout an earlier commit. Commit 2 occurred before the first tag # (v0.1.0, commit #3), so version should be 0.0.0. run("svn update -r 2") > assert from_vcs() == Version("0.0.0", distance=2, commit="2", dirty=False) tests/integration/test_dunamai.py:658: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fresh = False, args = (), kwargs = {} version = Version(base='0.0.0', stage=None, revision=None, distance=2, commit='2', dirty=False, tagged_metadata=None, epoch=None, branch=None, timestamp=datetime.datetime(2023, 6, 25, 12, 21, 12, 543718, tzinfo=datetime.timezone.utc)) @py_assert4 = True, @py_assert3 = False @py_assert2 = datetime.datetime(2023, 6, 25, 12, 21, 28, 353949, tzinfo=datetime.timezone.utc) @py_assert5 = None def inner(*args, fresh: bool = False, **kwargs): version = function(*args, **kwargs) if fresh: assert version.commit is None assert version.timestamp is None else: assert isinstance(version.commit, str) assert len(version.commit) > 0 if chronological: assert isinstance(version.timestamp, dt.datetime) now = dt.datetime.utcnow().replace(tzinfo=dt.timezone.utc) delta = dt.timedelta(minutes=1) > assert now - delta <= version.timestamp <= now + delta E AssertionError: assert (datetime.datetime(2023, 6, 25, 12, 22, 28, 353949, tzinfo=datetime.timezone.utc) - datetime.timedelta(seconds=60)) <= datetime.datetime(2023, 6, 25, 12, 21, 12, 543718, tzinfo=datetime.timezone.utc) E + where datetime.datetime(2023, 6, 25, 12, 21, 12, 543718, tzinfo=datetime.timezone.utc) = Version(base='0.0.0', stage=None, revision=None, distance=2, commit='2', dirty=False, tagged_metadata=None, epoch=None, branch=None, timestamp=datetime.datetime(2023, 6, 25, 12, 21, 12, 543718, tzinfo=datetime.timezone.utc)).timestamp tests/integration/test_dunamai.py:60: AssertionError __________________________ test__version__from_fossil __________________________ [gw7] linux -- Python 3.11.4 /usr/bin/python3 tmp_path = PosixPath('/tmp/pytest-of-mockbuild/pytest-0/popen-gw7/test__version__from_fossil0') @pytest.mark.skipif(shutil.which("fossil") is None, reason="Requires Fossil") def test__version__from_fossil(tmp_path) -> None: vcs = tmp_path / "dunamai-fossil" vcs.mkdir() run = make_run_callback(vcs) from_vcs = make_from_callback(Version.from_fossil) b = "trunk" with chdir(vcs): run("fossil init repo") run("fossil open repo --force") assert from_vcs() == Version("0.0.0", distance=0, dirty=False, branch=b) (vcs / "foo.txt").write_text("hi") assert from_vcs() == Version("0.0.0", distance=0, dirty=True, branch=b) run("fossil add .") run('fossil commit -m "Initial commit"') assert from_vcs() == Version("0.0.0", distance=1, dirty=False, branch=b) run("fossil tag add v0.1.0 trunk") assert from_vcs() == Version("0.1.0", dirty=False, branch=b) assert from_vcs(latest_tag=True) == Version("0.1.0", dirty=False, branch=b) assert run("dunamai from fossil") == "0.1.0" assert run("dunamai from any") == "0.1.0" (vcs / "foo.txt").write_text("bye") assert from_vcs() == Version("0.1.0", dirty=True, branch=b) run("fossil add .") run('fossil commit -m "Second"') assert from_vcs() == Version("0.1.0", distance=1, dirty=False, branch=b) assert from_any_vcs() == Version("0.1.0", distance=1, dirty=False, branch=b) run("fossil tag add unmatched trunk") assert from_vcs() == Version("0.1.0", distance=1, dirty=False, branch=b) with pytest.raises(ValueError): from_vcs(latest_tag=True) (vcs / "foo.txt").write_text("third") run("fossil add .") run("fossil commit --tag v0.2.0 -m 'Third'") assert from_vcs() == Version("0.2.0", dirty=False, branch=b) assert from_vcs(latest_tag=True) == Version("0.2.0", dirty=False, branch=b) run("fossil tag add v0.1.1 v0.1.0") assert from_vcs() == Version("0.2.0", dirty=False, branch=b) assert from_vcs(latest_tag=True) == Version("0.2.0", dirty=False, branch=b) run("fossil checkout v0.1.0") > assert from_vcs() == Version("0.1.1", dirty=False, branch=b) tests/integration/test_dunamai.py:785: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fresh = False, args = (), kwargs = {} version = Version(base='0.1.1', stage=None, revision=None, distance=0, commit='a5a6e2a005b51366fe96e675d52676a7f9e610829a5f8f6fb...ta=None, epoch=None, branch='trunk', timestamp=datetime.datetime(2023, 6, 25, 12, 22, 6, tzinfo=datetime.timezone.utc)) @py_assert4 = True, @py_assert3 = False @py_assert2 = datetime.datetime(2023, 6, 25, 12, 22, 40, 136638, tzinfo=datetime.timezone.utc) @py_assert5 = None def inner(*args, fresh: bool = False, **kwargs): version = function(*args, **kwargs) if fresh: assert version.commit is None assert version.timestamp is None else: assert isinstance(version.commit, str) assert len(version.commit) > 0 if chronological: assert isinstance(version.timestamp, dt.datetime) now = dt.datetime.utcnow().replace(tzinfo=dt.timezone.utc) delta = dt.timedelta(minutes=1) > assert now - delta <= version.timestamp <= now + delta E AssertionError: assert (datetime.datetime(2023, 6, 25, 12, 23, 40, 136638, tzinfo=datetime.timezone.utc) - datetime.timedelta(seconds=60)) <= datetime.datetime(2023, 6, 25, 12, 22, 6, tzinfo=datetime.timezone.utc) E + where datetime.datetime(2023, 6, 25, 12, 22, 6, tzinfo=datetime.timezone.utc) = Version(base='0.1.1', stage=None, revision=None, distance=0, commit='a5a6e2a005b51366fe96e675d52676a7f9e610829a5f8f6fba7e7fe263eaf204', dirty=False, tagged_metadata=None, epoch=None, branch='trunk', timestamp=datetime.datetime(2023, 6, 25, 12, 22, 6, tzinfo=datetime.timezone.utc)).timestamp tests/integration/test_dunamai.py:60: AssertionError ________________________ test__version__from_mercurial _________________________ [gw4] linux -- Python 3.11.4 /usr/bin/python3 tmp_path = PosixPath('/tmp/pytest-of-mockbuild/pytest-0/popen-gw4/test__version__from_mercurial0') @pytest.mark.skipif(shutil.which("hg") is None, reason="Requires Mercurial") def test__version__from_mercurial(tmp_path) -> None: vcs = tmp_path / "dunamai-hg" vcs.mkdir() run = make_run_callback(vcs) from_vcs = make_from_callback(Version.from_mercurial) b = "default" with chdir(vcs): run("hg init") assert from_vcs(fresh=True) == Version("0.0.0", distance=0, dirty=False, branch=b) (vcs / "foo.txt").write_text("hi") assert from_vcs(fresh=True) == Version("0.0.0", distance=0, dirty=True, branch=b) run("hg add .") run('hg commit -m "Initial commit"') assert from_vcs() == Version("0.0.0", distance=1, dirty=False, branch=b) assert run('dunamai from mercurial --format "{commit}"') != run( 'dunamai from mercurial --format "{commit}" --full-commit' ) assert run('dunamai from any --format "{commit}"') != run( 'dunamai from any --format "{commit}" --full-commit' ) run("hg tag v0.1.0") assert from_vcs() == Version("0.1.0", dirty=False, branch=b) > assert from_vcs(latest_tag=True) == Version("0.1.0", dirty=False, branch=b) tests/integration/test_dunamai.py:475: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fresh = False, args = (), kwargs = {'latest_tag': True} version = Version(base='0.1.0', stage=None, revision=None, distance=0, commit='84db5858d7c7', dirty=False, tagged_metadata=None, epoch=None, branch='default', timestamp=datetime.datetime(2023, 6, 25, 12, 26, 25, tzinfo=datetime.timezone.utc)) @py_assert4 = True, @py_assert3 = False @py_assert2 = datetime.datetime(2023, 6, 25, 12, 26, 56, 910732, tzinfo=datetime.timezone.utc) @py_assert5 = None def inner(*args, fresh: bool = False, **kwargs): version = function(*args, **kwargs) if fresh: assert version.commit is None assert version.timestamp is None else: assert isinstance(version.commit, str) assert len(version.commit) > 0 if chronological: assert isinstance(version.timestamp, dt.datetime) now = dt.datetime.utcnow().replace(tzinfo=dt.timezone.utc) delta = dt.timedelta(minutes=1) > assert now - delta <= version.timestamp <= now + delta E AssertionError: assert (datetime.datetime(2023, 6, 25, 12, 27, 56, 910732, tzinfo=datetime.timezone.utc) - datetime.timedelta(seconds=60)) <= datetime.datetime(2023, 6, 25, 12, 26, 25, tzinfo=datetime.timezone.utc) E + where datetime.datetime(2023, 6, 25, 12, 26, 25, tzinfo=datetime.timezone.utc) = Version(base='0.1.0', stage=None, revision=None, distance=0, commit='84db5858d7c7', dirty=False, tagged_metadata=None, epoch=None, branch='default', timestamp=datetime.datetime(2023, 6, 25, 12, 26, 25, tzinfo=datetime.timezone.utc)).timestamp tests/integration/test_dunamai.py:60: AssertionError =========================== short test summary info ============================ FAILED tests/integration/test_dunamai.py::test__version__from_git__with_annotated_tags FAILED tests/integration/test_dunamai.py::test__version__from_darcs - Asserti... FAILED tests/integration/test_dunamai.py::test__version__from_bazaar - Assert... FAILED tests/integration/test_dunamai.py::test__version__from_subversion - As... FAILED tests/integration/test_dunamai.py::test__version__from_fossil - Assert... FAILED tests/integration/test_dunamai.py::test__version__from_mercurial - Ass... ============= 6 failed, 51 passed, 1 skipped in 554.99s (0:09:14) ============== RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.vUueHZ (%check) Bad exit status from /var/tmp/rpm-tmp.vUueHZ (%check) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -ba --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/python-dunamai.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 598, 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 --noclean --target noarch --nodeps /builddir/build/SPECS/python-dunamai.spec