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

Function get_setup_py_args

src/packagedcode/pypi.py:2519–2526  ·  view source on GitHub ↗

Return a mapping of arguments passed to a setup.py setup() function. Also include not parsable identifiers values such as variable name and attribute references if ``include_not_parsable`` is True

(location, include_not_parsable=False)

Source from the content-addressed store, hash-verified

2517
2518
2519def get_setup_py_args(location, include_not_parsable=False):
2520 """
2521 Return a mapping of arguments passed to a setup.py setup() function. Also
2522 include not parsable identifiers values such as variable name and attribute
2523 references if ``include_not_parsable`` is True
2524 """
2525 from packagedcode.pypi_setup_py import parse_setup_py
2526 return parse_setup_py(location)
2527
2528
2529def get_pypi_urls(name, version, **kwargs):

Callers 1

parseMethod · 0.85

Calls 1

parse_setup_pyFunction · 0.90

Tested by

no test coverage detected