libdyson-wg / libdyson-neon

Python library for dyson devices
Apache License 2.0
20 stars 11 forks source link

Allow installation via pipx #21

Open StefanLobbenmeier opened 4 months ago

StefanLobbenmeier commented 4 months ago

Would be nice if installation via pipx was supported, so we can avoid cloning the repo manually. I just tried that and I got this result:

pipx install libdyson-neon
⚠️ Found a space in the home path. We heavily discourage this, due to multiple incompatibilities. Please check our docs for more information on this, as well as some pointers on how to
    migrate to a different home path.
Note: Dependent package 'charset-normalizer' contains 1 apps
  - normalizer

No apps associated with package libdyson-neon. Try again with '--include-deps' to include apps of dependent packages, which are listed above. If you are attempting to install a library, pipx should not be used. Consider using pip or a similar tool instead.

I guess there is some configuration needed to make get_devices.py the main entrypoint?

StefanLobbenmeier commented 4 months ago

Alternative considered is doing this manually and just having nice steps for this in the readme. This is the commands I ran:

git clone https://github.com/libdyson-wg/libdyson-neon.git
cd libdyson-neon/
python3 -m venv ./venv
./venv/bin/pip install -r requirements.txt
./venv/bin/python get_devices.py