You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, we have a rather complicated method of finding data files. The current method we use to distribute typeshed is ripeforissueswithfindingthefiles.
I think we should stop playing whack-a-mole with issues and ship typeshed differently. Here are two ideas:
I have no particular input on whether option 1 or 2 is nicer/simpler/better/whatever, but if we're picking anything other than option 2 its probably worth cleaning up the PyPI typeshed package to avoid cases where someone accidentally gets the wrong version of typeshed by mistakenly installing the pypi version.
Maybe release a typeshed==1.0.0 with just a README.md saying "don't install this"?
@TheKevJames that isn't a problem. In my implementation in #5517 typeshed is never imported, so installing the typeshed package will not interfere (the path to the typshed files are found relative to the mypy package).
@ethanhs Ah, good point. Might be nice to clean up the released package anyway since its unused / potentially confusing, but it does indeed look like it won't interfere. 👍
Activity
emmatyping commentedon Jul 5, 2018
This came up again in #5319 so I am raising priority to high.
emmatyping commentedon Aug 2, 2018
I think I will go ahead with option 1, unless anyone objects. It shouldn't be too hard to adopt option 2 later if typeshed becomes a package.
JukkaL commentedon Aug 14, 2018
I also prefer option 1, at least for now (unless there are some major unforeseen issues with this approach, perhaps).
ilevkivskyi commentedon Aug 14, 2018
OK, lets go with option 1. This way we can even be more flexible (no need to depend on typeshed releases).
emmatyping commentedon Aug 22, 2018
Okay, I submitted #5517, which implements option 1. Hopefully this will mean fewer broken installs!
TheKevJames commentedon Aug 28, 2018
I have no particular input on whether option 1 or 2 is nicer/simpler/better/whatever, but if we're picking anything other than option 2 its probably worth cleaning up the PyPI typeshed package to avoid cases where someone accidentally gets the wrong version of
typeshedby mistakenly installing thepypiversion.Maybe release a
typeshed==1.0.0with just aREADME.mdsaying "don't install this"?emmatyping commentedon Aug 28, 2018
@TheKevJames that isn't a problem. In my implementation in #5517 typeshed is never imported, so installing the typeshed package will not interfere (the path to the typshed files are found relative to the mypy package).
TheKevJames commentedon Aug 28, 2018
@ethanhs Ah, good point. Might be nice to clean up the released package anyway since its unused / potentially confusing, but it does indeed look like it won't interfere. 👍
Use package_data to ship typeshed and xml files (#5517)