Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
python-poetry
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
python-poetry
Commits
49a7a868
Unverified
Commit
49a7a868
authored
Oct 24, 2019
by
Sébastien Eustace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the new command
parent
1a53c5e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
poetry/console/commands/new.py
+4
-2
No files found.
poetry/console/commands/new.py
View file @
49a7a868
import
sys
from
cleo
import
argument
from
cleo
import
option
...
...
@@ -18,7 +20,7 @@ class NewCommand(Command):
def
handle
(
self
):
from
poetry.layouts
import
layout
from
poetry.utils._compat
import
Path
from
poetry.utils.env
import
EnvManager
from
poetry.utils.env
import
SystemEnv
from
poetry.vcs.git
import
GitConfig
if
self
.
option
(
"src"
):
...
...
@@ -49,7 +51,7 @@ class NewCommand(Command):
if
author_email
:
author
+=
" <{}>"
.
format
(
author_email
)
current_env
=
EnvManager
()
.
get
(
Path
.
cwd
(
))
current_env
=
SystemEnv
(
Path
(
sys
.
executable
))
default_python
=
"^{}"
.
format
(
"."
.
join
(
str
(
v
)
for
v
in
current_env
.
version_info
[:
2
])
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment