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

Add pip as test requirement to support editable installs in tests with PEP 660 #15482

Merged
merged 1 commit into from
Jun 21, 2023

Conversation

cdce8p
Copy link
Collaborator

@cdce8p cdce8p commented Jun 20, 2023

Pip version 21.3 is required to support editable installs with PEP 660. Currently, the mypy wheel build fails for cp38-macosx_x86_64 with the following error:

 ERROR: File "setup.py" or "setup.cfg" not found. Directory cannot be installed in editable mode: /Users/runner/work/mypy_mypyc-wheels/mypy_mypyc-wheels/mypy/test-data/packages/typedpkg
 (A "pyproject.toml" file was found, but editable mode currently requires a setuptools-based build.)

https://github.com/mypyc/mypy_mypyc-wheels/actions/runs/5323325694/jobs/9640999946#step:4:6103

https://pip.pypa.io/en/stable/news/#id232

Copy link
Collaborator

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

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

Thank you!

@github-actions
Copy link
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

graphql-core (https://github.com/graphql-python/graphql-core): typechecking got 1.06x slower (348.6s -> 368.7s)
(Performance measurements are based on a single noisy sample)

@cdce8p
Copy link
Collaborator Author

cdce8p commented Jun 21, 2023

@hauntsaninja Should I add anything or can this be merged? Would like to know if the wheel build is really fixed after this. It should be 🤞🏻

@hauntsaninja
Copy link
Collaborator

Sorry, I think tests were still running when I approved. Merged now, thanks again for being on top of this! :-)

@hauntsaninja hauntsaninja merged commit 7d031be into python:master Jun 21, 2023
20 checks passed
@cdce8p cdce8p deleted the pin-pin branch June 21, 2023 20:11
cdce8p added a commit to cdce8p/mypy that referenced this pull request Jun 22, 2023
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.

None yet

2 participants