-
Notifications
You must be signed in to change notification settings - Fork 21
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
PyPI packaging and distribution? #24
Comments
What’s the procedure to submit liblarch to PyPi ? |
The PiPI website directs prospective developers to the Python.org packaging guide, specifically to the packaging tutorial. My impression with Python distribution is that Poetry is increasingly popular for dependency management and packaging. Poetry can be used for generating Python Wheel packages, though there are single-purpose tools available, as well. (I’m currently working on learning this process myself, so I can’t really explain it from experience, yet.) |
There’s a “quick and dirty” tutorial available here. |
I will probably not be able to sit down to handle this for at least the next two months. But I would gladly review any proposal about this. |
I would say maybe reopen this, since it hasn’t quite happened, yet? |
it was closed automatically with the merge. |
What are the next steps expected from me then? |
Yes, that was probably my fault by linking it in the description.
First, I would say install the package I uploaded using Then, create accounts on both test.pypi.org and pypi.org and let me know what your username is. (I’m 99% sure they’re separate registrations.) I just checked, and it looks like I can transfer you the Once you’re set up with test.pypi.org, you can try a few test uploads to get the hang of it. Use the following steps:
$ pip install build
$ python -m build .
$ twine upload -r test dist/liblarch* (The The main caveats are that:
Both the namespace (package name) and the version number come from For these reasons, you want to verify the process with test.pypi.org first, and if you’re testing with the main pypi.org, use a dummy version number before striking/withdrawing it. I haven’t parked One other thing worth mentioning is that you can use two-factor authentication and/or GPG signing for PyPI uploads if you want to improve the security of your workflow. 2FA is fairly straightforward, but I haven’t fiddled around with PyPI GPG, yet. |
FWIW, you could almost certainly distribute Getting Things GNOME through PyPI, as well, just for shits and giggles. PyPI isn’t nearly as popular for GUI applications as it is for libraries (and, to some extent, simple CLI scripts), but you can upload pretty much anything, the main difficulty being determining the correct end-user installation method. |
An example of a GUI Python GTK application distributed through PyPI is Sublime Music [PyPI] [Gitlab], which I’ve never used, but which could potentially be a useful template for distributing GTG on PyPI. |
I do not longer actively develop Liblarch nor do I plan to do it (I’ve stopped all my programming activities and I do no longer have a dev environment on my computer). Does it make sense for me to own the namespace ? I’m thinking that you could do it yourself. That would be a great contribution and you would have my blessing. Do you foresee any trouble ? |
asking @nekohayo and @izidormatusov if they have any opinion on this. |
I’m new enough to GTK that I wouldn’t feel comfortable with the responsibility for someone else’s namespace. What seems like a better solution might be, first, putting a note like the following at the top of README.md:
Then, because PyPI allows for multiple owners and maintainers on a namespace, have the Again, if you were to register on test.pypi.org and tell me your username, it would help me experiment with PyPI’s user-permissioning system. |
created account "ploum" on test.pypi.org. |
Could you submit liblarch to PyPI? It would make it a lot easier to use it as a dependency.
The text was updated successfully, but these errors were encountered: