jonsterling / Tasky

A Taskwarrior client. This was created to fill my own need: feel free to modify it! If it looks really ugly, you probably have your terminal configured wrong.
31 stars 3 forks source link

Better way to install? #5

Open jonsterling opened 6 years ago

jonsterling commented 6 years ago

I don't know anything about how Python's package ecosystem or infrastructure works, but I'm pretty sure that "manually install urwid and then move these .py files into your PATH" is not how python applications are meant to be installed :laughing:

pocc commented 6 years ago

Recommendations

Use a requirements.txt and list all libraries in there one-per-line.

Users can then install via pip install -r requirements.txt. This has the added advantage that that the pip command stays the same regardless of how many libraries you add. Putting a list of requirements in your setup.py will functionally do the same thing.

If you want to setup your program via a series of commands, you may want to look into using a Makefile.

Further reading

I would check out https://the-hitchhikers-guide-to-packaging.readthedocs.io/en/latest/index.html if you have time. It's comprehensive and up-to-date.

Also, if you want to read good code, check out https://github.com/requests/requests. It's one of the best written python modules.