ecluse:ecluse-core
Safe HaskellNone
LanguageGHC2021

Ecluse.Core.Registry.PyPI.Publish

Description

PyPI mirror uploads bind archive metadata to the same verified distribution bytes.

Synopsis

Documentation

pypiPublishCodec :: ServicePresentation -> PublishCodec Source #

Read native target inventories and prepare one checked multipart upload per distribution.

publishRequest :: ServicePresentation -> Text -> Maybe ClientCredential -> MirrorUploadData PyPIUploadMetadata -> Either PublishFault Request Source #

Post verified bytes to the exact configured endpoint, presenting the credential as the store declares for writes. A credential needs a username only where that presentation sends it.

classifyPublish :: Int -> ByteString -> Either PublishFault () Source #

A duplicate-file response still requires the worker's independent target digest proof.