MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / get_setup_py_python_requires

Function get_setup_py_python_requires

src/packagedcode/pypi.py:2114–2123  ·  view source on GitHub ↗

Return a mapping of {python_requires: value} or an empty mapping found in a ``setup_args`` mapping of setup.py arguments.

(setup_args)

Source from the content-addressed store, hash-verified

2112
2113
2114def get_setup_py_python_requires(setup_args):
2115 """
2116 Return a mapping of {python_requires: value} or an empty mapping found in a
2117 ``setup_args`` mapping of setup.py arguments.
2118 """
2119 python_requires = setup_args.get('python_requires')
2120 if python_requires:
2121 return dict(python_requires=python_requires)
2122 else:
2123 return {}
2124
2125
2126def get_setup_py_dependencies(setup_args):

Callers 1

parseMethod · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected