Better docs for creating a distributable package #89
Replies: 1 comment
-
I can't actually determine whether this can be improved or whether something is being overlooked without actually inspecting the metadata files and configuration. But don't worry, this shouldn't be needed. Also, I'm not a Python packaging specialist either (and I doubt most Python users are), but I'll be glad to help you as much as I can. First, you may already know, but there's a template/example PyPI-ready installable node pack here: https://github.com/KennedyRichard/mynodepack. This template actually works and you can even install it with Here are a few additional pointers taking it into account:
Finally, in case you are not aware. PyPI has actually a duplicate service for testing purposes called TestPyPI. You can use it in the very same way you'd use PyPI and even install packages from it in the same way. This is great because you can upload your package there as many times as you'd like as you fine-tune your settings or source code and only after ensuring it is working correctly you can upload the package to the regular PyPI server. This process is also described in the README of the template package I mentioned above. If you still have any questions, don't hesitate to ask. Sorry for taking so long to answer. As you know, I've been doing a lot of work in and outside the Indie Python/Nodezator projects, including the recent patch I released to fix your issue regarding the overflowing dialog. Finally, in the title of this discussion, you suggest the need for better docs for creating a distributable package, but you didn't actually mention any docs, only your own trial and error. Could you please mention which docs in specific you are referring to that you think should be improved? Could it be, perhaps, that you weren't aware of the existence of the example/template node pack I mentioned, or of the chapter in the manual that mentions it (https://manual.nodezator.com/ch-distributing-nodes.html)? This is a genuine question and you don't need to worry at all if you didn't know. If this is the case, it just means that it may be my fault for not making such materials more noticeable in the manual and other relevant spots. I just wanted to know this because it is what you claimed in the title, so I didn't want to finish this reply without addressing it. As always, let me know if you need anything else. I'll be glad to help if it is within my abilities. Peace. |
Beta Was this translation helpful? Give feedback.
-
It took me a lot of trial and error to settle on my current structure:
as this supports editable installs (and hopefully) it's PyPi ready. (Plus now this package can be imported, as without that top-level folder it could only be done from the parent directory for some reason, thus Nodezator didn't see this package.)
Could I improve this? Am I overlooking smt.?
Beta Was this translation helpful? Give feedback.
All reactions