One thought about versions, I think it makes sense to add warning that user is using "old" version of BUILD-INFO.txt with OpenID-Launchpad-Teams which will be deprecated sooner or later.
Another is about tests. May be it is worth renaming test 'test_apply_to_dir(self)' to something like 'test_apply_to_dir_openid_launchpad_teams_field(self)' to better reflect what it does after you've added backwards compatibility with renaming of fields.
And the last one is in license_protected_downloads/buildinfo.py
There is a function that does write BUILD-INFO.txt from an array, it's used in splicing, it writes out Format-Version: 0.1, I guess we need to update it to write latest version (currently = 0.5) since it will be updated during read.
def write_from_array(cls, build_info_array, file_path):
with open(file_path, "w") as outfile: outfile.write("Format-Version: 0.1\n\n")
Paul, thanks for working on this and a good job.
Here are my 5cents:
One thought about versions, I think it makes sense to add warning that user is using "old" version of BUILD-INFO.txt with OpenID- Launchpad- Teams which will be deprecated sooner or later.
Another is about tests. May be it is worth renaming test 'test_apply_ to_dir( self)' to something like 'test_apply_ to_dir_ openid_ launchpad_ teams_field( self)' to better reflect what it does after you've added backwards compatibility with renaming of fields.
And the last one is in license_ protected_ downloads/ buildinfo. py
There is a function that does write BUILD-INFO.txt from an array, it's used in splicing, it writes out Format-Version: 0.1, I guess we need to update it to write latest version (currently = 0.5) since it will be updated during read.
def write_from_ array(cls, build_info_array, file_path):
outfile. write(" Format- Version: 0.1\n\n")
with open(file_path, "w") as outfile: