-
Notifications
You must be signed in to change notification settings - Fork 4
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
First steps and planning #1
Comments
Sounds great to me. I'll move the relevant issues over. Thanks so much @simonegiacomelli! |
Great, thanks for working on this @simonegiacomelli ! You wouldn't be interested in writing a blog post about this at https://blog.pyodide.org/ once it's more or less ready by any chance? Sorry I missed the pings in the parent issues about naming, didn't have access to email notifications for a few days. A few more name suggestions are in #2 if it's not too late. But of course, feel also free to keep the current name. |
Yes, absolutely! In the coming days/weeks I will work towards producing the first usable js.pyi through pypi. In this regard I just noticed that I put the generator sources in the src folder but probably it is not the best: the generator will not be released on pypi but just the pyi; so I could move those files in a package in the root of the repo (at the same level of tests folder). The src folder will contain only a After the first pypi release I will proceed to add features like: manual webidl, comments, platform support and fixing issues. Thank you all for the support! |
If a project generates files they shouldn't be placed in I think the best structure is to generate a single |
It still needs to be importable as |
Aren't we creating a type stubs only package? |
I guess it would make sense to also make top level imports from |
Well yes but we did discuss the package name in #2 unless you think it should be named About whether it needs to be importable, not sure, I never did a stubs only package. I guess someone would have to try and see if it works. |
I thought we were discussing the pypi distribution name in #2, so that people will I thought we are creating type stubs for from js import setTimeout If we just want type stubs, then we need to upload to pypi a distribution with any name we like (maybe webypy) containing a package called |
Hmm, I was under the assumption that the package name would be == pip installable name, but indeed it doesn't have to be the case. +1 for what you are proposing. But I think the package name is just specified in the Anyway, it's a long weekend in France, I have only had a quick glance at it, so also feel free to ignore my comments :) |
If you have a single file package, it's permisable to call it |
Thanks for linking PEP 561! After your comments I renamed the folder For the project naming, the pep says about the package naming but I didn't see any indication for the project name; so There are still 2 things to fix:
If you have some pointer for bullet 1, please let me know; I looked at the project mentioned by the pep as a stub-only project (numpy-stubs) but they use setup.py also and I hoped to do that using only Did I forget or misunderstood something? |
The pep indeed places no constraint on the distribution name. If we like webtypy and it is available on pypi we can use it =) |
I can help with this, it's quite annoying to get right but I just did it recently. But also I think it would be good to place it under a subfolder like |
I think it's possible using a data_files pattern like |
@hoodmane yes please, let's move the |
@hoodmane @rth @ryanking13
These are the first steps where I could focus my energies for now:
src
layout.And then these points are for adding comments to the api:
What do you think?
The text was updated successfully, but these errors were encountered: