-
Notifications
You must be signed in to change notification settings - Fork 18
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
Passing pip Install Parameters #397
Comments
Why not provide it in the environment ( |
Also, to my knowledge, Poetry does export Update: Oh, but we'd filter that out when converting to constraints format for pip... |
Can you please check the output of I suppose that nox-poetry may want to collect pip options from the exported requirements.txt, and pass them via the command-line. They are not valid in a constraints file, so we need to filter them out. |
Thanks for the quick reply! You're right, Having nox-poetry handle the pip arguments would be nice, but I'm generally happy with the global pip config appraoch. That is how our developer computers should be configured. We don't have multiple index-urls, but if needed, the I think this issue can probably be closed as not within nox_poetry scope? Or reopened if you wanted to pursue parsing the pip arguments |
I've opened #398 for the question of collecting pip options from the exported requirements. |
I need pip to use an index-url for an internal repository (hosted with devpi), but it doesn't look like there is a way to pass arguments to pip for the initial install other than any global configuration (
pip config edit
)The best way would be for
poetry export
to also export pip parameters (docs) in the requiremts.txt file, but getting that merged would be hard given the ~200 PR backlog 😢The index URL is listed in tool.poetry.source of pyproject.toml, so nox-poetry could potentially extract it from there, but it might be more flexible to add a pip_params argument to nox_session instead (like the nox venv_params kwarg that exists now)
nox-poetry/src/nox_poetry/sessions.py
Line 21 in 8e0262b
Which I think could then be passed to this install step:
nox-poetry/src/nox_poetry/sessions.py
Line 153 in 8e0262b
The text was updated successfully, but these errors were encountered: