chiark / gitweb /
Rework build into a class
authorDaniel Martí <mvdan@mvdan.cc>
Sat, 28 Nov 2015 16:55:27 +0000 (17:55 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Wed, 2 Dec 2015 19:03:11 +0000 (20:03 +0100)
commitbf8518ee8ff120f219273e8e2d309cd8de2da9ab
tree74245e09c6e02a2abdaab41b6af99262e3bc45e7
parent2c12485aeb2d4807eb7d9f9815a6220932f4a623
Rework build into a class

This simplifies usage, goes from

    build['flag']
to
    build.flag

Also makes static analyzers able to detect invalid attributes as the set
is now limited in the class definition.

As a bonus, setting of the default field values is now done in the
constructor, not separately and manually.

While at it, unify "build", "thisbuild", "info", "thisinfo", etc into
just "build".
15 files changed:
fdroidserver/build.py
fdroidserver/checkupdates.py
fdroidserver/common.py
fdroidserver/import.py
fdroidserver/lint.py
fdroidserver/metadata.py
fdroidserver/scanner.py
fdroidserver/update.py
tests/common.TestCase
tests/metadata.TestCase
tests/metadata/net.osmand.plus.pickle
tests/metadata/org.adaway.pickle
tests/metadata/org.smssecure.smssecure.pickle
tests/metadata/org.videolan.vlc.pickle
tests/metadata/update-pickle.py [deleted file]