Avoid git clone while pip install from a private repo in requirements file

Viewed 323

requirements.txt file format:

package1
package2
git+https://github.com/dummy-org/dummy-repo.git@v1.0

I created a zip (dummy-repo-1.0.zip) of the private repo package using:

pip download git+https://github.com/dummy-org/dummy-repo.git@v1.0

And I am able to install the package via pip install dummy-repo-1.0.zip

When I try to install all the packages using pip install -r requirements.txt, every time it tries to clone the private repo. I want to skip this step.

Is it possible to avoid this cloning and use offline bundle or already installed package (from pip cache) for private repos?

1 Answers

In my case, it worked when I changed the requirements.txt, and replaced the URL with the path to the. Zip file. But this was a lang time ago, I am not Sure if it still works...

Related