Re: [Distutils] URL Structure of Packages URLs

2013-10-09 Thread holger krekel
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.

cheers,
holger

 On Oct 8, 2013, at 10:05 AM, Marius Gedminas mar...@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@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@python.org
 https://mail.python.org/mailman/listinfo/distutils-sig

___
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig


Re: [Distutils] URL Structure of Packages URLs

2013-10-09 Thread Barry Warsaw
On Oct 08, 2013, at 10:44 AM, 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 :/

Maybe that URL should be given on the PyPI page for the package?

The current watch patterns are used overwhelmingly probably because they are
easily discovered.

E.g. Copy the URL from the PyPI page, and patternize it.

-Barry


signature.asc
Description: PGP signature
___
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig


Re: [Distutils] URL Structure of Packages URLs

2013-10-09 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 10/08/2013 09:19 AM, 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.

Any such change should leave behind rewrite rules which 301 to the new,
blest URLs.  #dontbreaktheweb and all that.


Tres.
- -- 
===
Tres Seaver  +1 540-429-0999  tsea...@palladion.com
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlJVpfAACgkQ+gerLs4ltQ6rhwCffZISAc+VDiqX5NQ/3ET9inJp
daAAmgNsHb/0vIVjSTMLrxEGT9S4yodT
=2TOU
-END PGP SIGNATURE-

___
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig