I've pip installed some python packages from a git repository into a venv using the command:
python -m pip install git+ssh://git@git.privateurl.com/repos/my-private-package.git
Now, when i run pip freeze, the package appears like a 3rd party package like my-private-package=0.2.1 rather than of the form:
my-private-package @ git+ssh://git@git.privateurl.com/repos/my-private-package.git
How can I force it to appear as the latter so that when i generate the requirements.txt it is easily shared to other colleagues who just have to run python -m pip install -r requirements.txt ?
I've tried different python versions (3.6, 3.7, 3.8). I'm using the latest pip version (21.1.2) and I've tried Ubuntu and Mac and still reproduce the issue. The oddest thing is a colleague can run the same commands and get the right results.