Project

Profile

Help

Story #6929

closed

Story #6875: [Meta] Integrate with Bandersnatch

As a User, I can configure Pulp Python remotes using a Bandersnatch config file

Added by dalley over 4 years ago. Updated almost 4 years ago.

Status:
MODIFIED
Priority:
Normal
Assignee:
Sprint/Milestone:
-
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
3.0.0
Target Release - Python:
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

The Bandersnatch tool for creating local mirrors of PyPI has a straightforwards config file format which is much more user friendly compared to creating a complex JSON configuration object as you need to do with Pulp. It would be ideal if Pulp was able to parse these config files as-is and create a PythonRemote from them.

https://bandersnatch.readthedocs.io/en/latest/filtering_configuration.html

Bandersnatch's existing configuration parsing code should be used to parse the config files (we should not do parsing ourselves), and the settings which are relevant to Pulp should be stored in some appropriate format on the PythonRemote object.

Not all fields able to be expressed in the Bandersnatch config file are applicable to Pulp - they should be ignored. Examples of this include (but not limited to):

Regex filtering support should also likely be ignored for the initial implementation.

In keeping with this change, we will likely want to make changes to the schema and database representation of PythonRemote to better match the Bandersnatch representation, such as moving from a list of dicts for "project specification" to a list of strings.


Related issues

Related to Python Support - Story #4690: Implement package locking / digest specificationCLOSED - CURRENTRELEASE

Actions

Also available in: Atom PDF