-
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
feat: use pip sources config from poetry #887
base: main
Are you sure you want to change the base?
feat: use pip sources config from poetry #887
Conversation
|
||
[[tool.poetry.source]] | ||
name = "pypi-all-source2" | ||
url = "https://pypi.python.org/all" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
poetry export
is not actually including this as an extra index, but that seems like an upstream issue.
requirements_text = self.poetry.export() | ||
constraints = to_constraints(requirements_text) | ||
pip_args = "\n".join(to_global_pip_args(requirements_text)) | ||
path.write_text("\n".join([pip_args, constraints])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if this data should be here or sent as arguments in the install command. Thoughts?
# args += to_global_pip_args(requirements) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is where I had the config being injected before. I'll update this based on your opinion of how to best proceed.
This current setup produces a constraints file
I'm not sure if this index will be read correctly when in the constrains file, I will have to test that. |
There's now #1040 too, which seems similar to this. |
This is a continuation of #679 which was closed because I didn't create a feature branch :/ my apologies.
Closes #398
What do you think about this version? I'm not sure where the best place to put the args at is.. either in the
install
command as args or in the constraints file.