1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00
Commit graph

679 commits

Author SHA1 Message Date
Marcus Smith
eeac39d10b develop branch is now 1.5.dev1 2013-06-29 21:20:33 -07:00
Donald Stufft
899d48021b Filter out binary Wheels for non Windows 2013-06-28 19:37:00 -04:00
Marcus Smith
4010c7e627 reduce false positive when platlib/purelib are symlinks of one other 2013-06-27 23:12:24 -07:00
Marcus Smith
6e32b21b04 correct wheel extension: '.whl' 2013-06-27 23:10:36 -07:00
Marcus Smith
fae0c02b60 Merge pull request #1013 from qwcode/wheel_req
have 'pip wheel' only be satisfied with setuptools (DONT MERGE)
2013-06-27 18:23:11 -07:00
Marcus Smith
fb397cd1ec have "pip wheel" only be satisfied by setuptools 2013-06-27 00:20:28 -07:00
y-p
42102e9dea unpack_file should use flatten=False for .whl files GH1011 2013-06-26 22:02:27 +03:00
Donald Stufft
cef37bbfd9 Add the --pre options to pip wheel and pip list 2013-06-24 13:40:04 -04:00
Donald Stufft
39d034af0f Add external//insecure options to wheel and list commands 2013-06-24 13:28:15 -04:00
Marcus Smith
d4c0454062 fix spelling of 'NotImplementedError' 2013-06-23 22:32:41 -07:00
Marcus Smith
fd99bd35a7 remove unnecessary patches since setuptools-0.8 will be py2/3 compatible 2013-06-19 17:24:10 -07:00
Marcus Smith
1a182cb819 force setuptools>=0.7.2 to uninstall distribute 2013-06-19 17:08:32 -07:00
Marcus Smith
81639adbdf revert distribute skip in py3 (commit fe09baa1a2) 2013-06-19 17:08:32 -07:00
Marcus Smith
f6bde1eff5 solution for uprading to setuptools-0.7.2 in py2 & py3 2013-06-19 17:08:31 -07:00
Marcus Smith
e0e19cc831 Merge pull request #1003 from qwcode/test_new_setuptools
support the new setuptools
2013-06-19 16:53:39 -07:00
Marcus Smith
c26b6de897 py3 sort fix 2013-06-19 15:53:53 -07:00
david
267c79df2e Fix #982 by using the effective user id on unix systems instead of depending on
getpass.getuser(). This is required because on some systems 'LOGNAME'
is not updated by sudo.
Signed-off-by: david <db@d1b.org>
2013-06-15 13:17:45 +10:00
Marcus Smith
ff1a79381a test changes due to virtualenv not using distribute 2013-06-13 22:43:26 -07:00
Marcus Smith
72f0ec9419 wheel is also supported now with setuptools>=0.7.2 2013-06-13 22:04:05 -07:00
Donald Stufft
a1341376d2 Enable --no-allow-insecure inside of a requirements.txt 2013-06-07 10:43:52 -04:00
Donald Stufft
fb24b3eaaa Change --allow-external to work per project and add --allow-all-external 2013-06-07 10:43:52 -04:00
Donald Stufft
d3638aa7a0 Change wording from "unsafe" to "insecure" 2013-06-07 10:43:52 -04:00
Donald Stufft
2731f06474 Default to allowing unsafe urls and allow disabling them via option 2013-06-07 10:43:52 -04:00
Donald Stufft
cc46cdc8b3 Differentiate between safe and unsafe urls where possible
* Links and HTMLPages know if they are "trusted"
* File Links know if they are safe or not
* A "Safe" file Link comes from a trusted Link/HTMLPage and has
  a hash allowing verification of the download
* Adds a --allow-unsafe PACKAGE argument to allow unsafe files on
  a per package basis
* Optimizes scraping external sites by short circuiting if
  the current trust rules won't allow using it's files anyways
2013-06-07 10:43:52 -04:00
Donald Stufft
9ccd5f0bb3 In accordance with PEP438 default to allowing external urls
* After one release has been made allowing external urls, future
  releases will disallow by default
2013-06-07 10:42:55 -04:00
Donald Stufft
0e1da584f4 Differentiate between internal and external links where possible
* By default ignore external links
* Add the ``--allow-external`` flag that enables external links
  globally
* Fallback to allowing all links if we cannot determine the
  API version of the parsed page
* Inform the user of ``--allow-external`` if nothing was found
  to install
2013-06-07 10:42:55 -04:00
Donald Stufft
75cef55df7 Do a check prior to returning HTMLPage that it is indeed html
Previously pip would check with a HEAD request if the url looked
like it contained an archive and skip the file. However this didn't
work if the url didn't look like an archive and instead just
redirected to an archive.

This will therefore, after the url has been fetched, inspect the
headers and look to see if the Content-Type is text/html.
2013-06-07 08:42:49 -04:00
Marcus Smith
60f8da5c41 4 more wheel tests 2013-06-06 19:11:43 -07:00
Donald Stufft
8344fb8d4e Merge pull request #973 from pypa/parse-html
Use html5lib to parse HTML instead of using regexs
2013-06-05 11:51:41 -07:00
Donald Stufft
be0c47f7aa Merge remote-tracking branch 'skwash/develop' into develop
Conflicts:
	pip/download.py
2013-06-02 22:31:14 -04:00
Donald Stufft
d76739559b Rewrite six dependency to import from pip.vendor.six instead of six
* It was determined that simply rewriting the imports was less
  invasive than patching sys.modules.
2013-06-02 20:07:10 -04:00
Donald Stufft
f350de4b74 Document the reasons why we are monkeypatching six into sys.modules 2013-06-02 11:31:50 -04:00
Donald Stufft
2eb43b25ab Use html5lib to parse HTML instead of using regexs
HTML is not a regular language and thus cannot be accurately parsed
with a regex. The regexs that pip had were gnarly, and required
multiple levels of them in order to "work".

Using html5lib instead of regexs makes the parsing step simpler,
better tested, and much more robust.

There is still some use of regex to parse html. Namely the hack
that looks for a <th> tag with a "rel" after it. This hack is
required to work inside of HTML comments so it cannot be parsed
as HTML.
2013-06-02 10:01:40 -04:00
Donald Stufft
cba45215b9 Vendor html5lib because regex are a terrible way to parse html 2013-06-02 09:01:43 -04:00
Carl Meyer
9b92e4d786 Don't copy to cache when we've already got a cached copy. 2013-05-30 18:25:19 -06:00
Carl Meyer
4b55015c29 Fix guessing content-type for already-downloaded file. 2013-05-30 18:25:19 -06:00
Carl Meyer
55c766dacb Better interaction between already-downloaded and already-cached. 2013-05-30 17:00:10 -06:00
Carl Meyer
b3a791223c Cached or already-downloaded files with bad hashes are ignored. 2013-05-30 17:00:10 -06:00
Carl Meyer
388d1b53a7 Refactor unpack_http_url. 2013-05-30 16:59:57 -06:00
Carl Meyer
fa81a41d0b Combine Git get_tag_revs and get_branch_revs into single get_refs method. 2013-05-29 16:40:34 -06:00
Carl Meyer
92e0dbbf4c Use git show-ref instead of git branch for better future-proofness.
Based on original patch by Anrs Hu.
2013-05-29 14:03:26 -06:00
Marcus Smith
28234e29d5 'pip search' xmlrpc changes in response to pypi changes, http://mail.python.org/pipermail/distutils-sig/2013-May/020888.html 2013-05-28 20:34:25 -07:00
Marcus Smith
6fd5e0eb7a --no-clean for 'pip wheel' 2013-05-24 17:11:15 -07:00
Marcus Smith
41fed83353 remove 'pip wheel --unpack-only' 2013-05-24 15:59:28 -07:00
Marcus Smith
7467f44abd have cleanup be in a finally after wheel building 2013-05-24 15:57:43 -07:00
Daniel Holth
460ced0374 wheel: make sure destination path exists 2013-05-23 22:42:03 -04:00
Marcus Smith
6042140a89 Merge pull request #948 from qwcode/global_build_cleanup
write pip delete marker into global build dir upon creation
2013-05-18 19:50:02 -07:00
Marcus Smith
66d8e7b8c7 write pip delete marker into global build dir upon creation 2013-05-18 18:05:25 -07:00
Marcus Smith
0994c1252d Merge pull request #937 from qwcode/ignore_reqs
don't install or build wheels for distribute in python 3
2013-05-16 20:47:06 -07:00
Marcus Smith
fe09baa1a2 don't install or build wheels for distribute in python3 2013-05-16 19:53:48 -07:00