Skip to content

Remove unnecessary mypyc files from wheel - #18416

Merged
JukkaL merged 1 commit into
python:masterfrom
cdce8p:wheel-files
Jan 10, 2025
Merged

Remove unnecessary mypyc files from wheel#18416
JukkaL merged 1 commit into
python:masterfrom
cdce8p:wheel-files

Conversation

@cdce8p

@cdce8p cdce8p commented Jan 5, 2025

Copy link
Copy Markdown
Collaborator

Remove mypyc docs and some testing files from wheels. They aren't included for mypy itself as well. The sdist content will stay the same, so it's possible for distributors to continue to run the tests.

Files which will no longer be included

mypyc/README.md
mypyc/doc/**
mypyc/external/googletest/**
mypyc/lib-rt/setup.py
mypyc/lib-rt/test_capi.cc
mypyc/test-data/**

@cdce8p cdce8p added the topic-mypyc mypyc bugs label Jan 5, 2025
@cdce8p

cdce8p commented Jan 5, 2025

Copy link
Copy Markdown
Collaborator Author

/CC @mr-c

@github-actions

github-actions Bot commented Jan 5, 2025

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@mr-c

mr-c commented Jan 10, 2025

Copy link
Copy Markdown
Contributor

The sdist content will stay the same, so it's possible for distributors to continue to run the tests.

I can confirm this, thanks!

@JukkaL JukkaL left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This makes sense -- now mypy and mypyc are treated more consistently.

@JukkaL
JukkaL merged commit 106f714 into python:master Jan 10, 2025
@cdce8p
cdce8p deleted the wheel-files branch January 10, 2025 15:23
@cdce8p cdce8p mentioned this pull request Jan 11, 2025
@cdce8p

cdce8p commented Jan 11, 2025

Copy link
Copy Markdown
Collaborator Author

This change uncovered a bug in the mypyc test suite which causes the wheel tests to fail.
https://github.com/mypyc/mypy_mypyc-wheels/actions/runs/12712285989

Fix #18444

ilevkivskyi pushed a commit that referenced this pull request Jan 11, 2025
#18416 removed the `mypyc/test-data` package from the wheel. This caused
the wheel tests to fail. Use the `test_data_prefix` instead which uses
the existing `MYPY_TEST_PREFIX` to determine the correct file location.

https://github.com/mypyc/mypy_mypyc-wheels/actions/runs/12712285989
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic-mypyc mypyc bugs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants