Skip to content

Support _retain_test_patterns key for prebuilt wheels as sources in recipes#288

Merged
agriyakhetarpal merged 6 commits into
mainfrom
allow-retaining-test-patterns-for-wheels
Jan 26, 2026
Merged

Support _retain_test_patterns key for prebuilt wheels as sources in recipes#288
agriyakhetarpal merged 6 commits into
mainfrom
allow-retaining-test-patterns-for-wheels

Conversation

@agriyakhetarpal

Copy link
Copy Markdown
Member

Spotted in pyodide/pyodide-recipes#484. Since we unvendor the tests from prebuilt wheel packages before --installing them anyway, I think we should also support the _retain-test-patterns flag for prebuilt wheels too. This PR updates the logic for unvendoring tests – so if we ask to retain test patterns, we process the files one-by-one instead of moving entire tests/ folders. I added a recipe as an integration test, using a simple package like colorama (I couldn't find any better candidates in my narrow and limited search).

@agriyakhetarpal agriyakhetarpal added the integration This PR will run the integration tests. This label can be used as a persistent marker to do so. label Jan 23, 2026

@ryanking13 ryanking13 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!

@agriyakhetarpal

Copy link
Copy Markdown
Member Author

Thanks for the review!

@agriyakhetarpal
agriyakhetarpal merged commit a9044b7 into main Jan 26, 2026
18 of 20 checks passed
@agriyakhetarpal
agriyakhetarpal deleted the allow-retaining-test-patterns-for-wheels branch January 26, 2026 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integration This PR will run the integration tests. This label can be used as a persistent marker to do so.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants