Exemple #1
0
    def handle(self):
        installer = Installer(self.output, self.poetry.package,
                              self.poetry.locker, self.poetry.pool)

        installer.update(True)
        installer.execute_operations(False)

        return installer.run()
Exemple #2
0
    def handle(self):
        from poetry.installation import Installer

        installer = Installer(
            self.output,
            self.env,
            self.poetry.package,
            self.poetry.locker,
            self.poetry.pool,
        )

        installer.update(True)
        installer.execute_operations(False)

        return installer.run()
Exemple #3
0
    def handle(self):
        from poetry.installation import Installer

        packages = self.argument("packages")

        installer = Installer(self.io, self.env, self.poetry.package,
                              self.poetry.locker, self.poetry.pool)

        if packages:
            installer.whitelist({name: "*" for name in packages})

        installer.dev_mode(not self.option("no-dev"))
        installer.dry_run(self.option("dry-run"))
        installer.execute_operations(not self.option("lock"))

        # Force update
        installer.update(True)

        return installer.run()