REPOSITORIES: How Can a Remote PyPi Repository Be Configured to Work as a Private PyPi Server?
Subject
This article will explain the correct configuration for a remote repository that points to a private PyPi server.
Description
If you will leave the Registry URL with the default – https://pypi.org
you will encounter issues when trying to fetch artifacts.
In order to configure a remote repository that points to a privately hosted PyPi server, you will need to configure both the URL
and the Registry URL
to point to the same location – the PyPi server address that you configured in your server. For example – if you configure your server to run with the address http://pypi-hosted:9091
, the configuration will be:
URL – http://pypi-hosted:9091
Registry URL – http://pypi-hosted:9091