-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Install and run pytype on Windows and Python 3.12 #12547
Conversation
…m/Avasam/typeshed into pytype-on-windows-and-Python-3.12
Install fails for Python 3.13 because |
tests/check_typeshed_structure.py
Outdated
assert len(spec) == 1, f"type checker/linter '{package}' has complex specifier in {REQS_FILE}" | ||
if package != "pytype": # Temporarily allow complex specification for pytype | ||
assert len(spec) == 1, f"type checker/linter '{package}' has complex specifier in {REQS_FILE}" | ||
url = requirements[package].url | ||
msg = f"type checker/linter '{package}' is not pinned to an exact version in {REQS_FILE}" | ||
assert str(spec).startswith("=="), msg | ||
assert str(spec).startswith("==") or "@" in str(url), msg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This adds support to target a specific git commit for install. But won't be necessary once an actual pytype version releases.
We released pytype 2024.09.13 today, which includes basic Python 3.12 support. Windows also likely works but we can't enable our tests for it, yet, because they run too slowly. We'll have to do some more work there before we can officially declare that pytype supports Windows. Not sure if you want to run tests on Windows before that. I opened #12653, which only bumps the pytype version and leaves the remaining caveats unchanged. I don't mind which one gets merged, though. |
…-on-windows-and-Python-3.12
…m/Avasam/typeshed into pytype-on-windows-and-Python-3.12
I'm expecting to have issues, but since it's been updated for Python 3.12 and Windows in the last week I figured may as well try it out.
Edit: Actually looks pretty good! This could work as-is.