aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/package_index.py
Commit message (Collapse)AuthorAgeFilesLines
...
* | Convert HTML pages to text.Martin v. Löwis2009-09-131-0/+2
| | | | | | | | | | | | --HG-- branch : distribute extra : rebase_source : 9ab9cc8b84da2be50c520cd6f23efb15b8744bd9
* | Shortcut User-agent computation, as 2to3 won'tMartin v. Löwis2009-09-111-1/+1
| | | | | | | | | | | | | | | | update urllib2.__version__ correctly. --HG-- branch : distribute extra : rebase_source : 9035aa6fb13225181f7ce22429efa91c771247a6
* | fixed #20 - catching invalid URL error from httplibtarek2009-08-281-1/+1
| | | | | | | | | | | | --HG-- branch : distribute extra : rebase_source : 6c6a92f65f6ac2d6d071ce525d0ef3e41167d59e
* | fixed #16 and #18: BadStatusLine and ValueError in package_index.urlopentarek2009-08-261-1/+16
| | | | | | | | | | | | --HG-- branch : distribute extra : rebase_source : 6159cf23c0dc4effd40b525066266eefd292b96e
* | The User-Agent is also changed to Distributetarek2009-07-211-2/+2
| | | | | | | | | | | | --HG-- branch : distribute extra : rebase_source : 7a440abb08d1202a09ea2a0e46cac2568df2c759
* | Apply patch from pjenvey. Closes #3.Hanno Schlichting2009-07-161-1/+3
|/ | | | | | --HG-- branch : distribute extra : rebase_source : 3a61d0692c74559b140c179dcc5f4ac4905bb982
* Fix for http://bugs.python.org/setuptools/issue29 (backport from trunk)PJ Eby2008-08-211-1/+1
| | | | | | --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4065953
* Fix for http://bugs.python.org/setuptools/issue5 (backport from trunk)PJ Eby2008-08-211-4/+4
| | | | | | --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4065945
* Fix for http://bugs.python.org/setuptools/issue7 (backport from trunk)PJ Eby2008-08-211-2/+2
| | | | | | --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4065943
* The default ``--index-url`` is now ``http://pypi.python.org/simple``, toPJ Eby2007-09-041-1/+1
| | | | | | | | | use the Python Package Index's new simpler (and faster!) REST API. (backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4057965
* ``ftp:`` download URLs now work correctly. (backport from trunk)PJ Eby2007-08-241-2/+1
| | | | | | --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4057371
* Backport fixes and doc updates; prep for 0.6c6 releasePJ Eby2007-05-311-4/+44
| | | | | | --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4055712
* Changed setuptools.package_index.PackageIndex.open_url to include theJim Fulton2007-03-091-1/+3
| | | | | | | | url in the exception. --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4054241
* Added ``--local-snapshots-ok`` flag, to allow building eggs fromPJ Eby2007-02-231-14/+14
| | | | | | | | projects installed using ``setup.py develop``. (backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4053877
* EasyInstall no longer aborts the installation process if a URL it wants toPJ Eby2007-01-241-5/+5
| | | | | | | | | | retrieve can't be downloaded, unless the URL is an actual package download. Instead, it issues a warning and tries to keep going. (backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4053542
* Add Basic Auth support for http URLs with embedded credentials. If anPJ Eby2006-12-301-3/+44
| | | | | | | | | authenticated page contains links to the same protocol and host, those links should inherit the same credentials. (backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4053203
* Removed all special support for Sourceforge mirrors, as Sourceforge'sPJ Eby2006-12-291-99/+17
| | | | | | | | | mirror system now works well for non-browser downloads. (backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4053178
* Allow explicit selection of Sourceforge mirror(s) with ``--sf-mirror``, andPJ Eby2006-09-271-32/+73
| | | | | | | | | further refine download/retry algorithm. (backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4052013
* Fixed SF downloads aborting when a SF mirror returns an HTML page when itPJ Eby2006-09-251-22/+22
| | | | | | | | | | should've returned a 404. Fall back to ``sf-mirrors.telecommunity.com`` round-robin address for SF mirrors if ``dl.sourceforge.net`` doesn't work. (backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4052004
* Backport PyPI regex change.PJ Eby2006-07-201-2/+2
| | | | | | --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4050735
* EasyInstall now includes setuptools version information in thePJ Eby2006-07-201-6/+6
| | | | | | | | ``User-Agent`` string sent to websites it visits. (backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4050733
* Suppressed warning message about possibly-misspelled project name, if an eggPJ Eby2006-07-111-13/+13
| | | | | | | | | or link for that project name has already been seen. (backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4050581
* Reduce screenscraping required for a package index. Homepage andPJ Eby2006-07-111-25/+66
| | | | | | | | | | | | download URLs can now be marked with 'rel="download"' and 'rel="homepage"' respectively, and the 'Index of Packages' string is no longer required. Since PyPI doesn't yet support rel="" attributes, the old "<th>"-matching code remains, as does the MD5 scraping. (backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4050557
* Allow ``file://`` URLs to be used as a package index. URLs that refer toPJ Eby2006-07-101-28/+28
| | | | | | | | | | directories will use an internally-generated directory listing if there is no ``index.html`` file in the directory. (backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4050555
* Fix not recognizing HTML 404 pages from package indexes.PJ Eby2006-07-101-2/+2
| | | | | | | | (backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4050552
* Fix ``ftp://`` directory listing URLs from causing a crash when used inPJ Eby2006-06-201-1/+1
| | | | | | | | | the "Home page" or "Download URL" slots on PyPI. (merged from the trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4047051
* Better ambiguity management: accept #egg name/version even if processingPJ Eby2006-05-121-7/+7
| | | | | | | | | | what appears to be a correctly-named distutils file, and ignore .egg files with no '-', since valid Python .egg files always have a version number (but Scheme eggs often don't). --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4045984
* Ignore bdist_dumb distributions when looking at download URLsPJ Eby2006-04-211-7/+7
| | | | | | --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4045627
* Backport support for file:// directory URLs in --find-links to 0.6PJ Eby2006-04-191-7/+7
| | | | | | | | branch. --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4045556
* Added automatic retry for Sourceforge mirrors. The new download process isPJ Eby2006-04-091-9/+50
| | | | | | | | | | to first just try dl.sourceforge.net, then randomly select mirror IPs and remove ones that fail, until something works. The removed IPs stay removed for the remainder of the run. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4045219
* Fall back to a reasonable default Sourceforge address if the machine isPJ Eby2006-03-281-5/+5
| | | | | | | | unable to obtain the mirror IP list via DNS. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4043413
* Fix a problem with fetch() method backward compatibility.PJ Eby2006-03-171-1/+1
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4043122
* Don't recurse into subdirectories when scanning --find-linksPJ Eby2006-03-031-1/+1
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4042822
* The ``--find-links`` option previously scanned all supplied URLs andPJ Eby2006-02-081-49/+49
| | | | | | | | | | | | directories as early as possible, but now only directories and direct archive links are scanned immediately. URLs are not retrieved unless a package search was already going to go online due to a package not being available locally, or due to the use of the ``--update`` or ``-U`` option. Also, fixed the ``develop`` command ignoring ``--find-links``. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4042262
* The ``--always-copy`` option now skips "system" and "development" eggsPJ Eby2006-02-071-14/+55
| | | | | | | | | | | since they can't be reliably copied. Note that this may cause EasyInstall to choose an older version of a package than what you expected, or it may cause downloading and installation of a fresh version of what's already installed. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4042260
* Randomly select a SourceForge mirror IP for each download, to workPJ Eby2006-01-231-6/+16
| | | | | | | | | around too-aggressive DNS caches on some platforms, that could otherwise result in a stuck bad IP. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4042156
* Scrape-proof Sourceforge mirror processing!PJ Eby2006-01-171-40/+60
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4042088
* Fix editing error (reported by Ian Bicking).PJ Eby2006-01-171-1/+1
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4042087
* More sourceforge changes. :(PJ Eby2006-01-171-1/+1
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4042086
* EasyInstall can now download bare ``.py`` files and wrap them in an egg,PJ Eby2006-01-101-31/+83
| | | | | | | | | | | | as long as you include an ``#egg=name-version`` suffix on the URL, or if the ``.py`` file is listed as the "Download URL" on the project's PyPI page. This allows third parties to "package" trivial Python modules just by linking to them (e.g. from within their own PyPI page or download links page). --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041995
* PyPI searches now use the exact spelling of requirements specified onPJ Eby2006-01-071-6/+6
| | | | | | | | | | | the command line or in a project's ``install_requires``. Previously, a normalized form of the name was used, which could lead to unnecessary full-index searches when a project's name had an underscore (``_``) in it. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041942
* 0.6a8 final.PJ Eby2005-11-161-1/+1
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041459
* Update for SourceForge's changed mirror page formatsPJ Eby2005-11-161-7/+7
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041458
* Reduce the number of redundant host blocking warnings by notPJ Eby2005-11-041-1/+1
| | | | | | | | retrying the same previously-blocked URLs. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041395
* Added "--allow-hosts" option to restrict downloading and spidering toPJ Eby2005-10-191-22/+22
| | | | | | | | a specified list of server glob patterns. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041266
* Fix a bug parsing #egg links reported by Ben Bangert on the distutils-sig.PJ Eby2005-09-241-1/+1
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041251
* Correctly handle URL fragments in --find-links.PJ Eby2005-09-141-1/+1
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041241
* Implemented md5 validation for PyPI and for URLs with a "#md5=..." anchor.PJ Eby2005-08-221-30/+30
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041219
* Document the "Environment" class, and simplify its API.PJ Eby2005-08-141-2/+2
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041194
* Fix bugs reported by Ian Bicking, Walter Doerwald, and Vincenzo Di Massa.PJ Eby2005-08-111-3/+3
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041189