kraken-build / kraken

The Kraken build system.
https://kraken-build.github.io/kraken/
28 stars 12 forks source link

Enable verbose output for `twine_upload()` to print error response from the index #165

Closed NiklasRosenstein closed 10 months ago

NiklasRosenstein commented 10 months ago

With the --verbose flag it logs the response when the upload fails:

Uploading abc-0.1.0-py3-none-any.whl
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.8/3.8 kB • 00:00 • ?
INFO     Response from https://acme.jfrog.io/artifactory/api/pypi/ext-pypi-release:                                                                
         403                                                                                                                                             
INFO     {                                                                                                                                               
           "errors" : [ {                                                                                                                                
             "status" : 403,                                                                                                                             
             "message" : "Login has failed. Due to Incorrect username/password or locked user."                                                          
           } ]                                                                                                                                           
         }                                                                                                                                               
ERROR    HTTPError: 403 Forbidden from https://acme.jfrog.io/artifactory/api/pypi/ext-pypi-release