Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

PyPI upload endpoint



  • When I click the "Add Package" button for my PyPI feed, the "Publish with cURL (command line)" button displays information for twine instead of curl.

    I found that I can change the button's target URL from "push" to "curl", and curl instructions appear. However, it says to use a URL that gives a 404, e.g. https://myproget/pypi/myfeed/upload.

    I can see that the manual upload button POSTs to /pypi-packages/add-package/upload?feedId=123. Are we supposed to use that endpoint instead? I haven't been able to get it to work with curl.


  • inedo-engineer

    Hello,

    Yes, you are correct this will need to be changed to reflect the curl command line which should be:

    http://{proget}/pypi/pypi/upload --user <user>:<password> --upload-file <file-path>
    

    Thanks,
    Jason



  • That URL isn't working for me either. It says "There is no feed with that name in ProGet."

    Here's what the UI tells me to use for my PyPI feed called "Python", which gives me "Endpoint not found":

    curl https://{proget}/pypi/Python/upload --user <user>:<password> --upload-file <file-path>
    

  • inedo-engineer

    @ssuenaga_1020 said in PyPI upload endpoint:

    curl https://{proget}/pypi/Python/upload --user <user>:<password> --upload-file <file-path>

    Sorry about that, it appears the actual upload URL is:

    curl https://{proget}/pypi/Python/upload/<packageName-version.tar.gz> --user <user>:<password> --upload-file <file-path>

    I will update the documentation to reflect this on both the website and in the software.

    Thanks,
    -John



  • That one works, thanks!


Log in to reply
 

Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation