Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support passing --without-urls to poetry export #788

Open
1 task done
ITProKyle opened this issue Sep 18, 2023 · 3 comments
Open
1 task done

support passing --without-urls to poetry export #788

ITProKyle opened this issue Sep 18, 2023 · 3 comments

Comments

@ITProKyle
Copy link

Is there an existing issue for this?

  • I have searched existing issues, it hasn't been reported yet

Use case description

This is to bypass a bug in pip (pypa/pip#11511) that causes this plugin to fail. While most users may not encounter this, it is a hindrance when using private pypi repos (e.g. nexus). There is an issue open to better work around this bug with poetry (python-poetry/poetry-plugin-export#149) but enabling the use of the existing --without-urls flag here may be a quicker path forward for the time being.

Proposed solution (optional)

Similar to the implementation of poetryWithGroups, allow this setting to be enabled.

custom:
  pythonRequirements:
    poetryWithoutUrls: true

Or, for future expandability, just allow passing any cli args to the export command.

custom:
  pythonRequirements:
    poetryExportArgs:
      - --without-urls
      - --only
      - main
@CodeBooster97
Copy link

Hello!
We are having a similar issue.

Instead of installing ALL groups we only want to install ONE group of our .toml requirements!
There should be a way to pass extra args to poetry. --only Flag in our case.

e.g. It makes absolutely no sense to install dev-dependencies

@louis-sanchez
Copy link

+1 !

@audiostackhenry
Copy link

+1!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants