Skip to content

Commit

Permalink
feat: support dev dependencies in poetry's pyproject format
Browse files Browse the repository at this point in the history
  • Loading branch information
aitorres committed Dec 12, 2021
1 parent ce65969 commit a687b20
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions oneup/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,14 @@ def scan_file(requirements_file_path: Path) -> None:
tool_specs = parsed_toml["tool"]
if "poetry" in tool_specs:
poetry_specs = tool_specs["poetry"]
if "dependencies" in poetry_specs:
dependencies = list(poetry_specs["dependencies"].keys())
dependencies = []

for key in ("dependencies", "dev-dependencies"):
if key in poetry_specs:
dependencies.extend(
list(poetry_specs["dependencies"].keys())
)


for dependency in dependencies:
print_project_latest_version(dependency)
Expand Down

0 comments on commit a687b20

Please sign in to comment.