StefanSimis / PyTrios

PyTrios module to communicate with TriOS optical sensors over a serial port
GNU General Public License v3.0
0 stars 4 forks source link

Allow PyTrios to be installed via pip #8

Closed davidbenncsiro closed 1 year ago

davidbenncsiro commented 1 year ago

We could create a pyproject.toml file that allows PyTrios to be pip installed, making integration of its functionality with other tools simpler.

davidbenncsiro commented 1 year ago

@StefanSimis what I've committed is enough for pytrios to be pip installed locally via:

pip install .

and uninstalled via:

pip uninstall pytrios

making integration with other code easier (no need to set PYTHONPATH explicitly for example). I have not added support for installing the sample_trios.py script. It would need to be moved into the pytrios module, for example, and a main() function added. Neither is of course onerous, but as with everything I'm doing, I want to take a minimally disruptive approach. Let me know what you think.