-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Rethink how we package typeshed #5307
Comments
This came up again in #5319 so I am raising priority to high. |
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. |
I also prefer option 1, at least for now (unless there are some major unforeseen issues with this approach, perhaps). |
OK, lets go with option 1. This way we can even be more flexible (no need to depend on typeshed releases). |
Okay, I submitted #5517, which implements option 1. Hopefully this will mean fewer broken installs! |
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 Maybe release a |
@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. 👍 |
Currently, we have a rather complicated method of finding data files. The current method we use to distribute typeshed is ripe for issues with finding the files.
I think we should stop playing whack-a-mole with issues and ship typeshed differently. Here are two ideas:
I have no particular preference for one over the other, but I think both are better than the current method.
The text was updated successfully, but these errors were encountered: