DiamondLightSource / python-copier-template

Diamond's opinionated copier template for pure Python projects managed by pip
Apache License 2.0
5 stars 3 forks source link

PyPI publishing broken #210

Closed coretl closed 2 weeks ago

coretl commented 3 weeks ago

It now gives:

ERROR    HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/        
         Could not verify the uploaded artifact using the included attestation: 
         Verification failed: 0 of 2 policies succeeded    

Which I think is because of https://github.com/pypa/gh-action-pypi-publish/discussions/255#discussioncomment-10630881

Fix is to add:

   with:
     attestations: false

to the PyPI action until they have made it work in reusable workflows: https://github.com/pypi/warehouse/issues/11096

coretl commented 2 weeks ago

Fixed by #212