allegroai / clearml-agent

ClearML Agent - ML-Ops made easy. ML-Ops scheduler & orchestration solution
https://clear.ml/docs/
Apache License 2.0
244 stars 92 forks source link

poetry_install_extra_args passes arguments to poetry config #173

Open jmw52 opened 1 year ago

jmw52 commented 1 year ago
agent {
      package_manager: {
        type: poetry
        poetry_install_extra_args: ["--without", "dev"]
      }
    }

the following error occurs:

The option "--without" does not exist
Exception: Command '['poetry', 'config', '--local', 'virtualenvs.in-project', 'true', '--without', 'dev']' returned non-zero exit status 1.
Error: Failed configuring Poetry virtualenvs.in-project
failed installing poetry requirements: Command '['poetry', 'config', '--local', 'virtualenvs.in-project', 'true', '--without', 'dev']' returned non-zero exit status 1.

It looks like the arguments are passed to command poetry config, which does not accept these arguments.

ainoam commented 1 year ago

Thanks for reporting @jmw52,

We'll let you know when a fix is available.