peerdavid / remapy

An open source explorer for your remarkable tablet to show, upload or delete files via the remarkable cloud.
Apache License 2.0
174 stars 19 forks source link

add setup.py allowing for building packages #31

Closed betamike closed 3 years ago

betamike commented 3 years ago

Added a minimal setup.py file which will allow the project to be built as a wheel, and ultimately distributed/installed via PyPI and pip (this also makes it easier to package for various Linux package managers).

@peerdavid I filled in your info, but couldn't find a good email address for you. Happy to add one, or remove the field (it's optional). Also, I set the version number as 0.5.0, but it can be set to whatever you like.

I tested locally and I was able to install via the local wheel file. To test it out locally:

$ pip install wheel                                # ensure wheel is installed
$ python setup.py bdist_wheel                      # build the wheel file
$ pip install dist/remapy-0.5.0-py3-none-any.whl   # install the built wheel file
$ remapy                                           # run remapy! requires $HOME/.local/bin to be on PATH if installing to user location
peerdavid commented 3 years ago

Thank you very much for this setup.py - merged :)