From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla at busybox.net Date: Fri, 03 Mar 2017 19:44:10 +0000 Subject: [Buildroot] [Bug 9706] New: Can't download newer revisions of package from PyPI Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net https://bugs.busybox.net/show_bug.cgi?id=9706 Bug ID: 9706 Summary: Can't download newer revisions of package from PyPI Product: buildroot Version: 2016.11 Hardware: All OS: Linux Status: NEW Severity: normal Priority: P5 Component: Outdated package Assignee: unassigned at buildroot.uclibc.org Reporter: jem at kamama.com CC: buildroot at uclibc.org Target Milestone: --- Newer versions of python projects (in my case I was attempting to update supervisor to supervisor-3.3.1) don't download with the URL scheme currently used. Not sure if this is only a supervisor problem or might affect other modules from PyPI. Recommendation from PyPI is to use their API API documentation is at https://warehouse.pypa.io/api-reference/legacy/ It looks like buildroot should first make a request against /simple/supervisor/ and fetch links from the response. For example if I hit https://pypi.python.org/simple/supervisor/ I get: Links for supervisor

Links for supervisor

supervisor-3.0a7.tar.gz
supervisor-3.3.0.tar.gz
supervisor-3.0a9.tar.gz
...etc. -- You are receiving this mail because: You are on the CC list for the bug. From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla at busybox.net Date: Fri, 03 Mar 2017 22:00:23 +0000 Subject: [Buildroot] [Bug 9706] Can't download newer revisions of package from PyPI In-Reply-To: References: Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net https://bugs.busybox.net/show_bug.cgi?id=9706 Arnout Vandecappelle changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #1 from Arnout Vandecappelle --- When bumping the package, SUPERVISOR_SITE should change from the current http://pypi.python.org/packages/source/s/supervisor to https://pypi.python.org/packages/44/80/d28047d120bfcc8158b4e41127706731ee6a3419c661e0a858fb0e7c4b2d but it's not unusual for the _SITE to change when the version is bumped. I don't see how this is a bug, so I'm closing as invalid. If you disagree, feel free to reopen. PS if you do bump the package, don't forget to send the patch to the Buildroot mailing list for upstream inclusion. -- You are receiving this mail because: You are on the CC list for the bug. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yegor Yefremov Date: Fri, 3 Mar 2017 23:20:15 +0100 Subject: [Buildroot] [Bug 9706] Can't download newer revisions of package from PyPI In-Reply-To: References: Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hi Arnout, On Fri, Mar 3, 2017 at 11:00 PM, wrote: > https://bugs.busybox.net/show_bug.cgi?id=9706 > > Arnout Vandecappelle changed: > > What |Removed |Added > ---------------------------------------------------------------------------- > Status|NEW |RESOLVED > Resolution|--- |INVALID > > --- Comment #1 from Arnout Vandecappelle --- > When bumping the package, SUPERVISOR_SITE should change from the current > > http://pypi.python.org/packages/source/s/supervisor > > to > > https://pypi.python.org/packages/44/80/d28047d120bfcc8158b4e41127706731ee6a3419c661e0a858fb0e7c4b2d > > but it's not unusual for the _SITE to change when the version is bumped. > > I don't see how this is a bug, so I'm closing as invalid. If you disagree, feel > free to reopen. > > PS if you do bump the package, don't forget to send the patch to the Buildroot > mailing list for upstream inclusion. I've posted an RFC [1] concerning this issue. [1] https://patchwork.ozlabs.org/patch/708384/ Yegor From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla at busybox.net Date: Fri, 03 Mar 2017 22:26:56 +0000 Subject: [Buildroot] [Bug 9706] Can't download newer revisions of package from PyPI In-Reply-To: References: Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net https://bugs.busybox.net/show_bug.cgi?id=9706 --- Comment #2 from Arnout Vandecappelle --- Correction, the URL for version 3.3.1 is: https://pypi.python.org/packages/80/37/964c0d53cbd328796b1aeb7abea4c0f7b0e8c7197ea9b0b9967b7d004def -- You are receiving this mail because: You are on the CC list for the bug. From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla at busybox.net Date: Fri, 03 Mar 2017 23:12:02 +0000 Subject: [Buildroot] [Bug 9706] Can't download newer revisions of package from PyPI In-Reply-To: References: Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net https://bugs.busybox.net/show_bug.cgi?id=9706 --- Comment #3 from J. Eric Mason --- Semantically buildroot could (I won't go as far to say should yet) be using the simple repository protocol to find download URLs and hashes for a package generically https://www.python.org/dev/peps/pep-0503/ as the URLs could change over time. If I have the bandwidth I'll see if I can propose a changelist to do this resolution so this wouldn't be a problem in the future. -- You are receiving this mail because: You are on the CC list for the bug. From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla at busybox.net Date: Sat, 04 Mar 2017 10:44:24 +0000 Subject: [Buildroot] [Bug 9706] Can't download newer revisions of package from PyPI In-Reply-To: References: Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net https://bugs.busybox.net/show_bug.cgi?id=9706 --- Comment #4 from Thomas Petazzoni --- I think what you're proposing is exactly what Yegor Yefremov has implemented in https://patchwork.ozlabs.org/patch/708384/. -- You are receiving this mail because: You are on the CC list for the bug.