Donald Stufft
95bcf8c5f6
Move all internal APIs to pip._internal
2017-08-31 14:53:00 -04:00
Donald Stufft
f16de42863
Merge pull request #4485 from pradyunsg/isort-only
...
Sort all imports
2017-05-18 15:58:28 -04:00
Pradyun S. Gedam
975c39ab86
Allow commands to opt out of --require-venv
2017-05-18 18:50:01 +05:30
Pradyun S. Gedam
1832569530
Sort all imports
2017-05-16 15:47:47 +05:30
Bussonnier Matthias
0582a91e62
Do not shadow submodules
...
using object that have the same name as submodules as the weird effect
of makeing `import pip.commands.<something> as <anothername>` fail with
a key error. This fixes it by renamin commands as command_dict and fixin
a few imports to accomodate.
Related to #2149
2014-12-12 16:06:04 +01:00
Donald Stufft
767d11e49c
Switch to using the stdlib logger instead of pip.log
2014-09-10 09:36:09 -04:00
Marcus Smith
15910f573e
define options once, but don't globally instantiate
2013-09-16 22:21:15 -07: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
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