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

219 commits

Author SHA1 Message Date
Donald Stufft
1aff8f53df Default to disallowing external and insecurely hosted files 2013-07-14 12:52:32 -04:00
Marcus Smith
b1f014612b deprecate pip bundle and support for installing pybundle files 2013-07-13 16:15:30 -07:00
Donald Stufft
8cef363327 --pre flag should affect the finder and not the requirements
Storing the --pre flag on the finder enables easily being able
to have it affect all package discoveries made with that finder.
The previous method of passing it into the InstallRequirement
meant that only top level dependencies were controlled by
--pre
2013-07-11 12:28:15 -04:00
Marcus Smith
b914ab9b32 'pip list' should list pip and setuptools 2013-07-05 21:59:56 -07:00
Marcus Smith
fb397cd1ec have "pip wheel" only be satisfied by setuptools 2013-06-27 00:20:28 -07: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
81639adbdf revert distribute skip in py3 (commit fe09baa1a2) 2013-06-19 17:08:32 -07: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
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
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
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
Marcus Smith
fe09baa1a2 don't install or build wheels for distribute in python3 2013-05-16 19:53:48 -07:00
Marcus Smith
2c14940a6f deal with pre-existing build dirs 2013-04-20 11:24:43 -07:00
Marcus Smith
acc917269a Merge pull request #903 from qwcode/home_lib
improve method for getting home scheme purelib
2013-04-19 18:38:12 -07:00
Erik M. Bray
8e2c64ca4f 'irregardless', if it's a word at all, means the opposite of how it's meant here. 2013-04-19 17:30:56 -04:00
Marcus Smith
fd933a93dd improve method for getting home scheme purelib 2013-04-18 22:38:56 -07:00
Marcus Smith
6e2bfe8323 remove python 2.5 logic 2013-04-17 22:50:22 -07:00
Marcus Smith
f1fb4b4fda wheel requirement checks with tests 2013-04-05 14:21:11 -07:00
Daniel Holth
0ea48dcf5a check for proper distribute when using wheels 2013-04-05 11:16:03 -07:00
Marcus Smith
c9d3ee59f0 update usage patterns for 'pip wheel' 2013-04-05 11:02:15 -07:00
Marcus Smith
494e1759d4 wheel doc updates 2013-03-17 19:58:32 -07:00
Marcus Smith
07c48ea657 set the help order of 'wheel' 2013-03-15 23:58:27 -07:00
Marcus Smith
13b023e530 move wheel help to class doc string 2013-03-15 23:56:46 -07:00
Marcus Smith
00fa9bea96 merge with develop 2013-03-15 23:46:46 -07:00
Marcus Smith
e4b5d3d75e update docs and help for new pre-release logic 2013-03-11 21:56:36 -07:00
Donald Stufft
4d5c5f8f97 Only install stable releases by default
* Adds the --pre flag to pip install to specify that you wish
  to install pre-releases
* If the version spec contains any pre-releases then continue to
  install pre-releases
2013-03-09 10:27:19 -05:00
Marcus Smith
039e1fc1ed have 'pip search' use https index url 2013-02-17 22:49:40 -08:00
Jannis Leidel
8a4458bf56 Fixed a whole bunch of cosmetic problems, mostly to adhere to PEP8. 2013-02-16 19:02:41 +01:00
Jannis Leidel
7db3d03e1a Moved the command description into the command class docstring to follow Python best practices. 2013-02-16 19:00:29 +01:00
socketubs
68353cbc5a list command now show ascending ordered list 2013-02-12 18:16:11 +01:00
Georgi Valkov
42919f9913 manual sorting of commands and summaries
commands.get_summaries() will now yield instead of returning a list.
2013-02-12 23:23:40 +02:00
Marcus Smith
354a75033c wheel doc update 2013-02-02 23:18:40 -08:00
Marcus Smith
8659f3d6ab wheel cli fixes 2013-02-02 22:56:32 -08:00
Marcus Smith
cabd1d5f80 merge with pypa/pip/develop 2013-02-02 22:40:30 -08:00
Marcus Smith
68d983d69a update docs with new build dir 2013-01-25 23:08:29 -08:00
Marcus Smith
ab9ea197bd improved docs and cli help 2013-01-18 13:25:15 -08:00
Marcus Smith
c49f7e0fb2 from '--editables' to --editable' and some minor formatting 2012-12-19 22:08:56 -08:00
Marcus Smith
483389bd1d pip list option help updates 2012-12-15 23:31:39 -08:00
Marcus Smith
eb211b2d3a --editables option for 'pip list' 2012-12-15 23:23:20 -08:00
Marcus Smith
1d94d9b8ed exclude editables for outdated/uptodate checks 2012-12-15 22:52:17 -08:00
Marcus Smith
7e9fb6f4ab compare using parsed versions; use get_installed_distributions wrapper; use the dist objects you already have 2012-12-15 20:56:29 -08:00
Marcus Smith
c2b9d9fa60 have list and install commands share the index options 2012-12-15 20:26:21 -08:00
Marcus Smith
49bc592bf2 add list command to registry 2012-12-15 20:23:55 -08:00
Rafael Caricio
c862877ccf Change tests to use mock instead of pytz. 2012-12-15 19:42:29 -08:00
Rafael Caricio
be1083a06c Some fixes after @carljim review. 2012-12-15 19:42:29 -08:00
Rafael Caricio
29972a1b3a Add the --uptodate flag in the list command. 2012-12-15 19:42:28 -08:00
Rafael Caricio
5a02b6674e Basic behaviour of the list command. 2012-12-15 19:42:28 -08:00
Rafael Caricio
0267e8a684 Modifies the outdated command to list command. 2012-12-15 19:42:28 -08:00
Rafael Caricio
ff24b578ba Make the test pass. 2012-12-15 19:42:28 -08:00
Rafael Caricio
8682dfe644 Remove blank spaces. 2012-12-15 19:42:28 -08:00
Miguel Araujo Perez
873d3bc34c Checking requirements before adding them to installations 2012-12-15 19:42:28 -08:00
Miguel Araujo Perez
8111bbb550 Updating pip outdated to use PackageFinder instead. Adding extra options like '--index-url' or '--find-links'. Changing version comparison to use > not !=
All work done here is based on @carljm suggestions made in pull request #235, so that pip outdated gets merged into master asap.
2012-12-15 19:42:28 -08:00
Dmitry Gladkov
91106054ca add outdated pip command 2012-12-15 19:42:28 -08:00
Georgi Valkov
b26cdee1e6 move command options before general options
Add a new base parser class 'CustomOptionParser' that provides the
'insert_option_group(idx, *, **)' method for inserting an option group
at a specific position.
2012-12-12 15:06:05 +02:00
Georgi Valkov
416ab39519 'Command Options' for the show command 2012-12-10 03:30:17 +02:00
Georgi Valkov
8b1836b401 'Command Options' for the uninstall command 2012-12-10 03:30:17 +02:00
Georgi Valkov
8f00079a4b 'Command Options' for the zip command 2012-12-10 03:30:17 +02:00
Georgi Valkov
6d8b55a39b 'Command Options' for the search command 2012-12-10 03:30:12 +02:00
Georgi Valkov
192f1552bc 'Command Options' for the freeze command 2012-12-10 03:24:48 +02:00
Georgi Valkov
b34feacbf9 add the Command.gen_opts option group
Note that commands still have to add the option group to the parser
once they populate it with options (self.parser.add_option_group).
2012-12-10 03:22:28 +02:00
Georgi Valkov
2c09666c31 split install options into 'Command Options' and 'Package Index Options' 2012-12-10 03:14:39 +02:00
Georgi Valkov
715c7eff71 fix error output
`pip help <misspelled>` should return the same error message as `pip
<misspelled>`, namely:

  ERROR: unknown command "enstall" - maybe you meant "install"
2012-12-06 17:25:40 +02:00
Georgi Valkov
e103e549d7 fix bare except statement 2012-12-06 17:25:28 +02:00
Georgi Valkov
7f4503b9e2 pep8 fixes 2012-12-06 17:25:19 +02:00
Marcus Smith
53bbdf58cd merge with pypa/pip:develop 2012-11-28 20:28:57 -08:00
Marcus Smith
9c271baafe distutils scheme util for wheel installs; --user/--target support for wheels 2012-11-14 16:53:22 -08:00
Georgi Valkov
2c64a1e160 replace global OptionParser and refactor main() 2012-11-10 15:37:15 +02:00
Georgi Valkov
46a21751b8 add the base_parser argument to all Command instances 2012-11-10 15:34:53 +02:00
Georgi Valkov
7427eca00b remove global command instances
Rework the way commands are defined, loaded and ran in pip:

 - Commands are instantiated on demand in pip.main().

 - A command 'registry' - mapping of command names to command classes in
   pip.commands.__init__.

 - Remove deferred command module loading.
2012-11-10 15:30:16 +02:00
Marcus Smith
7ece6f4e77 add --no-deps option to "pip wheel" 2012-10-27 21:21:35 -07:00
Daniel Holth
ed0c2391da allow pip wheel --use-wheel ... 2012-10-27 16:55:04 -04:00
Daniel Holth
137909107f remove 'import *' 2012-10-27 16:29:31 -04:00
Daniel Holth
e0f353596f make sure bdist_wheel is available up front 2012-10-16 21:57:37 -04:00
Marcus Smith
a0cd7b6991 use CommandError 2012-10-16 16:48:15 -07:00
Marcus Smith
cdcdf459bc 'pip wheel' doesn't support py25 2012-10-16 16:39:56 -07:00
Marcus Smith
4bfc92ddba 'pip wheel' 2012-10-16 15:57:10 -07:00
hetmankp
061954f29d Added --root command line option, works the same as for distutils 2012-10-08 14:49:30 +11:00
Daniel Holth
aa5b33dbf4 experimental support for installing wheel archives 2012-10-01 22:50:24 -07:00
Carl Meyer
28aeb03b08 Add dependencies information to 'show' command. 2012-09-21 11:15:24 -06:00
Carl Meyer
8c9a241fb2 Rename 'status' command 'show'. 2012-09-12 10:39:19 -06:00
Rafael Caricio
85bbe26f64 Make optional the full file listing. 2012-09-11 17:44:42 -03:00
Rafael Caricio
71286afc4d Enable listing all the installed files. 2012-09-11 16:35:03 -03:00
Carl Meyer
6d5a9e2fb2 Minor cleanup. 2012-09-08 15:31:59 -06:00
Rafael Caricio
63459a2707 Little refactory. 2012-09-07 18:18:48 -04:00
Rafael Caricio
16f76e24bd Only print some files. 2012-09-07 17:44:49 -04:00
Rafael Caricio
b78dff8d2c Refactory and support to package name in any case. 2012-09-07 17:17:04 -04:00
Rafael Caricio
76bbecd42e Added the patch code sent by @vbabiy. 2012-09-07 15:56:00 -04:00
Jannis Leidel
1525a63b57 Added a get_prog util to correctly show the name of the program when using python -m pip.
Also show the full path in the missing command error message.
2012-09-01 20:36:31 +02:00
MiCHiLU
4d955d56af Fix issue #632 - IOError in zip command with --path option 2012-08-13 13:02:16 +09:00
Marcus Smith
5a1c6093b6 pypy home scheme fix 2012-08-04 18:48:16 -07:00
Marcus Smith
0aadda7f16 usersite installs should ignore version conflicts with site 2012-06-10 18:16:48 -07:00
Marcus Smith
2e1959abfb don't allow --user installs in no-global virtualenvs 2012-06-05 20:01:35 -07:00