On 24 Jul 2018, at 14:31, Jason R. Coombs wrote:
Good thoughts Florian.
Thinking about devpi as a cache, there's one important use-case that I'm not sure a cache would solve, and that's having an offline replica... something a developer (or deployment environment) could use when isolated from the network, such as during a PyPI outage or when developing on the plane or similar. Having a fully-functional replica of package index that doesn't require hitting the upstream servers is an important feature of devpi.
Yes, that is an important feature and currently there are some issues with that which I found. 1. The list of names for projects on mirrors is only kept in memory and is lost on restart, causing issues for offline mode. 2. There is no list of currently mirrored projects, so it's not possible to list them. 3. Removing a mirror doesn't remove it's downloaded files and because of 2. it can't be fixed at the moment.
Regards, Florian Schulze