Skip to content

Support extras in custom urls [integration] - #257

Merged
ryanking13 merged 17 commits into
pyodide:mainfrom
ryanking13:pkg-url
Oct 18, 2025
Merged

Support extras in custom urls [integration]#257
ryanking13 merged 17 commits into
pyodide:mainfrom
ryanking13:pkg-url

Conversation

@ryanking13

Copy link
Copy Markdown
Member

Close #254
Close #205

This changes the behavior of micropip.install to install extras when the requirement is given in

pkg[extra] @ https://pkg.url.com/pkg.whl

format.

I noticed that we already support pkg @ https://pkg.url.com/pkg.whl syntax thanks to packaging, but we were not handling the extras correctly. This PR fixes it.

@ryanking13
ryanking13 marked this pull request as ready for review October 4, 2025 01:42
Comment thread micropip/transaction.py
)

async def add_requirement_inner(
async def add_requirement_inner( # noqa: C901

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Out of curiosity, what's C901?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It is Function is too complex (C901). It is too giant function now and we'll need to refactor it later.

@hoodmane hoodmane left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@ryanking13

Copy link
Copy Markdown
Member Author

Thanks for the review!

@ryanking13
ryanking13 merged commit f2e9b51 into pyodide:main Oct 18, 2025
7 checks passed
@ryanking13
ryanking13 deleted the pkg-url branch October 18, 2025 13:38
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.

Optional dependencies can not be combined with .whl URIs

2 participants