From 863e27140f6638d1510562318ae9e7fb6bbd7d2a Mon Sep 17 00:00:00 2001 From: finswimmer Date: Fri, 22 Nov 2019 15:12:18 +0100 Subject: [PATCH] fix (poetry new): show correct package (#1608) * fix: success message by `poetry new` now shows correct package name if it was automatically renamed * fix: revert isort changes --- poetry/console/commands/new.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/poetry/console/commands/new.py b/poetry/console/commands/new.py index 29a1e040a73..5159f88bd30 100644 --- a/poetry/console/commands/new.py +++ b/poetry/console/commands/new.py @@ -3,6 +3,8 @@ from cleo import argument from cleo import option +from poetry.utils.helpers import module_name + from .command import Command @@ -76,6 +78,6 @@ def handle(self): self.line( "Created package {} in {}".format( - name, path.relative_to(Path.cwd()) + module_name(name), path.relative_to(Path.cwd()) ) )