aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/package_index.py
Commit message (Collapse)AuthorAgeFilesLines
* Merge (discarding b825c6440dc6)Jason R. Coombs2011-08-171-1/+1
|\ | | | | | | | | | | --HG-- branch : distribute extra : rebase_source : 5190d1f30b60efbc0cc70a96807c1b269abd1897
| * Remove extraneous 2nd argument in call to open_url, apparently intended toAlex Clark2011-08-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | issue a warning (looks like open_url takes an optional `warning` argument, but I couldn't get that to work either). Fixes #135. This fix is better than the status quo, but probably not as good as issuing a warning instead of failure. --HG-- branch : distribute extra : rebase_source : 39889bf4dd21abbd57207bfafe6f8bad68b1e46f
* | Include url in warning when processing URL. Fixes #135.Jason R. Coombs2011-08-171-1/+1
|/ | | | | | --HG-- branch : distribute extra : rebase_source : 1241e1cb548adad562fcf61ce33538712a64aaed
* make sure we don't use getheaders(). get() works for all py versions - fixes ↵0.6.19Tarek Ziade2011-06-021-1/+1
| | | | | | | | #206 --HG-- branch : distribute extra : rebase_source : c9e414a0642dd5b2222dd3fc4aa1b11a442e48a1
* Tolerate responses with multiple Content-Length headers - fixes #196Tarek Ziade2011-05-161-1/+3
| | | | | | --HG-- branch : distribute extra : rebase_source : b0f0f73fd59017dd9a9bb6e58b2a1fd9e5773dd2
* Fixing #200agroszer2011-04-151-4/+13
| | | | | | --HG-- branch : distribute extra : rebase_source : 4446e76a0bcf2e968abce2020569aecbaab1df01
* We need to make sure that the result is always a str, even if the result is ↵Lennart Regebro2010-11-221-2/+6
| | | | | | | | | | an error response. Otherwise you get an error when trying to pattern match in line 206. --HG-- branch : distribute extra : rebase_source : dc5fe8b1365544fc763414b67227cc78dc1f8524
* Only do the decoding if there is something to decode.Lennart Regebro2010-07-241-1/+1
| | | | | | --HG-- branch : distribute extra : rebase_source : 6510b361ce8885f536a3babfc66a7ebdfaa25b2d
* Importing url2pathname from the correct place, so 2to3 can do it's job.Lennart Regebro2010-07-241-3/+3
| | | | | | --HG-- branch : distribute extra : rebase_source : 43178821d2b4776dbfdf5ad9493bca8dc401b048
* merging changes relates #142Tarek Ziade2010-07-031-4/+11
|\ | | | | | | | | | | --HG-- branch : distribute extra : rebase_source : e912f048dcfe28a5a7a17aca89bab427e15924ff
| * BUG: Fix #142 - easy_install ignore locally installed packages.David Cournapeau2010-05-201-4/+11
| | | | | | | | | | | | | | | | Backport from setuptools 0.6c10. --HG-- branch : distribute extra : rebase_source : d06cbdae906a725410d4993d9e1a631e2acac345
* | fixed issue 163 : don't include md5 when comparing two distributions, and scanChristophe Combelles2010-05-191-2/+2
|/ | | | | | | | index links before external page links. --HG-- branch : distribute extra : rebase_source : d190057280e7cb27317eb4aa40e75f1c851ed6e5
* malformed urls in 2.7 are catched now - fixes #160Tarek Ziade2010-05-191-1/+4
| | | | | | --HG-- branch : distribute extra : rebase_source : de334e49e876c8ea88f738e03995a461ea669879
* Introduced a socket timeout of 15 seconds on url openings fixes #48tarek2009-12-191-0/+15
| | | | | | --HG-- branch : distribute extra : rebase_source : d4e3831771aa049e71d64f22e315352fa8906dd1
* Issue 21: Allow PackageIndex.open_url to gracefully handle all cases of a ↵Hanno Schlichting2009-10-241-0/+6
| | | | | | | | httplib.HTTPException instead of just InvalidURL and BadStatusLine. --HG-- branch : distribute extra : rebase_source : 24986ae1074b564fbd8c34a227265afd3b90ebce
* Changed file() calls to open() callsagronholm2009-09-271-1/+1
| | | | | | --HG-- branch : distribute extra : rebase_source : a2567f3f28d896dd0abbbed8a2626cc4ecb3e44e
* Only decode HTML pages in 3.x.Martin v. Löwis2009-09-131-2/+3
| | | | | | --HG-- branch : distribute extra : rebase_source : 58a286fe297947272398fc9ddd8f50594f54d4ae
* 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