[Bug 1976483] Review Request: python-build - A simple, correct PEP517 package builder

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=1976483



--- Comment #4 from Miro Hrončok <mhroncok@xxxxxxxxxx> ---
I've got a test failures when building via mock:

+ /usr/bin/pytest --ignore
/builddir/build/BUILD/build-0.5.1/.pyproject-builddir -k 'not
test_build_package and not test_build_package_via_sdist'
============================= test session starts
==============================
platform linux -- Python 3.10.0b3, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
rootdir: /builddir/build/BUILD/build-0.5.1, configfile: setup.cfg
plugins: virtualenv-1.7.0, cov-2.11.1, shutil-1.7.0, mock-3.5.1, forked-1.3.0,
xdist-2.3.0, rerunfailures-9.1.1
collected 122 items / 4 deselected / 118 selected
tests/test_env.py ..sF....FFFFFFFF.                                      [ 14%]
tests/test_main.py ....................                                  [ 31%]
tests/test_module.py .                                                   [ 32%]
tests/test_projectbuilder.py ........................................... [ 68%]
......                                                                   [ 73%]
tests/test_integration.py sssssssssssssssssssssssssssssss                [100%]
=================================== FAILURES
===================================
____________________ test_executable_missing_post_creation
_____________________
mocker = <pytest_mock.plugin.MockerFixture object at 0x7f43cd6b3f70>
    @pytest.mark.skipif(IS_PY2, reason='venv module used on Python 3 only')
    @pytest.mark.skipif(IS_PYPY3, reason='PyPy3 uses get path to create and
provision venv')
    def test_executable_missing_post_creation(mocker):
        mocker.patch.object(build.env, 'virtualenv', None)
        original_get_paths = sysconfig.get_paths

        def _get_paths(vars):  # noqa
            shutil.rmtree(vars['base'])
            return original_get_paths(vars=vars)

        get_paths = mocker.patch('sysconfig.get_paths', side_effect=_get_paths)
        with pytest.raises(RuntimeError, match='Virtual environment creation
failed, executable .* missing'):
>           with build.env.IsolatedEnvBuilder():
tests/test_env.py:77: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../BUILDROOT/python-build-0.5.1-1.fc35.x86_64/usr/lib/python3.10/site-packages/build/env.py:90:
in __enter__
    executable, scripts_dir = _create_isolated_env_virtualenv(self._path)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
path = '/tmp/build-env-nrfb_6k7'
    def _create_isolated_env_virtualenv(path):  # type: (str) -> Tuple[str,
str]
        """
        On Python 2 we use the virtualenv package to provision a virtual
environment.

        :param path: The path where to create the isolated build environment
        :return: The Python executable and script folder
        """
        cmd = [str(path), '--no-setuptools', '--no-wheel', '--activators', '']
>       result = virtualenv.cli_run(cmd, setup_logging=False)
E       AttributeError: 'NoneType' object has no attribute 'cli_run'
../../BUILDROOT/python-build-0.5.1-1.fc35.x86_64/usr/lib/python3.10/site-packages/build/env.py:182:
AttributeError
_______________ test_pip_needs_upgrade_mac_os_11[x86_64-20.2.0]
________________
mocker = <pytest_mock.plugin.MockerFixture object at 0x7f43cd6b05e0>
pip_version = '20.2.0', arch = 'x86_64'
    @pytest.mark.isolated
    @pytest.mark.parametrize('pip_version', ['20.2.0', '20.3.0', '21.0.0',
'21.0.1'])
    @pytest.mark.parametrize('arch', ['x86_64', 'arm64'])
    @pytest.mark.skipif(IS_PY35, reason="Python 3.5 does not run on macOS 11,
and pip can't upgrade to 21 there")
    @pytest.mark.skipif(IS_PY2, reason='venv module used on Python 3 only')
    def test_pip_needs_upgrade_mac_os_11(mocker, pip_version, arch):
        SimpleNamespace = collections.namedtuple('SimpleNamespace', 'version')

        check_call = mocker.patch('subprocess.check_call')
        mocker.patch('platform.system', return_value='Darwin')
        mocker.patch('platform.machine', return_value=arch)
        mocker.patch('platform.mac_ver', return_value=('11.0', ('', '', ''),
''))
        mocker.patch('build.env.metadata.distributions',
return_value=(SimpleNamespace(version=pip_version),))
        mocker.patch.object(build.env, 'virtualenv', None)  # hide virtualenv

        min_version = Version('20.3' if arch == 'x86_64' else '21.0.1')
>       with build.env.IsolatedEnvBuilder():
tests/test_env.py:131: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../BUILDROOT/python-build-0.5.1-1.fc35.x86_64/usr/lib/python3.10/site-packages/build/env.py:90:
in __enter__
    executable, scripts_dir = _create_isolated_env_virtualenv(self._path)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
path = '/tmp/build-env-ksdtb14z'
    def _create_isolated_env_virtualenv(path):  # type: (str) -> Tuple[str,
str]
        """
        On Python 2 we use the virtualenv package to provision a virtual
environment.

        :param path: The path where to create the isolated build environment
        :return: The Python executable and script folder
        """
        cmd = [str(path), '--no-setuptools', '--no-wheel', '--activators', '']
>       result = virtualenv.cli_run(cmd, setup_logging=False)
E       AttributeError: 'NoneType' object has no attribute 'cli_run'
../../BUILDROOT/python-build-0.5.1-1.fc35.x86_64/usr/lib/python3.10/site-packages/build/env.py:182:
AttributeError
_______________ test_pip_needs_upgrade_mac_os_11[x86_64-20.3.0]
________________
mocker = <pytest_mock.plugin.MockerFixture object at 0x7f43cd6b37c0>
pip_version = '20.3.0', arch = 'x86_64'
    @pytest.mark.isolated
    @pytest.mark.parametrize('pip_version', ['20.2.0', '20.3.0', '21.0.0',
'21.0.1'])
    @pytest.mark.parametrize('arch', ['x86_64', 'arm64'])
    @pytest.mark.skipif(IS_PY35, reason="Python 3.5 does not run on macOS 11,
and pip can't upgrade to 21 there")
    @pytest.mark.skipif(IS_PY2, reason='venv module used on Python 3 only')
    def test_pip_needs_upgrade_mac_os_11(mocker, pip_version, arch):
        SimpleNamespace = collections.namedtuple('SimpleNamespace', 'version')

        check_call = mocker.patch('subprocess.check_call')
        mocker.patch('platform.system', return_value='Darwin')
        mocker.patch('platform.machine', return_value=arch)
        mocker.patch('platform.mac_ver', return_value=('11.0', ('', '', ''),
''))
        mocker.patch('build.env.metadata.distributions',
return_value=(SimpleNamespace(version=pip_version),))
        mocker.patch.object(build.env, 'virtualenv', None)  # hide virtualenv

        min_version = Version('20.3' if arch == 'x86_64' else '21.0.1')
>       with build.env.IsolatedEnvBuilder():
tests/test_env.py:131: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../BUILDROOT/python-build-0.5.1-1.fc35.x86_64/usr/lib/python3.10/site-packages/build/env.py:90:
in __enter__
    executable, scripts_dir = _create_isolated_env_virtualenv(self._path)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
path = '/tmp/build-env-so8ov877'
    def _create_isolated_env_virtualenv(path):  # type: (str) -> Tuple[str,
str]
        """
        On Python 2 we use the virtualenv package to provision a virtual
environment.

        :param path: The path where to create the isolated build environment
        :return: The Python executable and script folder
        """
        cmd = [str(path), '--no-setuptools', '--no-wheel', '--activators', '']
>       result = virtualenv.cli_run(cmd, setup_logging=False)
E       AttributeError: 'NoneType' object has no attribute 'cli_run'
../../BUILDROOT/python-build-0.5.1-1.fc35.x86_64/usr/lib/python3.10/site-packages/build/env.py:182:
AttributeError
_______________ test_pip_needs_upgrade_mac_os_11[x86_64-21.0.0]
________________
mocker = <pytest_mock.plugin.MockerFixture object at 0x7f43cd6b0190>
pip_version = '21.0.0', arch = 'x86_64'
    @pytest.mark.isolated
    @pytest.mark.parametrize('pip_version', ['20.2.0', '20.3.0', '21.0.0',
'21.0.1'])
    @pytest.mark.parametrize('arch', ['x86_64', 'arm64'])
    @pytest.mark.skipif(IS_PY35, reason="Python 3.5 does not run on macOS 11,
and pip can't upgrade to 21 there")
    @pytest.mark.skipif(IS_PY2, reason='venv module used on Python 3 only')
    def test_pip_needs_upgrade_mac_os_11(mocker, pip_version, arch):
        SimpleNamespace = collections.namedtuple('SimpleNamespace', 'version')

        check_call = mocker.patch('subprocess.check_call')
        mocker.patch('platform.system', return_value='Darwin')
        mocker.patch('platform.machine', return_value=arch)
        mocker.patch('platform.mac_ver', return_value=('11.0', ('', '', ''),
''))
        mocker.patch('build.env.metadata.distributions',
return_value=(SimpleNamespace(version=pip_version),))
        mocker.patch.object(build.env, 'virtualenv', None)  # hide virtualenv

        min_version = Version('20.3' if arch == 'x86_64' else '21.0.1')
>       with build.env.IsolatedEnvBuilder():
tests/test_env.py:131: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../BUILDROOT/python-build-0.5.1-1.fc35.x86_64/usr/lib/python3.10/site-packages/build/env.py:90:
in __enter__
    executable, scripts_dir = _create_isolated_env_virtualenv(self._path)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
path = '/tmp/build-env-voitzirj'
    def _create_isolated_env_virtualenv(path):  # type: (str) -> Tuple[str,
str]
        """
        On Python 2 we use the virtualenv package to provision a virtual
environment.

        :param path: The path where to create the isolated build environment
        :return: The Python executable and script folder
        """
        cmd = [str(path), '--no-setuptools', '--no-wheel', '--activators', '']
>       result = virtualenv.cli_run(cmd, setup_logging=False)
E       AttributeError: 'NoneType' object has no attribute 'cli_run'
../../BUILDROOT/python-build-0.5.1-1.fc35.x86_64/usr/lib/python3.10/site-packages/build/env.py:182:
AttributeError
_______________ test_pip_needs_upgrade_mac_os_11[x86_64-21.0.1]
________________
mocker = <pytest_mock.plugin.MockerFixture object at 0x7f43cd6b1300>
pip_version = '21.0.1', arch = 'x86_64'
    @pytest.mark.isolated
    @pytest.mark.parametrize('pip_version', ['20.2.0', '20.3.0', '21.0.0',
'21.0.1'])
    @pytest.mark.parametrize('arch', ['x86_64', 'arm64'])
    @pytest.mark.skipif(IS_PY35, reason="Python 3.5 does not run on macOS 11,
and pip can't upgrade to 21 there")
    @pytest.mark.skipif(IS_PY2, reason='venv module used on Python 3 only')
    def test_pip_needs_upgrade_mac_os_11(mocker, pip_version, arch):
        SimpleNamespace = collections.namedtuple('SimpleNamespace', 'version')

        check_call = mocker.patch('subprocess.check_call')
        mocker.patch('platform.system', return_value='Darwin')
        mocker.patch('platform.machine', return_value=arch)
        mocker.patch('platform.mac_ver', return_value=('11.0', ('', '', ''),
''))
        mocker.patch('build.env.metadata.distributions',
return_value=(SimpleNamespace(version=pip_version),))
        mocker.patch.object(build.env, 'virtualenv', None)  # hide virtualenv

        min_version = Version('20.3' if arch == 'x86_64' else '21.0.1')
>       with build.env.IsolatedEnvBuilder():
tests/test_env.py:131: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../BUILDROOT/python-build-0.5.1-1.fc35.x86_64/usr/lib/python3.10/site-packages/build/env.py:90:
in __enter__
    executable, scripts_dir = _create_isolated_env_virtualenv(self._path)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
path = '/tmp/build-env-umq4hssy'
    def _create_isolated_env_virtualenv(path):  # type: (str) -> Tuple[str,
str]
        """
        On Python 2 we use the virtualenv package to provision a virtual
environment.

        :param path: The path where to create the isolated build environment
        :return: The Python executable and script folder
        """
        cmd = [str(path), '--no-setuptools', '--no-wheel', '--activators', '']
>       result = virtualenv.cli_run(cmd, setup_logging=False)
E       AttributeError: 'NoneType' object has no attribute 'cli_run'
../../BUILDROOT/python-build-0.5.1-1.fc35.x86_64/usr/lib/python3.10/site-packages/build/env.py:182:
AttributeError
________________ test_pip_needs_upgrade_mac_os_11[arm64-20.2.0]
________________
mocker = <pytest_mock.plugin.MockerFixture object at 0x7f43cd3a9270>
pip_version = '20.2.0', arch = 'arm64'
    @pytest.mark.isolated
    @pytest.mark.parametrize('pip_version', ['20.2.0', '20.3.0', '21.0.0',
'21.0.1'])
    @pytest.mark.parametrize('arch', ['x86_64', 'arm64'])
    @pytest.mark.skipif(IS_PY35, reason="Python 3.5 does not run on macOS 11,
and pip can't upgrade to 21 there")
    @pytest.mark.skipif(IS_PY2, reason='venv module used on Python 3 only')
    def test_pip_needs_upgrade_mac_os_11(mocker, pip_version, arch):
        SimpleNamespace = collections.namedtuple('SimpleNamespace', 'version')

        check_call = mocker.patch('subprocess.check_call')
        mocker.patch('platform.system', return_value='Darwin')
        mocker.patch('platform.machine', return_value=arch)
        mocker.patch('platform.mac_ver', return_value=('11.0', ('', '', ''),
''))
        mocker.patch('build.env.metadata.distributions',
return_value=(SimpleNamespace(version=pip_version),))
        mocker.patch.object(build.env, 'virtualenv', None)  # hide virtualenv

        min_version = Version('20.3' if arch == 'x86_64' else '21.0.1')
>       with build.env.IsolatedEnvBuilder():
tests/test_env.py:131: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../BUILDROOT/python-build-0.5.1-1.fc35.x86_64/usr/lib/python3.10/site-packages/build/env.py:90:
in __enter__
    executable, scripts_dir = _create_isolated_env_virtualenv(self._path)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
path = '/tmp/build-env-qhk2e47u'
    def _create_isolated_env_virtualenv(path):  # type: (str) -> Tuple[str,
str]
        """
        On Python 2 we use the virtualenv package to provision a virtual
environment.

        :param path: The path where to create the isolated build environment
        :return: The Python executable and script folder
        """
        cmd = [str(path), '--no-setuptools', '--no-wheel', '--activators', '']
>       result = virtualenv.cli_run(cmd, setup_logging=False)
E       AttributeError: 'NoneType' object has no attribute 'cli_run'
../../BUILDROOT/python-build-0.5.1-1.fc35.x86_64/usr/lib/python3.10/site-packages/build/env.py:182:
AttributeError
________________ test_pip_needs_upgrade_mac_os_11[arm64-20.3.0]
________________
mocker = <pytest_mock.plugin.MockerFixture object at 0x7f43cc24bf70>
pip_version = '20.3.0', arch = 'arm64'
    @pytest.mark.isolated
    @pytest.mark.parametrize('pip_version', ['20.2.0', '20.3.0', '21.0.0',
'21.0.1'])
    @pytest.mark.parametrize('arch', ['x86_64', 'arm64'])
    @pytest.mark.skipif(IS_PY35, reason="Python 3.5 does not run on macOS 11,
and pip can't upgrade to 21 there")
    @pytest.mark.skipif(IS_PY2, reason='venv module used on Python 3 only')
    def test_pip_needs_upgrade_mac_os_11(mocker, pip_version, arch):
        SimpleNamespace = collections.namedtuple('SimpleNamespace', 'version')

        check_call = mocker.patch('subprocess.check_call')
        mocker.patch('platform.system', return_value='Darwin')
        mocker.patch('platform.machine', return_value=arch)
        mocker.patch('platform.mac_ver', return_value=('11.0', ('', '', ''),
''))
        mocker.patch('build.env.metadata.distributions',
return_value=(SimpleNamespace(version=pip_version),))
        mocker.patch.object(build.env, 'virtualenv', None)  # hide virtualenv

        min_version = Version('20.3' if arch == 'x86_64' else '21.0.1')
>       with build.env.IsolatedEnvBuilder():
tests/test_env.py:131: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../BUILDROOT/python-build-0.5.1-1.fc35.x86_64/usr/lib/python3.10/site-packages/build/env.py:90:
in __enter__
    executable, scripts_dir = _create_isolated_env_virtualenv(self._path)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
path = '/tmp/build-env-3k5qr79b'
    def _create_isolated_env_virtualenv(path):  # type: (str) -> Tuple[str,
str]
        """
        On Python 2 we use the virtualenv package to provision a virtual
environment.

        :param path: The path where to create the isolated build environment
        :return: The Python executable and script folder
        """
        cmd = [str(path), '--no-setuptools', '--no-wheel', '--activators', '']
>       result = virtualenv.cli_run(cmd, setup_logging=False)
E       AttributeError: 'NoneType' object has no attribute 'cli_run'
../../BUILDROOT/python-build-0.5.1-1.fc35.x86_64/usr/lib/python3.10/site-packages/build/env.py:182:
AttributeError
________________ test_pip_needs_upgrade_mac_os_11[arm64-21.0.0]
________________
mocker = <pytest_mock.plugin.MockerFixture object at 0x7f43cc24bee0>
pip_version = '21.0.0', arch = 'arm64'
    @pytest.mark.isolated
    @pytest.mark.parametrize('pip_version', ['20.2.0', '20.3.0', '21.0.0',
'21.0.1'])
    @pytest.mark.parametrize('arch', ['x86_64', 'arm64'])
    @pytest.mark.skipif(IS_PY35, reason="Python 3.5 does not run on macOS 11,
and pip can't upgrade to 21 there")
    @pytest.mark.skipif(IS_PY2, reason='venv module used on Python 3 only')
    def test_pip_needs_upgrade_mac_os_11(mocker, pip_version, arch):
        SimpleNamespace = collections.namedtuple('SimpleNamespace', 'version')

        check_call = mocker.patch('subprocess.check_call')
        mocker.patch('platform.system', return_value='Darwin')
        mocker.patch('platform.machine', return_value=arch)
        mocker.patch('platform.mac_ver', return_value=('11.0', ('', '', ''),
''))
        mocker.patch('build.env.metadata.distributions',
return_value=(SimpleNamespace(version=pip_version),))
        mocker.patch.object(build.env, 'virtualenv', None)  # hide virtualenv

        min_version = Version('20.3' if arch == 'x86_64' else '21.0.1')
>       with build.env.IsolatedEnvBuilder():
tests/test_env.py:131: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../BUILDROOT/python-build-0.5.1-1.fc35.x86_64/usr/lib/python3.10/site-packages/build/env.py:90:
in __enter__
    executable, scripts_dir = _create_isolated_env_virtualenv(self._path)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
path = '/tmp/build-env-cxh_gynv'
    def _create_isolated_env_virtualenv(path):  # type: (str) -> Tuple[str,
str]
        """
        On Python 2 we use the virtualenv package to provision a virtual
environment.

        :param path: The path where to create the isolated build environment
        :return: The Python executable and script folder
        """
        cmd = [str(path), '--no-setuptools', '--no-wheel', '--activators', '']
>       result = virtualenv.cli_run(cmd, setup_logging=False)
E       AttributeError: 'NoneType' object has no attribute 'cli_run'
../../BUILDROOT/python-build-0.5.1-1.fc35.x86_64/usr/lib/python3.10/site-packages/build/env.py:182:
AttributeError
________________ test_pip_needs_upgrade_mac_os_11[arm64-21.0.1]
________________
mocker = <pytest_mock.plugin.MockerFixture object at 0x7f43cd4caef0>
pip_version = '21.0.1', arch = 'arm64'
    @pytest.mark.isolated
    @pytest.mark.parametrize('pip_version', ['20.2.0', '20.3.0', '21.0.0',
'21.0.1'])
    @pytest.mark.parametrize('arch', ['x86_64', 'arm64'])
    @pytest.mark.skipif(IS_PY35, reason="Python 3.5 does not run on macOS 11,
and pip can't upgrade to 21 there")
    @pytest.mark.skipif(IS_PY2, reason='venv module used on Python 3 only')
    def test_pip_needs_upgrade_mac_os_11(mocker, pip_version, arch):
        SimpleNamespace = collections.namedtuple('SimpleNamespace', 'version')

        check_call = mocker.patch('subprocess.check_call')
        mocker.patch('platform.system', return_value='Darwin')
        mocker.patch('platform.machine', return_value=arch)
        mocker.patch('platform.mac_ver', return_value=('11.0', ('', '', ''),
''))
        mocker.patch('build.env.metadata.distributions',
return_value=(SimpleNamespace(version=pip_version),))
        mocker.patch.object(build.env, 'virtualenv', None)  # hide virtualenv

        min_version = Version('20.3' if arch == 'x86_64' else '21.0.1')
>       with build.env.IsolatedEnvBuilder():
tests/test_env.py:131: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../BUILDROOT/python-build-0.5.1-1.fc35.x86_64/usr/lib/python3.10/site-packages/build/env.py:90:
in __enter__
    executable, scripts_dir = _create_isolated_env_virtualenv(self._path)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
path = '/tmp/build-env-tjll4j18'
    def _create_isolated_env_virtualenv(path):  # type: (str) -> Tuple[str,
str]
        """
        On Python 2 we use the virtualenv package to provision a virtual
environment.

        :param path: The path where to create the isolated build environment
        :return: The Python executable and script folder
        """
        cmd = [str(path), '--no-setuptools', '--no-wheel', '--activators', '']
>       result = virtualenv.cli_run(cmd, setup_logging=False)
E       AttributeError: 'NoneType' object has no attribute 'cli_run'
../../BUILDROOT/python-build-0.5.1-1.fc35.x86_64/usr/lib/python3.10/site-packages/build/env.py:182:
AttributeError
=============================== warnings summary
===============================
tests/test_env.py::test_isolation
tests/test_env.py::test_isolation
tests/test_env.py::test_isolation
tests/test_env.py::test_isolation
tests/test_env.py::test_isolated_environment_install
tests/test_env.py::test_default_pip_is_never_too_old
tests/test_main.py::test_build_isolated
tests/test_main.py::test_build_raises_build_exception
tests/test_main.py::test_build_raises_build_backend_exception
  /usr/lib/python3.10/site-packages/virtualenv/run/plugin/base.py:18:
DeprecationWarning: SelectableGroups dict interface is deprecated. Use select.
    return OrderedDict((e.name, e.load()) for e in cls.entry_points().get(key,
{}))
-- Docs: https://docs.pytest.org/en/stable/warnings.html
=========================== short test summary info
============================
FAILED tests/test_env.py::test_executable_missing_post_creation -
AttributeEr...
FAILED tests/test_env.py::test_pip_needs_upgrade_mac_os_11[x86_64-20.2.0] -
A...
FAILED tests/test_env.py::test_pip_needs_upgrade_mac_os_11[x86_64-20.3.0] -
A...
FAILED tests/test_env.py::test_pip_needs_upgrade_mac_os_11[x86_64-21.0.0] -
A...
FAILED tests/test_env.py::test_pip_needs_upgrade_mac_os_11[x86_64-21.0.1] -
A...
FAILED tests/test_env.py::test_pip_needs_upgrade_mac_os_11[arm64-20.2.0] -
At...
FAILED tests/test_env.py::test_pip_needs_upgrade_mac_os_11[arm64-20.3.0] -
At...
FAILED tests/test_env.py::test_pip_needs_upgrade_mac_os_11[arm64-21.0.0] -
At...
FAILED tests/test_env.py::test_pip_needs_upgrade_mac_os_11[arm64-21.0.1] -
At...
====== 9 failed, 77 passed, 32 skipped, 4 deselected, 9 warnings in 4.78s
======


-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/package-review@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite Conditions]     [KDE Users]

  Powered by Linux