meta: add appstream metadata extractor
Metadata
Current evaluation
Merged after reviewer approval and passing CI. Adds an appstream metadata extractor to parse application metadata from appstream files, modifying 9 files with a net addition of 1192 lines.
Suggested action: —
No scores available.
Issue body
Extract application metadata from appstream files.
Co-authored-by: Kyle Fazzari <kyle@canonical.com>
Co-authored-by: Leo Arias <leo.arias@canonical.com>
Co-authored-by: Sergio Schvezov <sergio.schvezov@canonical.com>
Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com>
- [x] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)?
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [ ] Have you successfully run `./runtests.sh static`?
- [ ] Have you successfully run `./runtests.sh tests/unit`?
-----
CRAFT-1033
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged after reviewer approval and passing CI. Adds an appstream metadata extractor to parse application metadata from appstream files, modifying 9 files with a net addition of 1192 lines. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged into the 7.0 branch. Introduces an appstream metadata extractor to parse application metadata from appstream files. Co-authored by three Canonical developers. Codecov noted a 0.93% coverage increase upon integration. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged into snapcraft/7.0, adding an appstream metadata extractor to parse application metadata from appstream files. Co-authored by Kyle Fazzari, Leo Arias, and Sergio Schvezov. The change increased test coverage by 0.93 percent. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #2831 appstream extractor: add support for code | snapcraft | merged | Merged a pull request adding XSLT support to preserve code tags during Appstream to Markdown transformation. Approved by a reviewer, passed CI checks, and added 63 lines across two files to prevent code content from being stripped. | |
| #1826 extractors: support appstream metadata in parts | snapcraft | merged | Merged. Implemented an Appstream metadata extractor for snapcraft parts, initially supporting summary and description fields. Resolves issue #1694. Code authored by @elopio. | |
| #2832 appstream extractor: take xml comments into account | snapcraft | merged | Merged changes to the appstream extractor to properly handle XML comments. Approved by one reviewer with no unresolved comments. Adds 65 lines across two files, resolving Launchpad bug #1852329. | |
| #2762 appstream: extract title and version | snapcraft | merged | Merged changes extract title and version from AppStream metadata by parsing the name tag and first release tag. Adds 105 lines across three files, passes CI, and enables adopt-info functionality for Snapcraft without external dependencies. | |
| #2828 Appstream | snapcraft | merged | Merged following approval from @hsitter. The change updated Appstream metadata processing, resolving a brief discussion on markdown italic syntax. The commit modified two files with 83 additions and 22 deletions. | |
| #1861 extractors: also support appdata.xml appstream files. | snapcraft | merged | Merged into the main branch after passing CI checks and receiving approval. Adds support for appdata.xml appstream files to the extractors module with minor code changes across two files. | |
| #4613 feat: adopt more fields from the appstream metadata file | snapcraft | merged | Merged to add initial support for six appstream metadata fields including license, contact, and source-code. Approved by three reviewers with passing tests. Remaining update_project_metadata changes will be addressed in a follow-up PR. |