-
Notifications
You must be signed in to change notification settings - Fork 65
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
package on pypi #50
Comments
Dool is 100% functional with just the |
Where do we stand on this? I'm not 100% familiar with the startup code (I inherited this code). Your solution above looks clean to me, I would be fine moving towards that. I doubt the If you want to submit a PR to rework that startup code I'll test it. |
I re-worked and documented the startup in |
nice. though I don't think the do you wanna package it up for pypi? |
Can you elaborate on "you can't access double underscore prefixed symbols"? I have zero experience packaging for pypi, I was hoping someone in the community would take that project on so we can spread the |
oh, apparently double underscore only applies to class members. it works fine, disregard me as for how to package, just add my once you're happy with it, make an account on https://test.pypi.org and publish there (https://flit.pypa.io/en/stable/upload.html). once you're happy with that, make an account on real pypi and publish! |
@raylu is that something that I need to do, or is it that something someone in the community is able to do? Are their security restrictions that require me personally to do it? I'm not a Python expert, I inherited this project, and I'm certainly NOT a Python ecosystem expert. I'm not really looking to take on adding a package on PyPi onto my plate. Other projects I have been involved in (Perl and Javascript) the community was able to take the code I wrote and get it packaged up. That freed up my time to focus on the code and the release team would handle getting it pushed to various repositories. |
you can do it yourself. there is no special list of trusted packagers for pypi. anyone can make a new package on pypi it is... conventional for the package maintainer to claim the package on pypi. I can do it for you if you want, but I'd at least want to add you as a maintainer if I made the package |
@raylu if you have experience making packages then please, by all means, make |
I just remembered that pypi now has a whole fancy trusted publishers thing https://docs.pypi.org/trusted-publishers/ so I made next...raylu:dool:next you can follow the |
OMG that is amazing. You are a gentlemen and a scholar. Yes I am definitely interested, please send a PR. |
thanks for this! can a release be created so it is published to pypi rather than test.pypi? |
oh nice! I was gonna manually publish 1.3.1, but that works too. also glad to see my thing actually worked, heh now that the package is created, do you want to make a pypi account and I'll add you as a mainatiner? |
@raylu I created an account: |
SUMMARY
make dool installable via
pip install dool
ISSUE TYPE
see also: #4
the structure of the code is a bit... inconducive to python packaging.
dool
isn't importable, so it's hard to set it up as a console script. I made a symlinkdool.py
→dool
, but the structure is still pretty odd. it relies on some globals to be set, so after moving the__main__
block into a_main()
function, I added someglobal
s. I don't really understand what theelse
block is for (how can__name__
ever not be__main__
?) so I deleted itwith a few other minor tweaks and the
pyproject.toml
below,flit install
worksthe main problem, though, is
plugins/
. it can't find any after installingI doubt we want the package to be importable after installation as
plugins
, so we probably want to instead have asrc/
ordool/
with a__main__.py
and makeplugins/
a subdir of that. that'd require a minor change topluginpath
and updating the rpm and snap packaging codeThe text was updated successfully, but these errors were encountered: