Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    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

    Scheduled Pinned Locked Moved Support
    bugpypi
    5 Posts 3 Posters 60 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      ssuenaga_1020
      last edited by ssuenaga_1020

      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.

      1 Reply Last reply Reply Quote 0
      • jjonesJ Offline
        jjones inedo-engineer
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • S Offline
          ssuenaga_1020
          last edited by ssuenaga_1020

          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>
          
          1 Reply Last reply Reply Quote 0
          • jraschJ Offline
            jrasch inedo-engineer
            last edited by

            @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

            1 Reply Last reply Reply Quote 0
            • S Offline
              ssuenaga_1020
              last edited by

              That one works, thanks!

              1 Reply Last reply Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • 1 / 1
              • First post
                Last post
              Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation