[Catalog-sig] Performing exact matches in Cheeseshop URLs
Phillip J. Eby
pje at telecommunity.com
Mon Apr 9 20:00:34 CEST 2007
At 09:42 PM 4/9/2007 +1000, Richard Jones wrote:
>On Mon, 9 Apr 2007, Martin v. Löwis wrote:
> > Currently, an URL like
> > http://cheeseshop.python.org/pypi/PyXML
> > will match all packages that have PyXML in their name.
> > Should that be changed to only listing packages which
> > have PyXML as their exact name? (it would still give
> > two entries, as there are two visible releases of
> > that package).
>I'd say it should be exact.
>Currently the EasyInstall doc says "Individual project version pages' URLs
>must be of the form base/projectname/version, where base is the package
>index's base URL." But it's not clear whether it would use the current URL
>behaviour as a form of searching. Phillip?
Either behavior is acceptable to easy_install. When it encounters links
that point to any "base/projectname/version", it simply squirrels the
information away in its memory cache, and will spider the listed pages if
it needs URLs for "projectname". So it's perfectly safe to have any number
of project pages linked from a base/projectname/ page, for any number of
projects. easy_install only cares that base/projectname/ *include* links
to available pages for that project name.
More information about the Catalog-sig