[Distutils] URL Structure of Packages URLs

Marius Gedminas marius at pov.lt
Tue Oct 8 16:05:54 CEST 2013


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: Digital signature
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20131008/a9f7cfe9/attachment.sig>


More information about the Distutils-SIG mailing list