File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 20
20
# ScanCode.io is a free software code scanning tool from nexB Inc. and others.
21
21
# Visit https://github.com/nexB/scancode.io for support and download.
22
22
23
+ import sys
24
+
23
25
from attributecode .model import About
24
26
from packagedcode import APPLICATION_PACKAGE_DATAFILE_HANDLERS
25
27
from packageurl import PackageURL
@@ -36,10 +38,16 @@ def resolve_pypi_packages(input_location):
36
38
"""
37
39
Resolve the PyPI packages from the `input_location` requirements file.
38
40
"""
41
+ python_version = f"{ sys .version_info .major } { sys .version_info .minor } "
42
+ operating_system = "linux"
43
+
39
44
inspector_output = resolver_api (
40
45
requirement_files = [input_location ],
46
+ python_version = python_version ,
47
+ operating_system = operating_system ,
41
48
prefer_source = True ,
42
49
)
50
+
43
51
return inspector_output .packages
44
52
45
53
You can’t perform that action at this time.
0 commit comments