Skip to content

Commit

Permalink
fixes python-poetry#668 - Path based dev-dependencies break 'install …
Browse files Browse the repository at this point in the history
…--no-dev' when the directory does not exist
  • Loading branch information
clintmod committed Feb 11, 2020
1 parent ed44342 commit 8a54eab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion poetry/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from __future__ import unicode_literals

import shutil
import sys

from typing import Dict
from typing import List
Expand Down Expand Up @@ -98,7 +99,7 @@ def create_poetry(

package.add_dependency(name, constraint)

if "dev-dependencies" in local_config:
if "dev-dependencies" in local_config and "--no-dev" not in sys.argv:
for name, constraint in local_config["dev-dependencies"].items():
if isinstance(constraint, list):
for _constraint in constraint:
Expand Down

0 comments on commit 8a54eab

Please sign in to comment.