Yield one or more Package manifest objects given a file ``location`` pointing to a package archive, manifest or similar.
(cls, location, package_only=False)
| 109 | |
| 110 | @classmethod |
| 111 | def parse(cls, location, package_only=False): |
| 112 | """ |
| 113 | Yield one or more Package manifest objects given a file ``location`` pointing to a |
| 114 | package archive, manifest or similar. |
| 115 | """ |
| 116 | with io.open(location, encoding='utf-8') as loc: |
| 117 | yaml_data = saneyaml.load(loc) |
| 118 | |
| 119 | yield cls._parse(yaml_data, package_only) |
| 120 | |
| 121 | @staticmethod |
| 122 | def get_license_detections_and_expression(package_data): |