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
bc0a3144
Unverified
Commit
bc0a3144
authored
Mar 21, 2018
by
Sébastien Eustace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix --optional option in add command
parent
a2f9aec5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
CHANGELOG.md
+1
-0
poetry/console/commands/add.py
+6
-0
No files found.
CHANGELOG.md
View file @
bc0a3144
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
-
Fixed Python version retrieval inside virtualenvs.
-
Fixed Python version retrieval inside virtualenvs.
-
Fixed optional dependencies being set as required in sdist.
-
Fixed optional dependencies being set as required in sdist.
-
Fixed
`--optional`
option in the
`add`
command not being used.
## [0.6.3] - 2018-03-20
## [0.6.3] - 2018-03-20
...
...
poetry/console/commands/add.py
View file @
bc0a3144
...
@@ -53,6 +53,12 @@ If you do not specify a version constraint, poetry will choose a suitable one ba
...
@@ -53,6 +53,12 @@ If you do not specify a version constraint, poetry will choose a suitable one ba
parser
.
parse_constraints
(
constraint
)
parser
.
parse_constraints
(
constraint
)
for
name
,
constraint
in
requirements
.
items
():
for
name
,
constraint
in
requirements
.
items
():
if
self
.
option
(
'optional'
):
constraint
=
{
'version'
:
constraint
,
'optional'
:
True
}
poetry_content
[
section
][
name
]
=
constraint
poetry_content
[
section
][
name
]
=
constraint
# Write new content
# Write new content
...
...
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