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
2e579c74
Unverified
Commit
2e579c74
authored
Sep 13, 2019
by
Sébastien Eustace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve UX when adding dependencies via the init command
parent
33ece5c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
poetry/console/commands/init.py
+12
-0
No files found.
poetry/console/commands/init.py
View file @
2e579c74
...
...
@@ -230,8 +230,20 @@ The <info>init</info> command creates a basic <comment>pyproject.toml</> file in
package
=
False
else
:
choices
=
[]
matches_names
=
[
p
.
name
for
p
in
matches
]
exact_match
=
constraint
[
"name"
]
in
matches_names
if
exact_match
:
choices
.
append
(
matches
[
matches_names
.
index
(
constraint
[
"name"
])]
.
pretty_name
)
for
found_package
in
matches
:
if
len
(
choices
)
>=
10
:
break
if
found_package
.
name
.
lower
()
==
constraint
[
"name"
]
.
lower
():
continue
choices
.
append
(
found_package
.
pretty_name
)
self
.
line
(
...
...
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