Provide an alternative PyPI url for Travis CI to install dependencies?

I want to set up Travis CI so that it can find Python dependencies on our own PyPI server.

I know I can put --extra-index-url option

in a requirements.txt file, but instead I would not encode the PyPI url in the requirements file, but rather leave generis.txt and specify the PyPI url for Travis only. Is it possible?

+3


source to share


1 answer


You can add custom installation commands like:



install: pip install -i http://d.pypi.python.org/simple -r requirements.txt

      

+1


source







All Articles