bulletmark / pipxu

Install and Run Python Applications in Isolated Environments using UV
101 stars 1 forks source link

feature missing: inject requirements #12

Closed prismv closed 1 month ago

prismv commented 1 month ago

Thank you for this nice project. I had just found out about uv and pipxu. It's great to get speedy pipx commands.

Suppose that pipxu install west was performed, it would be great to be able to call e.g.:

pipxu inject west -r requirements.txt.

This is possible with pipx, but currently not implemented in pipxu.

Btw. this seems to be a workaround:

pipxu runpip west -- install -r requirements.txt

bulletmark commented 1 month ago

Note the first paragraph I said here which is exactly what I would reply here also. Sorry, I don't want to complicate the implementation by adding obscure combinations of options particularly when, as you point out, that operation can be done almost as trivially using runpip.

bulletmark commented 1 month ago

BTW, you could probably also just type pipxu inject west $(cat requirements.txt).

prismv commented 1 month ago

BTW, you could probably also just type pipxu inject west $(cat requirements.txt).

Thank you for your feedback.

In my given case requirement has consecutive requirements-* entries. So the most simple variant with cat might not work or only with multiple calls.

FYI I also tried uv cli commands. This was working out of the box.