-
Notifications
You must be signed in to change notification settings - Fork 82
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
Packaging and distribution #349
Comments
Hey, this seems very important to me, making users download a zip file is not ideal IMHO. Would you accept contributions to do this? |
Yes please, this is totally beyond my expertise! Even a roadmap of what steps to take would be great. |
How about using a something like nuitka (https://github.com/Nuitka/Nuitka) to package the whole application into a (OS-specific) executable, and then offer that for download? That would be a lot simpler / easier for users, I would think |
@ExalDraen that would be good if we can then offer the executable via Github. I haven't packaged before, so no idea on how to go about doing it! |
I was working on this because it seems like this is blocking #457. I keep running into import errors whenever I try to use this as a package. To recap what I've experimented with for the past month:
Every single time, I come up against this dreaded error:
So I decided to upload it onto PyPI first; maybe that will provide some sort of standardisation so I don't keep running into import errors. Uploading worked! I turned it into an executable, too, and fixed the dependencies issue in
😢 I believe I decided to go with relative imports.
Close enough. It works! Oh, and you need to use I'll put up a PR, specifically for the relative imports and the packaging-specific changes. This is important since it'll make it easier for my GUI app -- whether that be PWA or a desktop GUI, I'm not sure yet -- to keep up with the updates, since I don't need to keep changing it to relative imports. I think this should be enough for Pyodide (for PWA), or just plain Python importing (if I'm going with a Python GUI) to work properly... Still needs fixing:
|
That's pretty cool, thanks for reasoning this out! I know we had some import-related issues a while back with certain configurations, so maybe that explains it.
Clicking the play button in VS Code no longer works! A sad day, but a small sacrifice. |
😆 Well, one could always use |
Is your feature request related to a problem? Please describe.
As per #176 , ideally we could install our package by running
pip install bank2ynab
, but this requires proper packaging.Describe the solution you'd like
setup.py
setup.py
/MANIFEST.in
Additional context
Work in progress branch: https://github.com/bank2ynab/bank2ynab/tree/feature/349_Packaging_and_distribution
The text was updated successfully, but these errors were encountered: