Mock Version: 2.12 Mock Version: 2.12 Mock Version: 2.12 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/python-platformdirs.spec'], chrootPath='/var/lib/mock/dist-an23-build-224865-62278/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 noarch --nodeps /builddir/build/SPECS/python-platformdirs.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=1672704000 Wrote: /builddir/build/SRPMS/python-platformdirs-2.6.2-1.an23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --target noarch --nodeps /builddir/build/SPECS/python-platformdirs.spec'], chrootPath='/var/lib/mock/dist-an23-build-224865-62278/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 noarch --nodeps /builddir/build/SPECS/python-platformdirs.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=1672704000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.cXclAK + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf platformdirs-2.6.2 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/2.6.2.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd platformdirs-2.6.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + sed -r -i '/^[[:blank:]]*"pytest-cov\b/d' pyproject.toml + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.eb7s42 + umask 022 + cd /builddir/build/BUILD + cd platformdirs-2.6.2 + 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-platformdirs-2.6.2-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 noarch --nodeps /builddir/build/SPECS/python-platformdirs.spec'], chrootPath='/var/lib/mock/dist-an23-build-224865-62278/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 noarch --nodeps /builddir/build/SPECS/python-platformdirs.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=1672704000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.eVm0N0 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf platformdirs-2.6.2 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/2.6.2.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd platformdirs-2.6.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + sed -r -i '/^[[:blank:]]*"pytest-cov\b/d' pyproject.toml + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.XF2bP3 + umask 022 + cd /builddir/build/BUILD + cd platformdirs-2.6.2 + 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 hatchling>=1.11.1 from build-system.requires Requirement not satisfied: hatchling>=1.11.1 Handling hatch-vcs>=0.3 from build-system.requires Requirement not satisfied: hatch-vcs>=0.3 Exiting dependency generation pass: build backend + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-platformdirs-2.6.2-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 noarch --nodeps /builddir/build/SPECS/python-platformdirs.spec'], chrootPath='/var/lib/mock/dist-an23-build-224865-62278/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 noarch --nodeps /builddir/build/SPECS/python-platformdirs.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=1672704000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Uq6vQR + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf platformdirs-2.6.2 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/2.6.2.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd platformdirs-2.6.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + sed -r -i '/^[[:blank:]]*"pytest-cov\b/d' pyproject.toml + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.DuVcl4 + umask 022 + cd /builddir/build/BUILD + cd platformdirs-2.6.2 + 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 hatchling>=1.11.1 from build-system.requires Requirement satisfied: hatchling>=1.11.1 (installed: hatchling 1.11.1) Handling hatch-vcs>=0.3 from build-system.requires Requirement satisfied: hatch-vcs>=0.3 (installed: hatch-vcs 0.3.0) Traceback (most recent call last): File "/usr/lib/rpm/anolis/pyproject_buildrequires.py", line 428, in main generate_requires( File "/usr/lib/rpm/anolis/pyproject_buildrequires.py", line 360, in generate_requires generate_run_requirements(backend, requirements) File "/usr/lib/rpm/anolis/pyproject_buildrequires.py", line 265, in generate_run_requirements dir_basename = prepare_metadata('.') File "/usr/lib/python3.10/site-packages/hatchling/build.py", line 86, in prepare_metadata_for_build_wheel directory = os.path.join(metadata_directory, f'{builder.artifact_project_id}.dist-info') File "/usr/lib/python3.10/site-packages/hatchling/builders/wheel.py", line 570, in artifact_project_id self.project_id File "/usr/lib/python3.10/site-packages/hatchling/builders/plugin/interface.py", line 355, in project_id self.__project_id = f'{self.normalize_file_name_component(self.metadata.core.name)}-{self.metadata.version}' File "/usr/lib/python3.10/site-packages/hatchling/metadata/core.py", line 102, in version self._set_version() File "/usr/lib/python3.10/site-packages/hatchling/metadata/core.py", line 195, in _set_version version = self.hatch.version.cached File "/usr/lib/python3.10/site-packages/hatchling/metadata/core.py", line 1277, in cached raise type(e)(f'Error getting the version from source `{self.source.PLUGIN_NAME}`: {e}') from None LookupError: Error getting the version from source `vcs`: setuptools-scm was unable to detect version for /builddir/build/BUILD/platformdirs-2.6.2. Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work. For example, if you're using pip, instead of https://github.com/user/proj/archive/master.zip use git+https://github.com/user/proj.git#egg=proj error: Bad exit status from /var/tmp/rpm-tmp.DuVcl4 (%generate_buildrequires) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.DuVcl4 (%generate_buildrequires) Child return code was: 1