Skip to content

Commit b1fd2b1

Browse files
committed
Restore legacy support of >> PyPI requirements
This was restored with the introduction of packvers Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent 45a5f82 commit b1fd2b1

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

tests/packagedcode/data/pypi/requirements_txt/invalid_spec/output.expected.json

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,29 @@
2828
"source_packages": [],
2929
"file_references": [],
3030
"extra_data": {},
31-
"dependencies": [],
31+
"dependencies": [
32+
{
33+
"purl": "pkg:pypi/test",
34+
"extracted_requirement": "test>>1.2.0",
35+
"scope": "install",
36+
"is_runtime": true,
37+
"is_optional": false,
38+
"is_resolved": false,
39+
"resolved_package": {},
40+
"extra_data": {
41+
"is_editable": false,
42+
"link": null,
43+
"hash_options": [],
44+
"is_constraint": false,
45+
"is_archive": null,
46+
"is_wheel": false,
47+
"is_url": null,
48+
"is_vcs_url": null,
49+
"is_name_at_url": false,
50+
"is_local_path": null
51+
}
52+
}
53+
],
3254
"repository_homepage_url": null,
3355
"repository_download_url": null,
3456
"api_data_url": null,

0 commit comments

Comments
 (0)