support app metadata in XML format

While the current text metadata format is good for human readability and
editability, it is difficult to produce and parse using code.  XML is a
widespread standard format for easy automatic parsing and creating, while
having decent human readability.

The .pickle for testing is a lightly edited version of the real metadata
for net.osmand.plus:

* comments were removed
* "NonFreeNet" was added as an AntiFeature
This commit is contained in:
Hans-Christoph Steiner 2015-07-22 18:40:31 -07:00
parent 2831b3e93f
commit ab145de6bc
4 changed files with 766 additions and 7 deletions

View file

@ -37,7 +37,7 @@ class MetadataTest(unittest.TestCase):
fdroidserver.common.config = config
apps = fdroidserver.metadata.read_metadata(xref=True)
for appid in ('org.smssecure.smssecure', 'org.adaway'):
for appid in ('org.smssecure.smssecure', 'org.adaway', 'net.osmand.plus'):
frompickle = pickle.load(open(os.path.join('metadata', appid + '.pickle')))
self.assertTrue(appid in apps.keys())
self.assertEquals(apps[appid], frompickle)