(cls, location, package_only=False)
| 1508 | |
| 1509 | @classmethod |
| 1510 | def parse(cls, location, package_only=False): |
| 1511 | file_name = fileutils.file_name(location) |
| 1512 | |
| 1513 | dependency_type = get_dparse2_supported_file_name(file_name) |
| 1514 | if not dependency_type: |
| 1515 | return |
| 1516 | |
| 1517 | dependencies = parse_with_dparse2( |
| 1518 | location=location, |
| 1519 | file_name=dependency_type, |
| 1520 | ) |
| 1521 | package_data = dict( |
| 1522 | datasource_id=cls.datasource_id, |
| 1523 | type=cls.default_package_type, |
| 1524 | primary_language=cls.default_primary_language, |
| 1525 | dependencies=dependencies, |
| 1526 | ) |
| 1527 | yield models.PackageData.from_data(package_data, package_only) |
| 1528 | |
| 1529 | |
| 1530 | class SetupCfgHandler(BaseExtractedPythonLayout): |
nothing calls this directly
no test coverage detected