Skip to content

Commit b40a676

Browse files
authored
Merge pull request #95 from nexB/fix_serialization
Return empty list for resolved dependencies graph in case no dependencies are found #94
2 parents 27fe710 + 658cfd2 commit b40a676

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

CHANGELOG.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ v0.9.2
77

88
- Make os and python version as mandatory input parameters.
99
- Do not return duplicates binaries.
10+
- Return empty list for resolved dependencies graph in case of no dependencies
11+
are found #94 https://github.com/nexB/python-inspector/issues/94.
1012

1113

1214
v0.9.1

src/python_inspector/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def resolve_dependencies(
208208
if not direct_dependencies:
209209
return Resolution(
210210
packages=[],
211-
resolution={},
211+
resolution=[],
212212
files=files,
213213
)
214214

tests/data/setup/no-direct-dependencies-setup.py-expected.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,5 @@
8181
}
8282
],
8383
"packages": [],
84-
"resolved_dependencies_graph": {}
84+
"resolved_dependencies_graph": []
8585
}

0 commit comments

Comments
 (0)