dist/tools/usb-serial: use pipx for as runner#22223
dist/tools/usb-serial: use pipx for as runner#22223maribu wants to merge 1 commit intoRIOT-OS:masterfrom
Conversation
This allows users to not having to care about python dependencies. In addition SPDX annotations have been added.
|
Am I special? 🤣 After installing |
|
Perhaps it would be a good idea to add |
|
This is Ubuntu 22.04.5 LTS on WSL btw: |
|
You could run it with |
|
Maybe we should go for I think |
|
pipx version 1.0.0 is from January 2022, so a good 1.5 years older than the PEP 👀 I installed pipx fresh with |
I +1 a transition to uv, esp. since there is also a uv plugin for tox and I find our python tox stuff to be quite flaky since it doesn't have to benefits that uv brings to python envs like very exact version pinning. I also heard from @LasseRosenow that uv has become the quasi universal standard for modern python environments (Back in my days ppl used poetry 😔) |
|
How about adding a shell script in front that tries to identify which ever python venv management is installed and than runs the python script through that and as a last resort just calls the script on its own to check whether the user just does not want a venv manger but had installed the dependency trough their package manger (no one would use pip). -- instead of adding a new dependency on a specific python venv manger |
Contribution description
This allows users to not having to care about python dependencies.
In addition SPDX annotations have been added.
Testing procedure
Run
make -C examples/basic/hello-world list-ttysordist/tools/usb-serial/ttys.py. It should now work, even if thepython3-pyudev/pyudev/py3-udev/ ... package is not locally installed.Issues/PRs references
None
Declaration of AI-Tools / LLMs usage:
AI-Tools / LLMs that were used are: