As a plugin writer, I'd like for auto-distribute to work with my distribution.
The Publication context manager support for auto-distribute only works with Distribution. Plugin can now have custom distribution models. At the very least, the code in exit() could be refactored and made more accessible to plugin writers.
def __exit__(self): self.update_distributions(): ... def update_distributions(model=Distribution): ....
Plugin writers could then do:
with Publication.create(..) as publication: publication.update_distributions(model=DockerDistribution):
Please register to edit this issue