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-jsonschema.spec'], chrootPath='/var/lib/mock/dist-an23-build-230089-62468/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=990gid=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-jsonschema.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=1676851200 Wrote: /builddir/build/SRPMS/python-jsonschema-4.17.3-1.an23.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-jsonschema.spec'], chrootPath='/var/lib/mock/dist-an23-build-230089-62468/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=990gid=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-jsonschema.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=1676851200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.FKLVuF + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf jsonschema-4.17.3 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/v4.17.3.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd jsonschema-4.17.3 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cat + rm -rf jsonschema.egg-info + rm jsonschema/tests/test_jsonschema_test_suite.py + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.vsXRF5 + umask 022 + cd /builddir/build/BUILD + cd jsonschema-4.17.3 + 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-jsonschema-4.17.3-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 --noclean --target noarch --nodeps /builddir/build/SPECS/python-jsonschema.spec'], chrootPath='/var/lib/mock/dist-an23-build-230089-62468/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=990gid=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-jsonschema.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=1676851200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.BoiZuf + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf jsonschema-4.17.3 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/v4.17.3.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd jsonschema-4.17.3 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cat + rm -rf jsonschema.egg-info + rm jsonschema/tests/test_jsonschema_test_suite.py + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.DGMAbv + umask 022 + cd /builddir/build/BUILD + cd jsonschema-4.17.3 + 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 from build-system.requires Requirement not satisfied: hatchling Handling hatch-vcs from build-system.requires Requirement not satisfied: hatch-vcs Handling hatch-fancy-pypi-readme from build-system.requires Requirement not satisfied: hatch-fancy-pypi-readme Exiting dependency generation pass: build backend + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-jsonschema-4.17.3-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 --noclean --target noarch --nodeps /builddir/build/SPECS/python-jsonschema.spec'], chrootPath='/var/lib/mock/dist-an23-build-230089-62468/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=990gid=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-jsonschema.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=1676851200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Hd69Kp + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf jsonschema-4.17.3 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/v4.17.3.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd jsonschema-4.17.3 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cat + rm -rf jsonschema.egg-info + rm jsonschema/tests/test_jsonschema_test_suite.py + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.SfmemG + umask 022 + cd /builddir/build/BUILD + cd jsonschema-4.17.3 + 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 from build-system.requires Requirement satisfied: hatchling (installed: hatchling 1.11.1) Handling hatch-vcs from build-system.requires Requirement satisfied: hatch-vcs (installed: hatch-vcs 0.3.0) Handling hatch-fancy-pypi-readme from build-system.requires Requirement satisfied: hatch-fancy-pypi-readme (installed: hatch-fancy-pypi-readme 22.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 143, in core self._set_version(metadata) 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/jsonschema-4.17.3. 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.SfmemG (%generate_buildrequires) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.SfmemG (%generate_buildrequires) Child return code was: 1