FS#63435 - [mypy] package is missing a dependency
Attached to Project:
Community Packages
Opened by Daniel Todorov (dt_) - Sunday, 11 August 2019, 19:11 GMT
Last edited by Morten Linderud (Foxboron) - Sunday, 22 September 2019, 14:30 GMT
Opened by Daniel Todorov (dt_) - Sunday, 11 August 2019, 19:11 GMT
Last edited by Morten Linderud (Foxboron) - Sunday, 22 September 2019, 14:30 GMT
|
Details
Description:
Upon being ran, encounters an unhandled exception and exits. The application seems to requite the package "python-typing_extensions" with version >= 3.7.4, while the most recent version in the repository is 3.7.2-2. Thus, as of right now, it's not possible to run the program without using pip/conda/venv. I've attached the output of the application. Version: mypy 0.720-1 Config and/or log files etc. Not applicable. Link to upstream bug report, if any: Not applicable. Steps to reproduce: 1. Make sure python-typing_extensions's version is < 3.7.4. (As of right now, the most recent version in Community is 3.7.2-2, so that should be easy. If the package gets updated, the issue can be reproduced by uninstalling python-typing_extensions (which is not in the list of mypy's dependencies)). 2. Run /bin/mypy Note: I've marked the severity as high, but if "python-typing_extensions" gets updated, the severity of the issue will lessen. |
This task depends upon
Closed by Morten Linderud (Foxboron)
Sunday, 22 September 2019, 14:30 GMT
Reason for closing: Fixed
Additional comments about closing: mypy 0.720-2
Sunday, 22 September 2019, 14:30 GMT
Reason for closing: Fixed
Additional comments about closing: mypy 0.720-2
It seems to have been added by upstream as a pip dependency:
$ pip3 show mypy | grep Requires
Requires: typed-ast, typing-extensions, mypy-extensions
Thanks! But now there is another issue: community/python-typing_extensions 3.7.4 is recognized as 3.7.2 by setuptools:
$ pip show typing_extensions | grep Version
Version: 3.7.2
As a result, mypy still fails with:
pkg_resources.ContextualVersionConflict: (typing-extensions 3.7.2 (/usr/lib/python3.7/site-packages), Requirement.parse('typing_extensions>=3.7.4'), {'mypy'})
In the upstream repository, the commit that bumps the typing_extensions package [1] is one commit newer than the commit that bumps the typing package [2].
[1] https://github.com/python/typing/commit/27f2e427b9b677401961b5da1762f8380a929bb8
[2] https://github.com/python/typing/commit/baf63c5924a2b9695175df5d47ced40596024b78