Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-hatch-vcs.spec'], chrootPath='/var/lib/mock/openeuler-23.03-x86_64-1697283507.727742/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=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-hatch-vcs.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 :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python-hatch-vcs-0.3.0-2.src.rpm Child return code was: 0 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-hatch-vcs.spec'], chrootPath='/var/lib/mock/openeuler-23.03-x86_64-1697283507.727742/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=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-hatch-vcs.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 :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python-hatch-vcs-0.3.0-2.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-hatch-vcs.spec'], chrootPath='/var/lib/mock/openeuler-23.03-x86_64-1697283507.727742/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=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-hatch-vcs.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 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.3ZAhNE + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf hatch_vcs-0.3.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/hatch_vcs-0.3.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd hatch_vcs-0.3.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/Fix-setuptools_scm-7.1.0-test-incompatible.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.GwY8Zj + umask 022 + cd /builddir/build/BUILD + cd hatch_vcs-0.3.0 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection ' + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld' + /usr/bin/python3 -mpip wheel --verbose --progress-bar off --disable-pip-version-check --use-pep517 --no-build-isolation --no-deps --wheel-dir ./build . Processing /builddir/build/BUILD/hatch_vcs-0.3.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: hatch-vcs Building wheel for hatch-vcs (pyproject.toml): started Running command Building wheel for hatch-vcs (pyproject.toml) Building wheel for hatch-vcs (pyproject.toml): finished with status 'done' Created wheel for hatch-vcs: filename=hatch_vcs-0.3.0-py3-none-any.whl size=7990 sha256=ab31c77a3ab593cd39f97586364c50d9a9f58de31b3ae590db58bb15c8fae786 Stored in directory: /builddir/.cache/pip/wheels/e5/5c/df/24bc63dab3c0227a77aeb696c94c89a067e50a97f1028c6aab Successfully built hatch-vcs + sleep 1 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.Ec6AN2 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-hatch-vcs-0.3.0-2.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-hatch-vcs-0.3.0-2.x86_64 ++ dirname /builddir/build/BUILDROOT/python-hatch-vcs-0.3.0-2.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-hatch-vcs-0.3.0-2.x86_64 + cd hatch_vcs-0.3.0 ++ ls ./build/hatch_vcs-0.3.0-py3-none-any.whl ++ xargs basename --multiple ++ sed -E 's/([^-]+)-([^-]+)-.+\.whl/\1==\2/' + specifier=hatch_vcs==0.3.0 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection ' + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld' + /usr/bin/python3 -mpip install --verbose --progress-bar off --disable-pip-version-check --root /builddir/build/BUILDROOT/python-hatch-vcs-0.3.0-2.x86_64 --no-compile --ignore-installed --no-deps --no-index --find-links ./build hatch_vcs==0.3.0 hatch_vcs==0.3.0 Using pip 22.3.1 from /usr/lib/python3.10/site-packages/pip (python 3.10) Looking in links: ./build Processing ./build/hatch_vcs-0.3.0-py3-none-any.whl Installing collected packages: hatch_vcs Successfully installed hatch_vcs-0.3.0 + /usr/bin/find-debuginfo -j4 --strict-build-id -i --build-id-seed 0.3.0-2 --unique-debug-suffix -0.3.0-2.x86_64 --unique-debug-src-base python-hatch-vcs-0.3.0-2.x86_64 -S debugsourcefiles.list /builddir/build/BUILD/hatch_vcs-0.3.0 find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 1 Bytecompiling .py files below /builddir/build/BUILDROOT/python-hatch-vcs-0.3.0-2.x86_64/usr/lib/python3.10 using /usr/bin/python3.10 + /usr/lib/rpm/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.PsM440 + umask 022 + cd /builddir/build/BUILD + cd hatch_vcs-0.3.0 + /usr/bin/python3 -m pytest ============================= test session starts ============================== platform linux -- Python 3.10.9, pytest-7.0.1, pluggy-0.13.1 rootdir: /builddir/build/BUILD/hatch_vcs-0.3.0 collected 22 items tests/test_build.py ..F.. [ 22%] tests/test_build_config.py ...... [ 50%] tests/test_metadata_config.py .... [ 68%] tests/test_version_config.py ....... [100%] =================================== FAILURES =================================== ________________________________ test_fallback _________________________________ new_project_fallback = '/tmp/tmpeydl4wdu/my-app' @pytest.mark.skipif(sys.version_info[0] == 2, reason='Depends on fix in 6.4.0 which is Python 3-only') def test_fallback(new_project_fallback): > build_project('-t', 'wheel') /builddir/build/BUILD/hatch_vcs-0.3.0/tests/test_build.py:86: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /builddir/build/BUILD/hatch_vcs-0.3.0/tests/utils.py:30: in build_project _run_command(sys.executable, '-m', 'hatchling', 'build', *args, env=env) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ command = ('/usr/bin/python3', '-m', 'hatchling', 'build', '-t', 'wheel') kwargs = {'env': {'CONFIG_SITE': 'NONE', 'HISTCONTROL': 'ignoredups', 'HISTSIZE': '1000', 'HOME': '/builddir', ...}} process = stdout = 'Traceback (most recent call last):\n File "/usr/lib64/python3.10/runpy.py", line 196, in _run_module_as_main\n re...nstead of https://github.com/user/proj/archive/master.zip use git+https://github.com/user/proj.git#egg=proj\n[wheel]\n' _ = None def _run_command(*command, **kwargs): process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, **kwargs) stdout, _ = process.communicate() stdout = stdout.decode('utf-8') if process.returncode: # no cov > raise Exception(stdout) E Exception: Traceback (most recent call last): E File "/usr/lib64/python3.10/runpy.py", line 196, in _run_module_as_main E return _run_code(code, main_globals, None, E File "/usr/lib64/python3.10/runpy.py", line 86, in _run_code E exec(code, run_globals) E File "/usr/lib/python3.10/site-packages/hatchling/__main__.py", line 6, in E sys.exit(hatchling()) E File "/usr/lib/python3.10/site-packages/hatchling/cli/__init__.py", line 26, in hatchling E command(**kwargs) E File "/usr/lib/python3.10/site-packages/hatchling/cli/build/__init__.py", line 75, in build_impl E for artifact in builder.build( E File "/usr/lib/python3.10/site-packages/hatchling/builders/plugin/interface.py", line 93, in build E self.metadata.validate_fields() E File "/usr/lib/python3.10/site-packages/hatchling/metadata/core.py", line 243, in validate_fields E _ = self.version E File "/usr/lib/python3.10/site-packages/hatchling/metadata/core.py", line 128, in version E self._version = self._get_version() E File "/usr/lib/python3.10/site-packages/hatchling/metadata/core.py", line 226, in _get_version E version = self.hatch.version.cached E File "/usr/lib/python3.10/site-packages/hatchling/metadata/core.py", line 1412, in cached E raise type(e)(message) from None E LookupError: Error getting the version from source `vcs`: setuptools-scm was unable to detect version for '/tmp/tmpeydl4wdu/my-app'. E E 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. E E 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 E [wheel] /builddir/build/BUILD/hatch_vcs-0.3.0/tests/utils.py:43: Exception =========================== short test summary info ============================ FAILED tests/test_build.py::test_fallback - Exception: Traceback (most recent... ========================= 1 failed, 21 passed in 1.65s ========================= error: Bad exit status from /var/tmp/rpm-tmp.PsM440 (%check) Bad exit status from /var/tmp/rpm-tmp.PsM440 (%check) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-hatch-vcs.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/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 -bb --target x86_64 --nodeps /builddir/build/SPECS/python-hatch-vcs.spec