"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "poetry/console/commands/installer_command.py" between
poetry-1.1.15.tar.gz and poetry-1.2.0.tar.gz

About: Poetry is a tool for dependency management and packaging in Python.

installer_command.py  (poetry-1.1.15):installer_command.py  (poetry-1.2.0)
from __future__ import annotations
from typing import TYPE_CHECKING from typing import TYPE_CHECKING
from .env_command import EnvCommand from poetry.console.commands.group_command import GroupCommand
from poetry.installation.installer import Installer from poetry.installation.installer import Installer
from poetry.installation.installer import Optional
class InstallerCommand(EnvCommand): class InstallerCommand(GroupCommand):
def __init__(self): def __init__(self) -> None:
self._installer = None # type: Optional[Installer] # Set in poetry.console.application.Application.configure_installer
self._installer: Installer | None = None
super(InstallerCommand, self).__init__() super().__init__()
def reset_poetry(self): def reset_poetry(self) -> None:
super(InstallerCommand, self).reset_poetry() super().reset_poetry()
self._installer.set_package(self.poetry.package) self.installer.set_package(self.poetry.package)
self._installer.set_locker(self.poetry.locker) self.installer.set_locker(self.poetry.locker)
@property @property
def installer(self): # type: () -> Installer def installer(self) -> Installer:
assert self._installer is not None
return self._installer return self._installer
def set_installer(self, installer): # type: (Installer) -> None def set_installer(self, installer: Installer) -> None:
self._installer = installer self._installer = installer
 End of changes. 9 change blocks. 
12 lines changed or deleted 15 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)