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

Update FAQ to include MyPy not working on PyPy #8879

Merged
merged 2 commits into from
Oct 18, 2020

Conversation

rvanlaar
Copy link
Contributor

I experienced a wild goose chase while experimenting with PyPy.
It boiled down to typed_ast not compiling with PyPy.

I hope others will find this information more quickly now.

rvanlaar and others added 2 commits May 24, 2020 15:34
I experienced a wild goose chase while experimenting with PyPy. 
It boiled down to typed_ast not compiling with PyPy. 

I hope others will find this information more quickly now.
@msullivan msullivan merged commit 8c2ea0f into python:master Oct 18, 2020
@stonebig
Copy link

would it be possible to remove typed_ast dependancy ? (for PyPy, when it will be python-3.8 compatible)

@emmatyping
Copy link
Collaborator

@stonebig, typed_ast is already not required for Python >= 3.8, so there should hopefully be minimal changes needed to support pypy. I have been watching the PyPy development work and I plan on trying mypy on pypy once the needed changes are added.

@stonebig
Copy link

stonebig commented May 28, 2021

I asked because when I do on python-3.9 a pipdeptree -r -p typed-ast, mypy seems still to have typed-ast as a dependency... rechecking

@stonebig
Copy link

... hmm, maybe a pipdeptree bug

@stonebig
Copy link

stonebig commented May 28, 2021

yet, the METADATA file of python-3.9.5.amd64\Lib\site-packages\mypy-0.812.dist-info is written like this:

Metadata-Version: 2.1
Name: mypy
Version: 0.812
Summary: Optional static typing for Python
Home-page: http://www.mypy-lang.org/
Author: Jukka Lehtosalo
Author-email: [email protected]
License: MIT License
Project-URL: News, http://mypy-lang.org/news.html
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Software Development
Requires-Python: >=3.5
Requires-Dist: typed-ast (<1.5.0,>=1.4.0)
Requires-Dist: typing-extensions (>=3.7.4)
Requires-Dist: mypy-extensions (<0.5.0,>=0.4.3)
Provides-Extra: dmypy
Requires-Dist: psutil (>=4.0) ; extra == 'dmypy'

Would the specification "python <3.8" have been lost in the wheel transformation ? (or the METADATA format is outdated ?)

@JelleZijlstra
Copy link
Member

The most recent release still unconditionally required typed-ast. The next release (expected next week) will have the version-conditional typed-ast requirement.

@stonebig
Copy link

stonebig commented Aug 2, 2021

so can we remove typed-ast as a dependancy for Python>=3.8 ?
it's needed to get a PyPy-3.8 on board https://foss.heptapod.net/pypy/pypy/-/issues/3526

@hauntsaninja
Copy link
Collaborator

@stonebig
Copy link

stonebig commented Aug 2, 2021

.... ha.... checking on a empty Python-3.8 .... seems it shall be good, sorry for not having checked before

pip download --dest  C:\WinP\a  mypy
Collecting mypy
  Downloading mypy-0.910-cp38-cp38-win_amd64.whl (7.5 MB)
     |████████████████████████████████| 7.5 MB 204 kB/s
Collecting toml
  File was already downloaded  toml-0.10.2-py2.py3-none-any.whl
Collecting typing-extensions>=3.7.4
  File was already downloaded  typing_extensions-3.10.0.0-py3-none-any.whl
Collecting mypy-extensions<0.5.0,>=0.4.3
  File was already downloaded  mypy_extensions-0.4.3-py2.py3-none-any.whl
Saved  mypy-0.910-cp38-cp38-win_amd64.whl
Successfully downloaded mypy mypy-extensions typing-extensions toml

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.

6 participants