Bug 1480661
Summary: | mypy does not work | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Martin <marejde> | ||||
Component: | python3-mypy | Assignee: | Gwyn Ciesla <gwync> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 26 | CC: | gwync, jonas, qcai | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | python3-mypy-0.521-3.fc26 python3-mypy-0.521-3.fc27 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2017-09-14 21:54:11 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Martin
2017-08-11 15:43:01 UTC
Workaround: Run it with $ mypy --custom-typeshed-dir=/usr/share/typeshed *.py Apparently the patch to find typeshed in /usr/share is no longer working. I'm trying to debug (and eventually patch) it but haven't quite grasped yet how the whole logic in build.py#default_data_dir() works exactly. A radical but effective solution would be to scrap that entire function and hardcode the correct path for fedora. Created attachment 1316473 [details]
Suggested fix for the package (f26)
I took a shot at patching this (against the f26 branch).
/usr/bin/mypy now works, but calling via python3 -m is still broken.
I have no idea whether I did that correctly. I'm also not sure if the patch should be sent upstream, since they want to use the bundled typeshed anyway and fedora is the only distro patching that out.
Jonas: Thank you for the workaround. Maintainer of mypy in Fedora: Ping? Apologies, I got busy. Thank you, I'll get an update with this patch out. python3-mypy-0.521-3.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-0d592be5f0 python3-mypy-0.521-3.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-58ef013d16 python3-mypy-0.521-3.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-0d592be5f0 python3-mypy-0.521-3.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-58ef013d16 python3-mypy-0.521-3.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report. Thanks! :) python3-mypy-0.521-3.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report. |