Closed rhl-bthr closed 6 years ago
You've added to the XOPackager
class. I hadn't thought of that.
Better would be to check config
in cmd_dist_xo
, as at that point the file is already parsed and available.
Another place would be class ActivityBundle
which will help with aslo-v3
workflow which (at one stage) proposed not to require use of the dist_xo
target by developers.
Regarding what tags must be present;
aslo
repository for more details, see https://github.com/sugarlabs/aslo/search?utf8=%E2%9C%93&q=activity_version&type=aslo-v3
repository for more details, see https://github.com/sugarlabs/aslo-v3/search?utf8=%E2%9C%93&q=activity_version&type=Thank you for the detailed review and guidance
Update:
ActivityBundle
, as it might help with aslo-v3
workflow in futureSources for looking up tags: (Thanks to @quozl)
Thanks. Reviewed.
name
, bundle_id
and some other keys already in _parse_info
; let's not add redundant checks,_parse_info
instead,I'm not so sure about the AppStream changes, as there are almost no activities that have AppStream metadata (e.g. only Browse), so we would end up with lots of warnings in logs as Sugar starts up for no real benefit. I don't think anybody is using our AppStream metadata anyway. Anyway, I did notice;
Appstream
should be AppStream
to be consistent with other uses,_generate_appdata
in bundlebuilder.py
,I've also updated the specification https://github.com/sugarlabs/sugar-toolkit-gtk3/commit/7e216a04d579d6f0e8283e5d3975bf72edd2f67b.
@quozl Thanks once again for the detailed review
Changes made:
_parse_info
_parse_info
, rather than a new methodChanges in 7e216a0 are for optional metadata. Kindly let me know if checks for optional metadata should also be added.
Kindly review If no more changes are to be made, shall I squash all commits.
Thanks. Reviewed.
Rebased. Rewrote messages for consistency with others. Moved some checks into else clauses where the same metadata key was tested.
https://github.com/sugarlabs/sugar-toolkit-gtk3/commit/cc2357c787cb30d02e1568a2bf23dc18c367468f
Fixed in this PR: #378 Changes made:
python setup.py dist_xo
will now issue warnings(non-fatal), ifactivity.info
won't havelicense
oractivity_version
tagsname
tag already issued a fatal error, if missing and hence was excluded.Suggestion: All tags independent of whether they are necessary for
aslo
should issue a warning. Kindly let me know, I will update the PRTested