[Distutils] URL Structure of Packages URLs
holger at merlinux.eu
Wed Oct 9 17:46:50 CEST 2013
On Tue, Oct 08, 2013 at 10:44 -0400, Donald Stufft wrote:
> Hrm, I'm assuming these require a file listing at
> /packages/source/D/ too.
> Of course these files should probably be using the simple API and
> not the packages url directly :/
Indeed. Why not watch a project's simple index instead? It might give
false updates if a project is in non-pypi hosting mode and a new
description is registered (this could change links in the simple page).
But those should be rare i'd think.
Watching such distribution-type specific URLs is unreliable,
for example when a pypi maintainer change their distribution format
(e.g. to wheel which is kind of realistic in the mid-term). So a
change will need to happen in suchs cases, anyway.
> On Oct 8, 2013, at 10:05 AM, Marius Gedminas <marius at pov.lt> wrote:
> > On Tue, Oct 08, 2013 at 09:19:37AM -0400, Donald Stufft wrote:
> >> I was wondering if anyone was aware of anything that relies on
> >> the current structure of package urls, namely:
> >> /packages/source|any|etc/D/Django-1.0.tar.gz?
> >> I would like to change this but before I work up a concrete plan for
> >> people to comment on and discuss I'm trying to figure out what, if
> >> anything, depends on that current structure.
> > I've told Launchpad that it can look for new releases at URLs like
> > http://pypi.python.org/packages/source/g/gtimelog/gtimelog-*.tar.gz
> > (for a few projects, not just GTimeLog).
> > I'm not sure how Launchpad crawls those pages looking for releases; all
> > the documentation I could find in 5 minutes was this blog post:
> > http://blog.launchpad.net/cool-new-stuff/automatically-import-files-to-launchpad-using-product-release-finder
> > Some Debian packages have debian/watch files using similar URL patterns
> > to watch for new upstream releases showing up on PyPI. This mechanism
> > is documented at https://wiki.debian.org/debian/watch/. Here's
> > python-requests:
> > $ apt-get source python-requests
> > $ cat requests-1.1.0/debian/watch
> > version=3
> > http://pypi.python.org/packages/source/r/requests/requests-(.*)\.tar\.gz
> > HTH,
> > Marius Gedminas
> > --
> > Some people have told me they don't think a fat penguin really embodies the
> > grace of Linux, which just tells me they have never seen a angry penguin
> > charging at them in excess of 100mph. They'd be a lot more careful about what
> > they say if they had.
> > -- Linus Torvalds, announcing Linux v2.0
> > _______________________________________________
> > Distutils-SIG maillist - Distutils-SIG at python.org
> > https://mail.python.org/mailman/listinfo/distutils-sig
> Donald Stufft
> PGP: 0x6E3CBCE93372DCFA // 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA
> Distutils-SIG maillist - Distutils-SIG at python.org
More information about the Distutils-SIG