-
Notifications
You must be signed in to change notification settings - Fork 417
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
python package for pip install #3
Comments
Couldn't agree more - I am relatively new to Python and haven't done any of the above previously but I will add this to the next release. FWIW I am also working on a Docker file. |
@acockburn Do you want a PR for the python package structure, or do you want to do it yourself? I have a branch more or less ready. |
I really appreciate you working on it but I regard this as a learning process and would really like to figure it out myself - perhaps I could ask you for feedback when I have something? |
Good call! I'm happy to answer questions as far as I'm able. I've pushed my branch to my fork, so you can take a look if you like when you're ready. I suggest reading some docs or blog first, though. There is also the cookiecutter project which can setup a full project skeleton for you with optional test modules, travis, tox and pypi scripts. |
Thanks for the pointers - I can forsee a lot of reading this weekend :) |
I'll second @MartinHjelmare; if you need any help/feedback feel free to let me know too! |
Thanks, much appreciated! |
A note on this one... assuming you build a package such that it installs an executable to the standard system path (e.g. via the scripts argument to I can contribute a systemd unit file to go alongside the existing initscript once it's done, it's only about 5 lines. I have one now that I'm using on Debian, but if AppDaemon is going to get packaged up I might as well wait. |
Makes sense - I would like to have a look at your systemd script. |
OK, this is done - thanks Martin for your example (which I pretty much used) as well as the additional assistance in answering my questions. @jasonmhite - as currently constructed, an |
Is appdaemon supposed to be easy to install using pip? I've just spent the last 30 minutes running appdaemon, seeing what "ImportError: No module named '' it gives this time, and then running pip to manually install the missing package. No end in sight either. Feel like I'm missing something. http://appdaemon.readthedocs.io/en/latest/INSTALL.html also has a few 404 links (Docker link, HA link). |
It should be a single command - with possibly a couple of apt-get installs listed in the docs. |
Ah! My apologies...maybe move that section up a bit...listing dependencies required to get something working right at the bottom of documentation is a little..unusual! |
I can certainly do that :) |
Thanks! Confirmed all working happily now :) |
Great :) |
The installation instructions are pretty manual right now; it'd help if the project was set up as a normal pip-installable python package. Even just adding a setup.py should allow people to pip install it using the git url.
Adding a
requirements.txt
and changing the instructions topip3 install -r requirements.txt
would also be a good improvement over manually installing multiple dependencies.The text was updated successfully, but these errors were encountered: