-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[Question] Override source repository through environment variable or config #6004
Comments
Related to #4880 (was looking for this, but found that issue first) Browsing the source, it look like the |
Sources are not designed to be overridden via the environment variables. The |
I have a similar issue, I'm attempting to build containers that have dependencies in our company PyPi repository (which requires authentication). I'm trying not to bake any credentials into our images. A build-time environment variable would have been handy for that. I suppose we could use the imperative commands + build arguments to set the config then remove it before ending the |
✨ This is an old work account. Please reference @brandonchinn178 for all future communication ✨ @arichtman you can do this today: poetry source add --default foo https://pypi-internal.company.com
export POETRY_HTTP_BASIC_FOO_USERNAME=...
export POETRY_HTTP_BASIC_FOO_PASSWORD=...
poetry lock --no-update This uses env vars for auth, but puts the source into |
Thanks! I have been successfully using the source in |
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. |
Issue
I'm running
poetry
during the CI process and I need to override the source repository from where it installs the dependencies without updating the URL onpyproject.toml
.I've tried some environment variables as described here but without success.
Is is possible to do it? If yes, how would I override this source:
I've tried:
Any help is appreciated!
Thanks
The text was updated successfully, but these errors were encountered: