Source: poetry Version: 1.3.1+dfsg-1 Severity: Serious
Hello, looks like the package is using internet during build. No changing rebuilding with disabled internet results in tests failures dpkg-source: info: building poetry in poetry_1.3.1+dfsg-1.dsc debian/rules binary dh binary --with python3 --buildsystem=pybuild dh_update_autotools_config -O--buildsystem=pybuild dh_autoreconf -O--buildsystem=pybuild dh_auto_configure -O--buildsystem=pybuild dh_auto_build -O--buildsystem=pybuild I: pybuild plugin_pyproject:107: Building wheel for python3.10 with "build" module I: pybuild base:240: python3.10 -m build --skip-dependency-check --no-isolation --wheel --outdir /poetry-1.3.1+dfsg/.pybuild/cpython3_3.10_poetry * Building wheel... Successfully built poetry-1.3.1-py3-none-any.whl I: pybuild plugin_pyproject:119: Unpacking wheel built for python3.10 with "installer" module I: pybuild plugin_pyproject:107: Building wheel for python3.11 with "build" module I: pybuild base:240: python3.11 -m build --skip-dependency-check --no-isolation --wheel --outdir /poetry-1.3.1+dfsg/.pybuild/cpython3_3.11_poetry * Building wheel... Successfully built poetry-1.3.1-py3-none-any.whl I: pybuild plugin_pyproject:119: Unpacking wheel built for python3.11 with "installer" module dh_auto_test -O--buildsystem=pybuild I: pybuild base:240: cd /poetry-1.3.1+dfsg/.pybuild/cpython3_3.10_poetry/build; python3.10 -m pytest --ignore=tests/console/commands/env/test_list.py --ignore=tests/console/commands/env/test_remove.py --ignore=tests/console/commands/env/test_use.py --ignore=tests/utils/test_env.py --ignore=tests/config/test_config.py --ignore=tests/utils/test_helpers.py -k 'not test_self_update_should_install_all_necessary_elements and not test_add_file_constraint_sdist and not test_add_file_constraint_sdist_old_installer and not test_publish_dry_run and not test_info_from_sdist and not test_installer_can_install_dependencies_from_forced_source and not test_search_for_file_sdist and not test_search_for_file_sdist_with_extras and not test_solver_can_resolve_sdist_dependencies and not test_solver_can_resolve_sdist_dependencies_with_extras and not test_solver_chooses_from_correct_repository_if_forced and not test_solver_chooses_from_correct_repository_if_forced_and_transitive_dependency and not test_solver_does_not_choose_from_secondary_repository_by_default and not test_solver_chooses_from_secondary_if_explicit and not test_get_package_information_fallback_read_setup and not test_get_package_information_skips_dependencies_with_invalid_constraints and not test_get_package_retrieves_packages_with_no_hashes and not test_fallback_can_read_setup_to_get_dependencies and not test_exporter_can_export_requirements_txt_with_file_packages and not test_exporter_can_export_requirements_txt_with_file_packages_and_markers and not test_lock_no_update and not test_locker_dumps_dependency_information_correctly and not test_package_partial_yank and not test_run_installs_with_same_version_url_files and not test_env_info_displays_complete_info and not test_skip_existing_output and not test_installer_should_use_the_locked_version_of_git_dependencies_with_extras and not test_installer_should_use_the_locked_version_of_git_dependencies_without_reference and not test_installer_uses_prereleases_if_they_are_compatible and not test_requirement_git_subdirectory and not test_check_valid and not test_check_invalid and not test_packages_property_returns_empty_list and not test_parse_dependency_specification and not test_info_setup_missing_mandatory_should_trigger_pep517' =========================================================================================== test session starts =========================================================================================== platform linux -- Python 3.10.9, pytest-7.2.0, pluggy-1.0.0+repack rootdir: /poetry-1.3.1+dfsg, configfile: pyproject.toml plugins: mock-3.8.2, xdist-3.1.0 gw0 [1056] / gw1 [1056] / gw2 [1056] / gw3 [1056] / gw4 [1056] / gw5 [1056] / gw6 [1056] / gw7 [1056] ....................................................................................................................................................................s.............................. [ 18%] ................................................................................................................................................................................................... [ 36%] ......................................................................................................................................................s............................................ [ 55%] .................................................................................................................s................................................................................. [ 73%] ................................................................................................................................................................................................... [ 92%] ............F....................F..........................FF......s............ [100%] ================================================================================================ FAILURES ================================================================================================= ______________________________________________________________________________ test_uninstall_git_package_nspkg_pth_cleanup _______________________________________________________________________________ [gw3] linux -- Python 3.10.9 /usr/bin/python3.10 self = VirtualEnv("/tmp/poetry_n4b2p4ir/venv") cmd = ['/tmp/poetry_n4b2p4ir/venv/bin/python', '/usr/share/python-wheels/pip-22.3.1-py3-none-any.whl/pip', 'install', '--use-pep517', '--disable-pip-version-check', '--isolated', ...], kwargs = {} call = False, input_ = None, env = {'ARCH': 'amd64', 'ARCHITECTURE': 'amd64', 'ASFLAGS': '', 'CCACHE_DIR': '/poetry-1.3.1+dfsg/.pybuild/ccache', ...} command = ['/tmp/poetry_n4b2p4ir/venv/bin/python', '/usr/share/python-wheels/pip-22.3.1-py3-none-any.whl/pip', 'install', '--use-pep517', '--disable-pip-version-check', '--isolated', ...] def _run(self, cmd: list[str], **kwargs: Any) -> int | str: """ Run a command inside the Python environment. """ call = kwargs.pop("call", False) input_ = kwargs.pop("input_", None) env = kwargs.pop("env", dict(os.environ))try:
if self._is_windows: kwargs["shell"] = Truecommand: str | list[str]
if kwargs.get("shell", False): command = list_to_shell_command(cmd) else: command = cmdif input_:
output = subprocess.run( command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, input=encode(input_), check=True, **kwargs, ).stdout elif call: return subprocess.call( command, stderr=subprocess.STDOUT, env=env, **kwargs ) else:
output = subprocess.check_output(
command, stderr=subprocess.STDOUT, env=env, **kwargs ) poetry/utils/env.py:1536: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ timeout = None popenargs = (['/tmp/poetry_n4b2p4ir/venv/bin/python', '/usr/share/python-wheels/pip-22.3.1-py3-none-any.whl/pip', 'install', '--use-pep517', '--disable-pip-version-check', '--isolated', ...],) kwargs = {'env': {'ARCH': 'amd64', 'ARCHITECTURE': 'amd64', 'ASFLAGS': '', 'CCACHE_DIR': '/poetry-1.3.1+dfsg/.pybuild/ccache', ...}, 'stderr': -2} def check_output(*popenargs, timeout=None, **kwargs): r"""Run command with arguments and return its output.If the exit code was non-zero it raises a CalledProcessError. The
CalledProcessError object will have the return code in the returncode attribute and output in the output attribute.The arguments are the same as for the Popen constructor. Example: >>> check_output(["ls", "-l", "/dev/null"])
b'crw-rw-rw- 1 root root 1, 3 Oct 18 2007 /dev/null\n'The stdout argument is not allowed as it is used internally.
To capture standard error in the result, use stderr=STDOUT.>>> check_output(["/bin/sh", "-c",
... "ls -l non_existent_file ; exit 0"], ... stderr=STDOUT) b'ls: non_existent_file: No such file or directory\n'There is an additional optional argument, "input", allowing you to
pass a string to the subprocess's stdin. If you use this argument you may not also use the Popen constructor's "stdin" argument, as it too will be used internally. Example:>>> check_output(["sed", "-e", "s/foo/bar/"],
... input=b"when in the course of fooman events\n") b'when in the course of barman events\n'By default, all communication is in bytes, and therefore any "input"
should be bytes, and the return value will be bytes. If in text mode, any "input" should be a string, and the return value will be a string decoded according to locale encoding, or by "encoding" if set. Text mode is triggered by setting any of text, encoding, errors or universal_newlines. """ if 'stdout' in kwargs: raise ValueError('stdout argument not allowed, it will be overridden.')if 'input' in kwargs and kwargs['input'] is None:
# Explicitly passing input=None was previously equivalent to passing an # empty string. That is maintained here for backwards compatibility. if kwargs.get('universal_newlines') or kwargs.get('text') or kwargs.get('encoding') \ or kwargs.get('errors'): empty = '' else: empty = b'' kwargs['input'] = empty
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
**kwargs).stdout /usr/lib/python3.10/subprocess.py:421: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ input = None, capture_output = False, timeout = None, check = True popenargs = (['/tmp/poetry_n4b2p4ir/venv/bin/python', '/usr/share/python-wheels/pip-22.3.1-py3-none-any.whl/pip', 'install', '--use-pep517', '--disable-pip-version-check', '--isolated', ...],) kwargs = {'env': {'ARCH': 'amd64', 'ARCHITECTURE': 'amd64', 'ASFLAGS': '', 'CCACHE_DIR': '/poetry-1.3.1+dfsg/.pybuild/ccache', ...}, 'stderr': -2, 'stdout': -1} process = <Popen: returncode: 1 args: ['/tmp/poetry_n4b2p4ir/venv/bin/python', '/usr/s...> stdout = b"Processing /tmp/poetry_n4b2p4ir/venv/src/demo/namespace-package-one\n Installing build dependencies: started\n Ins...4\x80> See above for output.\n\nnote: This error originates from a subprocess, and is likely not a problem with pip.\n" stderr = None, retcode = 1 def run(*popenargs, input=None, capture_output=False, timeout=None, check=False, **kwargs): """Run command with arguments and return a CompletedProcess instance.The returned instance will have attributes args, returncode, stdout and
stderr. By default, stdout and stderr are not captured, and those attributes will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them, or pass capture_output=True to capture both.If check is True and the exit code was non-zero, it raises a
CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute, and output & stderr attributes if those streams were captured.If timeout is given, and the process takes too long, a TimeoutExpired
exception will be raised.There is an optional argument "input", allowing you to
pass bytes or a string to the subprocess's stdin. If you use this argument you may not also use the Popen constructor's "stdin" argument, as it will be used internally.By default, all communication is in bytes, and therefore any "input" should
be bytes, and the stdout and stderr will be bytes. If in text mode, any "input" should be a string, and stdout and stderr will be strings decoded according to locale encoding, or by "encoding" if set. Text mode is triggered by setting any of text, encoding, errors or universal_newlines.The other arguments are the same as for the Popen constructor.
""" if input is not None: if kwargs.get('stdin') is not None: raise ValueError('stdin and input arguments may not both be used.') kwargs['stdin'] = PIPEif capture_output:
if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None: raise ValueError('stdout and stderr arguments may not be used ' 'with capture_output.') kwargs['stdout'] = PIPE kwargs['stderr'] = PIPEwith Popen(*popenargs, **kwargs) as process:
try: stdout, stderr = process.communicate(input, timeout=timeout) except TimeoutExpired as exc: process.kill() if _mswindows: # Windows accumulates the output in a single blocking # read() call run on child threads, with the timeout # being done in a join() on those threads. communicate() # _after_ kill() is required to collect that and add it # to the exception. exc.stdout, exc.stderr = process.communicate() else: # POSIX _communicate already populated the output so # far into the TimeoutExpired exception. process.wait() raise except: # Including KeyboardInterrupt, communicate handled that. process.kill() # We don't call process.wait() as .__exit__ does that for us. raise retcode = process.poll() if check and retcode:
raise CalledProcessError(retcode, process.args,
output=stdout, stderr=stderr) E subprocess.CalledProcessError: Command '['/tmp/poetry_n4b2p4ir/venv/bin/python', '/usr/share/python-wheels/pip-22.3.1-py3-none-any.whl/pip', 'install', '--use-pep517', '--disable-pip-version-check', '--isolated', '--no-input', '--prefix', '/tmp/poetry_n4b2p4ir/venv', '--upgrade', '--no-deps', '/tmp/poetry_n4b2p4ir/venv/src/demo/namespace-package-one']' returned non-zero exit status 1. /usr/lib/python3.10/subprocess.py:526: CalledProcessError During handling of the above exception, another exception occurred: path = PosixPath('/tmp/poetry_n4b2p4ir/venv/src/demo/namespace-package-one'), environment = VirtualEnv("/tmp/poetry_n4b2p4ir/venv"), editable = False, deps = False, upgrade = True def pip_install( path: Path, environment: Env, editable: bool = False, deps: bool = False, upgrade: bool = False, ) -> int | str: is_wheel = path.suffix == ".whl"# We disable version check here as we are already pinning to version available in
# either the virtual environment or the virtualenv package embedded wheel. Version # checks are a wasteful network call that adds a lot of wait time when installing a # lot of packages. args = [ "install", "--disable-pip-version-check", "--isolated", "--no-input", "--prefix", str(environment.path), ]if not is_wheel and not editable:
args.insert(1, "--use-pep517")if upgrade:
args.append("--upgrade")if not deps:
args.append("--no-deps")if editable:
if not path.is_dir(): raise PoetryException( "Cannot install non directory dependencies in editable mode" ) args.append("-e")args.append(str(path)) try:
return environment.run_pip(*args)
poetry/utils/pip.py:56: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = VirtualEnv("/tmp/poetry_n4b2p4ir/venv"), args = ('install', '--use-pep517', '--disable-pip-version-check', '--isolated', '--no-input', '--prefix', ...), kwargs = {} pip = ['/tmp/poetry_n4b2p4ir/venv/bin/python', '/usr/share/python-wheels/pip-22.3.1-py3-none-any.whl/pip'] cmd = ['/tmp/poetry_n4b2p4ir/venv/bin/python', '/usr/share/python-wheels/pip-22.3.1-py3-none-any.whl/pip', 'install', '--use-pep517', '--disable-pip-version-check', '--isolated', ...] def run_pip(self, *args: str, **kwargs: Any) -> int | str: pip = self.get_pip_command() cmd = pip + list(args)
return self._run(cmd, **kwargs)
poetry/utils/env.py:1497: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = VirtualEnv("/tmp/poetry_n4b2p4ir/venv") cmd = ['/tmp/poetry_n4b2p4ir/venv/bin/python', '/usr/share/python-wheels/pip-22.3.1-py3-none-any.whl/pip', 'install', '--use-pep517', '--disable-pip-version-check', '--isolated', ...] kwargs = {'env': {'ARCH': 'amd64', 'ARCHITECTURE': 'amd64', 'ASFLAGS': '', 'CCACHE_DIR': '/poetry-1.3.1+dfsg/.pybuild/ccache', ...}} def _run(self, cmd: list[str], **kwargs: Any) -> int | str: kwargs["env"] = self.get_temp_environ(environ=kwargs.get("env"))
return super()._run(cmd, **kwargs)
poetry/utils/env.py:1776: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = VirtualEnv("/tmp/poetry_n4b2p4ir/venv") cmd = ['/tmp/poetry_n4b2p4ir/venv/bin/python', '/usr/share/python-wheels/pip-22.3.1-py3-none-any.whl/pip', 'install', '--use-pep517', '--disable-pip-version-check', '--isolated', ...], kwargs = {} call = False, input_ = None, env = {'ARCH': 'amd64', 'ARCHITECTURE': 'amd64', 'ASFLAGS': '', 'CCACHE_DIR': '/poetry-1.3.1+dfsg/.pybuild/ccache', ...} command = ['/tmp/poetry_n4b2p4ir/venv/bin/python', '/usr/share/python-wheels/pip-22.3.1-py3-none-any.whl/pip', 'install', '--use-pep517', '--disable-pip-version-check', '--isolated', ...] def _run(self, cmd: list[str], **kwargs: Any) -> int | str: """ Run a command inside the Python environment. """ call = kwargs.pop("call", False) input_ = kwargs.pop("input_", None) env = kwargs.pop("env", dict(os.environ))try:
if self._is_windows: kwargs["shell"] = Truecommand: str | list[str]
if kwargs.get("shell", False): command = list_to_shell_command(cmd) else: command = cmdif input_:
output = subprocess.run( command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, input=encode(input_), check=True, **kwargs, ).stdout elif call: return subprocess.call( command, stderr=subprocess.STDOUT, env=env, **kwargs ) else: output = subprocess.check_output( command, stderr=subprocess.STDOUT, env=env, **kwargs ) except CalledProcessError as e:
raise EnvCommandError(e, input=input_)
E poetry.utils.env.EnvCommandError: Command ['/tmp/poetry_n4b2p4ir/venv/bin/python', '/usr/share/python-wheels/pip-22.3.1-py3-none-any.whl/pip', 'install', '--use-pep517', '--disable-pip-version-check', '--isolated', '--no-input', '--prefix', '/tmp/poetry_n4b2p4ir/venv', '--upgrade', '--no-deps', '/tmp/poetry_n4b2p4ir/venv/src/demo/namespace-package-one'] errored with the following return code 1, and output: E Processing /tmp/poetry_n4b2p4ir/venv/src/demo/namespace-package-one E Installing build dependencies: started E Installing build dependencies: finished with status 'error' E error: subprocess-exited-with-error E E × pip subprocess to install build dependencies did not run successfully. E │ exit code: 1 E ╰─> [7 lines of output] E WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f1c21fe3d60>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/setuptools/ E WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f1c21fe1ed0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/setuptools/ E WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f1c21fe0190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/setuptools/ E WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f1c21fe3310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/setuptools/ E WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f1c21fe2440>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/setuptools/ E ERROR: Could not find a version that satisfies the requirement setuptools>=40.8.0 (from versions: none) E ERROR: No matching distribution found for setuptools>=40.8.0 E [end of output] E E note: This error originates from a subprocess, and is likely not a problem with pip. E error: subprocess-exited-with-error E E × pip subprocess to install build dependencies did not run successfully. E │ exit code: 1 E ╰─> See above for output. E E note: This error originates from a subprocess, and is likely not a problem with pip. poetry/utils/env.py:1540: EnvCommandError The above exception was the direct cause of the following exception: mocker = <pytest_mock.plugin.MockerFixture object at 0x7f7573be45b0>, tmp_venv = VirtualEnv("/tmp/poetry_n4b2p4ir/venv") pool = <poetry.repositories.repository_pool.RepositoryPool object at 0x7f7573ddb730> def test_uninstall_git_package_nspkg_pth_cleanup( mocker: MockerFixture, tmp_venv: VirtualEnv, pool: RepositoryPool ): # this test scenario requires a real installation using the pip installer installer = PipInstaller(tmp_venv, NullIO(), pool)# use a namespace package
package = Package( "namespace-package-one", "1.0.0", source_type="git", source_url="https://github.com/demo/namespace-package-one.git", source_reference="master", )# in order to reproduce the scenario where the git source is removed prior to proper
# clean up of nspkg.pth file, we need to make sure the fixture is copied and not # symlinked into the git src directory def copy_only(source: Path, dest: Path) -> None: if dest.exists(): dest.unlink()if source.is_dir():
shutil.copytree(str(source), str(dest)) else: shutil.copyfile(str(source), str(dest))mocker.patch("tests.helpers.copy_or_symlink", new=copy_only) # install package and then remove it
installer.install(package)
tests/installation/test_pip_installer.py:236: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ poetry/installation/pip_installer.py:45: in install self.install_git(package) poetry/installation/pip_installer.py:292: in install_git self.install_directory(pkg) poetry/installation/pip_installer.py:266: in install_directory return pip_install( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ path = PosixPath('/tmp/poetry_n4b2p4ir/venv/src/demo/namespace-package-one'), environment = VirtualEnv("/tmp/poetry_n4b2p4ir/venv"), editable = False, deps = False, upgrade = True def pip_install( path: Path, environment: Env, editable: bool = False, deps: bool = False, upgrade: bool = False, ) -> int | str: is_wheel = path.suffix == ".whl"# We disable version check here as we are already pinning to version available in
# either the virtual environment or the virtualenv package embedded wheel. Version # checks are a wasteful network call that adds a lot of wait time when installing a # lot of packages. args = [ "install", "--disable-pip-version-check", "--isolated", "--no-input", "--prefix", str(environment.path), ]if not is_wheel and not editable:
args.insert(1, "--use-pep517")if upgrade:
args.append("--upgrade")if not deps:
args.append("--no-deps")if editable:
if not path.is_dir(): raise PoetryException( "Cannot install non directory dependencies in editable mode" ) args.append("-e")args.append(str(path)) try:
return environment.run_pip(*args) except EnvCommandError as e:
raise PoetryException(f"Failed to install {path.as_posix()}") from e
E poetry.exceptions.PoetryException: Failed to install /tmp/poetry_n4b2p4ir/venv/src/demo/namespace-package-one poetry/utils/pip.py:58: PoetryException ____________________________________________________________________ test_executor_should_write_pep610_url_references_for_directories _____________________________________________________________________ [gw4] linux -- Python 3.10.9 /usr/bin/python3.10 tmp_venv = VirtualEnv("/tmp/poetry_fy_dswcf/venv"), pool = <poetry.repositories.repository_pool.RepositoryPool object at 0x7faef6ebe710>, config = <tests.conftest.Config object at 0x7faef7104d00> io = <cleo.io.buffered_io.BufferedIO object at 0x7faef6ebe4a0> def test_executor_should_write_pep610_url_references_for_directories( tmp_venv: VirtualEnv, pool: RepositoryPool, config: Config, io: BufferedIO ): url = Path(__file__).parent.parent.joinpath("fixtures/simple_project").resolve() package = Package( "simple-project", "1.2.3", source_type="directory", source_url=url.as_posix() )executor = Executor(tmp_venv, pool, config, io)
executor.execute([Install(package)])
verify_installed_distribution(
tmp_venv, package, {"dir_info": {}, "url": url.as_uri()} ) tests/installation/test_executor.py:551: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ venv = VirtualEnv("/tmp/poetry_fy_dswcf/venv") package = Package('simple-project', '1.2.3', source_type='directory', source_url='/poetry-1.3.1+dfsg/.pybuild/cpython3_3.10_poetry/build/tests/fixtures/simple_project') url_reference = {'dir_info': {}, 'url': 'file:///poetry-1.3.1%2Bdfsg/.pybuild/cpython3_3.10_poetry/build/tests/fixtures/simple_project'} def verify_installed_distribution( venv: VirtualEnv, package: Package, url_reference: dict[str, Any] | None = None ): distributions = list(venv.site_packages.distributions(name=package.name))
assert len(distributions) == 1
E assert 0 == 1 E + where 0 = len([]) tests/installation/test_executor.py:465: AssertionError ________________________________________________________________________ test_executor_should_write_pep610_url_references_for_git _________________________________________________________________________ [gw4] linux -- Python 3.10.9 /usr/bin/python3.10 tmp_venv = VirtualEnv("/tmp/poetry_trg0d2ia/venv"), pool = <poetry.repositories.repository_pool.RepositoryPool object at 0x7faef7231240>, config = <tests.conftest.Config object at 0x7faef7a00c70> io = <cleo.io.buffered_io.BufferedIO object at 0x7faef7230670>, mock_file_downloads = None def test_executor_should_write_pep610_url_references_for_git( tmp_venv: VirtualEnv, pool: RepositoryPool, config: Config, io: BufferedIO, mock_file_downloads: None, ): package = Package( "demo", "0.1.2", source_type="git", source_reference="master", source_resolved_reference="123456", source_url="https://github.com/demo/demo.git", )executor = Executor(tmp_venv, pool, config, io)
executor.execute([Install(package)])
verify_installed_distribution(
tmp_venv, package, { "vcs_info": { "vcs": "git", "requested_revision": "master", "commit_id": "123456", }, "url": package.source_url, }, ) tests/installation/test_executor.py:614: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ venv = VirtualEnv("/tmp/poetry_trg0d2ia/venv") package = Package('demo', '0.1.2', source_type='git', source_url='/tmp/poetry_trg0d2ia/venv/src/demo/demo', source_reference='master', source_resolved_reference='123456') url_reference = {'url': '/tmp/poetry_trg0d2ia/venv/src/demo/demo', 'vcs_info': {'commit_id': '123456', 'requested_revision': 'master', 'vcs': 'git'}} def verify_installed_distribution( venv: VirtualEnv, package: Package, url_reference: dict[str, Any] | None = None ): distributions = list(venv.site_packages.distributions(name=package.name))
assert len(distributions) == 1
E assert 0 == 1 E + where 0 = len([]) tests/installation/test_executor.py:465: AssertionError ______________________________________________________________ test_executor_should_write_pep610_url_references_for_git_with_subdirectories _______________________________________________________________ [gw4] linux -- Python 3.10.9 /usr/bin/python3.10 tmp_venv = VirtualEnv("/tmp/poetry_4em0xewq/venv"), pool = <poetry.repositories.repository_pool.RepositoryPool object at 0x7faef7199090>, config = <tests.conftest.Config object at 0x7faef7abb3d0> io = <cleo.io.buffered_io.BufferedIO object at 0x7faef7199a80>, mock_file_downloads = None def test_executor_should_write_pep610_url_references_for_git_with_subdirectories( tmp_venv: VirtualEnv, pool: RepositoryPool, config: Config, io: BufferedIO, mock_file_downloads: None, ): package = Package( "two", "2.0.0", source_type="git", source_reference="master", source_resolved_reference="123456", source_url="https://github.com/demo/subdirectories.git", source_subdirectory="two", )executor = Executor(tmp_venv, pool, config, io)
executor.execute([Install(package)])
verify_installed_distribution(
tmp_venv, package, { "vcs_info": { "vcs": "git", "requested_revision": "master", "commit_id": "123456", }, "url": package.source_url, "subdirectory": package.source_subdirectory, }, ) tests/installation/test_executor.py:647: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ venv = VirtualEnv("/tmp/poetry_4em0xewq/venv") package = Package('two', '2.0.0', source_type='git', source_url='/tmp/poetry_4em0xewq/venv/src/demo/subdirectories', source_reference='master', source_resolved_reference='123456', source_subdirectory='two') url_reference = {'subdirectory': 'two', 'url': '/tmp/poetry_4em0xewq/venv/src/demo/subdirectories', 'vcs_info': {'commit_id': '123456', 'requested_revision': 'master', 'vcs': 'git'}} def verify_installed_distribution( venv: VirtualEnv, package: Package, url_reference: dict[str, Any] | None = None ): distributions = list(venv.site_packages.distributions(name=package.name))
assert len(distributions) == 1
E assert 0 == 1 E + where 0 = len([]) tests/installation/test_executor.py:465: AssertionError ========================================================================================= short test summary info ========================================================================================= FAILED tests/installation/test_pip_installer.py::test_uninstall_git_package_nspkg_pth_cleanup - poetry.exceptions.PoetryException: Failed to install /tmp/poetry_n4b2p4ir/venv/src/demo/namespace-package-one FAILED tests/installation/test_executor.py::test_executor_should_write_pep610_url_references_for_directories - assert 0 == 1 FAILED tests/installation/test_executor.py::test_executor_should_write_pep610_url_references_for_git - assert 0 == 1 FAILED tests/installation/test_executor.py::test_executor_should_write_pep610_url_references_for_git_with_subdirectories - assert 0 == 1 Looks like some more tests needs disabling. G.
OpenPGP_signature
Description: OpenPGP digital signature