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

67 commits

Author SHA1 Message Date
Donald Stufft ff2854a855 Use requests instead of urllib2 2013-09-24 23:32:03 -04:00
Marcus Smith 237a8ae577 --log file object getting closed prematurely (Issue #219) 2013-09-19 19:00:29 -07:00
Marcus Smith 15910f573e define options once, but don't globally instantiate 2013-09-16 22:21:15 -07:00
Marcus Smith 5245e62bcf don't pass around options we're not using anymore 2013-09-15 21:28:19 -07:00
Georgi Valkov c6495a46e3 remove basecommand.merge_options()
This patch removes the error prone step of merging the baseparsers'
options (the 'Generic Options') with those of the subparser. In fact,
commands are already capable of parsing all options present in the
'Generic Options' option group. The option parsing logic is as follows:

Given a command line such as:
  '--timeout 5 install --user pkg'
pip.parseopt() returns command 'install' with arguments:
  '--timeout 5 --user pkg'
pip.main() executes the above as:
  commands['install'](parser).main('--timeout 5 --user pkg', options)
2013-09-15 21:28:18 -07:00
Marcus Smith 35ac774ec5 multi-values use space seperators in environment variables. 2013-09-15 18:09:36 -07:00
Lincoln de Sousa 9584608aac Cmds {install,wheel} should return proper error code
The `pip` executable was returning a successful status code (`0`) when
trying to install new packages with existing previous build directories.
2013-08-25 19:42:25 -04:00
Donald Stufft ce79c72247 Render logging output with colors if they are supported 2013-08-04 23:48:36 -04:00
Marcus Smith 6e2bfe8323 remove python 2.5 logic 2013-04-17 22:50:22 -07:00
Marcus Smith d6bb9a54e7 add TODO about options passing 2013-02-18 19:38:26 -08:00
Marcus Smith 4a4a141c21 from --allow-no-ssl to --insecure 2013-02-17 22:43:17 -08:00
Marcus Smith 559d77addc from --cert-path to --cert 2013-02-17 22:17:59 -08:00
Marcus Smith e3f1ce825b proper list indents 2013-02-17 22:00:57 -08:00
Marcus Smith 22bf924b52 merge with develop 2013-02-16 14:17:22 -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
Marcus Smith 83d8b3756b only show --allow-no-ssl when no ssl 2013-02-10 01:30:24 -08:00
Marcus Smith 84964064a3 --cert-path and --no-ssl options 2013-02-06 23:27:53 -08:00
Marcus Smith ab9ea197bd improved docs and cli help 2013-01-18 13:25:15 -08:00
Georgi Valkov 4ec46922ff fix '-h,--help' option for commands 2012-12-11 12:39:57 +02:00
Georgi Valkov 7193bf919a set option group title to '$CommandName Options' 2012-12-10 14:34:29 +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 8def93c181 add missing import and remove default help option 2012-12-10 03:06:05 +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
Rafael Caricio 44470d1bd0 Remove blank spaces in the end of the line. 2012-09-07 16:01:34 -04:00
Garry Polley 0d27d5aa0a Fixing import error for tempfile
A change was made to add extra logging whenever pip log files cannot be added. 

Here is the changeset that caused the issue:  8ebc7a3160 (pip)/basecommand.py
2012-09-05 15:55:34 -05: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
unknown 8ebc7a3160 Updated basecommand.py such that writing to the log file doesn't fail. If
permission is denied for writing in the specified log file the message
will be written to a temporary one.
2012-06-16 18:28:13 +03:00
Carl Meyer 4b68fa2cf5 Remove backwards-compatibility shims for Python 2.4. 2012-06-06 08:21:16 -06:00
Paul Nasrat 35027f278b Fix pep8 CI build.
Tested locally:
=====================================================
================== Running pep8 =====================

Searching for pep8
Reading http://pypi.python.org/simple/pep8/
Reading http://github.com/cburroughs/pep8.py/tree/master
Reading http://github.com/jcrocholl/pep8
Best match: pep8 0.6.1
Processing pep8-0.6.1-py2.7.egg
pep8 0.6.1 is already the active version in easy-install.pth
Installing pep8 script to
/Users/pnasrat/Development/pip/pip_virtualenv/bin

Using
/Users/pnasrat/Development/pip/pip_virtualenv/lib/python2.7/site-packages/pep8-0.6.1-py2.7.egg
Processing dependencies for pep8
Finished processing dependencies for pep8

==================== Ended pep8 =====================
=====================================================
2012-01-30 06:26:12 +00:00
Jannis Leidel afaa58d024 Minor name nitpicking and a fix for subcommands. 2012-01-20 14:38:34 +01:00
Jannis Leidel b77a7c4f5f Merge branch 'scripting' of https://github.com/pvanderlinden/pip into pvanderlinden-scripting 2012-01-20 14:16:11 +01:00
Hugo Lopes Tavares a3c42a3bcc Fix issue #22 - pip search should set and return a userful shell status code 2011-12-29 16:25:46 -02:00
Carl Meyer 1134ca2552 Removed unused argument to commands. 2011-12-12 02:02:01 -07:00
Hugo Lopes Tavares 615e724de2 Move status codes to a module and import from there 2011-12-04 18:50:34 -02:00
Paul van der Linden 8d67101b6e path exists action 2011-10-04 16:10:46 +02:00
Paul van der Linden ac94f606c0 fix no-input 2011-10-04 16:08:35 +02:00
Hugo Lopes Tavares 0ece434f81 Changed magic status code numbers to named ones 2011-08-02 14:03:35 -04:00
Hugo Lopes Tavares 9575e62b93 Moved SUCCESS and ERROR to basecommand.py, and added a FIXME, explaining why there is a integer check for status (return from self.run) 2011-08-02 13:54:18 -04:00
Hugo Lopes Tavares 8e8ef0e34a Changed SearchCommand.run to return SUCCESS or NO_MATCHES_FOUND (0 and 23) for found packages, and not found packages. Changed BaseCommand to check if run returned int, and if so, it is the exit status code [dummy change, just to no break everything right now; the other commands should be changed too!]. Removed SearchCommandError because it was not used 2011-08-02 13:16:18 -04:00
Alex Morega a58839e194 "search" command reports error via exception 2011-07-20 22:14:56 +03:00
Carl Meyer 7327177dbb Removed some unused imports. 2011-05-18 10:27:15 -05:00
Carl Meyer 87dd1579a2 Removed broken and no-longer-useful -E and PIP_RESPECT_VIRTUALENV options. 2011-05-18 10:27:14 -05:00
Paul Nasrat 2860dc7d41 Fix whitespace, etc for pep8 compliance
Reran tests after changes on 2.4, 2.6, 3.2 all pass.

=====================================================
================== Running pep8 =====================

Searching for pep8
Reading http://pypi.python.org/simple/pep8/
Reading http://github.com/cburroughs/pep8.py/tree/master
Reading http://github.com/jcrocholl/pep8
Best match: pep8 0.6.1
Processing pep8-0.6.1-py2.6.egg
pep8 0.6.1 is already the active version in easy-install.pth
Installing pep8 script to /Users/pnasrat/Development/pip/pip_virtualenv/bin

Using /Users/pnasrat/Development/pip/pip_virtualenv/lib/python2.6/site-packages/pep8-0.6.1-py2.6.egg
Processing dependencies for pep8
Finished processing dependencies for pep8

==================== Ended pep8 =====================
=====================================================
2011-05-04 08:44:02 +01:00
Paul Nasrat bb1d9fe772 Handle KeyboardInterrupt in basecommand
Manually tested:

python pip/runner.py install --no-install django
Downloading/unpacking django
  Downloading Django-1.3.tar.gz (6.5Mb): 2.6Mb downloaded
Operation cancelled by user
Storing complete log in /Users/pnasrat/.pip/pip.log
2011-04-17 02:26:00 +08:00
Vinay Sajip 680b5dfda0 Port to Python3 2011-03-15 15:49:48 -04:00
Hugo Lopes Tavares dc765845c0 removed unused imports and unused vars 2011-02-12 00:47:31 -02:00
Jannis Leidel 4d33521822 Added option to disable prompting for input. Also added ability to interactively ask for username and/or password in case a request requires authentication. 2010-08-31 13:08:57 +02:00
Jannis Leidel ee2949a97c Added an URL opening helper that handles proxies and basic auth. 2010-08-30 23:53:33 +02:00