-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New env command and sub commands (#731)
* Add a env:info command * Add env:use command * Fix tests on Windows * Fix tests * Fix tests * Fix tests for Python 3.5 * Use a hash in virtualenv names dependent on the project’s path * Add tests for the `env use` command * Fix tests * Add a `env list` command * Fix venvs being recreated when switching minor Python versions * Add a `env remove` command * Update CHANGELOG * Update documentation
- Loading branch information
Showing
32 changed files
with
1,606 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from .env import EnvCommand |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from ..command import Command | ||
|
||
from .info import EnvInfoCommand | ||
from .list import EnvListCommand | ||
from .remove import EnvRemoveCommand | ||
from .use import EnvUseCommand | ||
|
||
|
||
class EnvCommand(Command): | ||
""" | ||
Interact with Poetry's project environments. | ||
env | ||
""" | ||
|
||
commands = [EnvInfoCommand(), EnvListCommand(), EnvRemoveCommand(), EnvUseCommand()] | ||
|
||
def handle(self): # type: () -> int | ||
return self.call("help", self._config.name) |
Oops, something went wrong.