Hi, Not sure if I should post this here or the forum, maybe both? I'm in the process of developing a framework to assist with the management/packaging/distribution of add-ons to try and make dev's lives a bit easier.
One of the main components of this framework is a validator which performs a series of tests on the addon once it is fetched from it's source. I just wanted to ask what kind of things I should be checking for because I'm sure there are lots of things i'm missing. Here's a short overview of where I'm at for now: Input layer: - Fetch from an unpacked directory (working) - Fetch directly from git using dulwich (working) - I plan to support hg/svn/bzr/zip etc too Validation: - Validate the xml and ensure all required tags are present - ensure any required files are present based on type of addon/files specified in addon.xml (e.g. default.py or service.py) - ensure images (if present) meet required standards (size, no transparency etc.) - validate any python code with pylint (checks for pep8 violations, logic errors etc) - dependency checking (ensure addon is installable with only dependencies from XBMC repo, and ensure the addon has depended on any modules it requires) - check license (and some sort of simple header checks just to make sure nothing with weird licenses is submitted, as far as this can be done programmatically) Packaging/Distribution: - Haven't got this far yet Any help, ideas or suggestions would be greatly appreciated. Also if there are any existing tools to do this kind of stuff I'd love to know so I don't have to reinvent the wheel. Hopefully something like this would be useful for both addon developers and those managing repos. Thanks, Paddy ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Xbmc-addons mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xbmc-addons
