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

Allow injecting kwargs to fetch during installing #125

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

CNSeniorious000
Copy link
Sponsor Member

Resolves #122

But will the next version released after implementing #112? If this feature is going to be added there then there is no need to merge this tiny commit.

Copy link
Member

@ryanking13 ryanking13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! this would need some test and changelog update.

But will the next version released after implementing #112?

I don't think so, #112 will take more time to be fully implemented and released. And even after #112 is implemented I think this PR is still relavant.

@@ -20,6 +20,7 @@ async def install(
index_urls: list[str] | str | None = None,
*,
verbose: bool | int = False,
**fetch_kwargs,
Copy link
Member

@ryanking13 ryanking13 Jul 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not use kwargs, and pass a dictionary instead.

fetch_args: dict[str, Any] | None = {...}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, as credentials is part of fetch args, I think we can deprecate it in favor to fetch args.

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

Successfully merging this pull request may close these issues.

Maybe provide a parameter to avoid browser caching for PyPI resolution requests
2 participants