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

add "--without-index-url" option to poetry export #4741

Closed
jrobbins-LiveData opened this issue Nov 12, 2021 · 2 comments · Fixed by #4763
Closed

add "--without-index-url" option to poetry export #4741

jrobbins-LiveData opened this issue Nov 12, 2021 · 2 comments · Fixed by #4763
Labels
kind/feature Feature requests/implementations

Comments

@jrobbins-LiveData
Copy link

  • [ x] I have searched the issues of this repo and believe that this is not a duplicate.
  • [ x] I have searched the documentation and believe that my question is not covered.

Feature Request

I am working with a private PyPi repository (AWS CodeArtifact). I need access to my locked dependencies inside a docker build. While there is more than one way to accomplish this, the simplest way for me is to run poetry export -f requirements.txt ... and use the following code in the Dockerfile:

COPY requirements.txt .
RUN pip install --index-url ${CODEARTIFACT_URL} -t . -r requirements.txt
RUN rm requirements.txt

But poetry export is adding this line to the top of my requirements.txt file, breaking my docker build:

--index-url https://[REDACTED DOMAIN]-[REDACTED ACCOUNT].d.codeartifact.us-east-2.amazonaws.com/pypi/[REDACTED REPO]/simple

Adding an option to suppress adding this --index-url would let me capture the locked dependencies and take care of the private CodeArtifact PyPi repo myself.

@jrobbins-LiveData jrobbins-LiveData added kind/feature Feature requests/implementations status/triage This issue needs to be triaged labels Nov 12, 2021
@DustinMoriarty
Copy link
Contributor

I also found it a little odd for poetry to add the index URL's to the requirements file. I would be happy to look at making a PR for this.

Copy link

github-actions bot commented Mar 2, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/feature Feature requests/implementations
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants