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

13 commits

Author SHA1 Message Date
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 ab9ea197bd improved docs and cli help 2013-01-18 13:25:15 -08: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
Georgi Valkov 2c64a1e160 replace global OptionParser and refactor main() 2012-11-10 15:37:15 +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
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 7989ea9c5b Changed HelpCommand to raise CommandError instead of InstalationError, when no command is found. It returns status SUCCESS (0) if find command or no command is specified. 2011-08-02 13:41:31 -04:00
Vinay Sajip 680b5dfda0 Port to Python3 2011-03-15 15:49:48 -04:00
Hugo Lopes Tavares d06c98dc6f merged changes related to PEP 8 from hltbra's fork 2010-06-02 23:25:26 -03:00
Ian Bicking 3d32c196b5 Extract commands into their own modules; fix a few imports and dead functions that pyflakes found 2009-11-20 12:20:52 -06:00