How to upgrade a package on a local path without attempting to upgrade any dependency from the internet
Describe the bug
When I upgrade a local package pipx still attempts to connect to the internet and totally hangs when there is no internet.
How to reproduce
Via pipx I have installed a package mypack which sits locally on my machine, so it's package_or_url value is a path to a local directory.
Now I have modified the code of this package and I want to install the new version with pipx upgrade mypack.
Unfortunately the machine has only intermittent internet access, so when there is no internet access I still need to upgrade the local package. How can I do this?
Expected behavior When pipx cannot reach the internet, it only installs the local package. (If pipx cannot detect this itself a command line option could tell pipx not to try the internet.)
Does your local package contain dependencies that need to be installed from the internet?
I just tried with a local package that doesn't have any dependencies and it worked fine.