release 0.2018.2

This commit is contained in:
Mark Riedesel 2020-06-12 14:45:08 -05:00
parent 1f1d3dd9bb
commit bfd43b7448
3 changed files with 5 additions and 5 deletions

View file

@ -36,7 +36,6 @@ class Model(object):
self.__dict__[key] = value self.__dict__[key] = value
def set_field_value(self, field_name, value): def set_field_value(self, field_name, value):
print('setfieldval: ' + field_name + ' ' + value)
getattr(self, field_name).value = value getattr(self, field_name).value = value
def get_fields(self): def get_fields(self):
@ -87,7 +86,6 @@ class Model(object):
# Skip the first record, since that's an identifier # Skip the first record, since that's an identifier
for field in self.get_sorted_fields()[1:]: for field in self.get_sorted_fields()[1:]:
field.read(fp) field.read(fp)
print(field.name, '"' + (str(field.value) or '') + '"', field.max_length, field._orig_value)
def toJSON(self): def toJSON(self):
return { return {

View file

@ -73,3 +73,4 @@ if __name__ == '__main__':
records = list(read_file(in_file, in_file.name, get_record_types())) records = list(read_file(in_file, in_file.name, get_record_types()))
write_file(out_file, out_file.name, records) write_file(out_file, out_file.name, records)
print("wrote {} records to {}".format(len(records), out_file.name))

View file

@ -7,13 +7,14 @@ def pyaccuwage_tests():
return test_suite return test_suite
setup(name='pyaccuwage', setup(name='pyaccuwage',
version='0.2018.1', version='0.2018.2',
packages=['pyaccuwage'], packages=['pyaccuwage'],
scripts=[ scripts=[
'scripts/pyaccuwage-checkseq',
'scripts/pyaccuwage-convert',
'scripts/pyaccuwage-genfieldfill',
'scripts/pyaccuwage-parse', 'scripts/pyaccuwage-parse',
'scripts/pyaccuwage-pdfparse', 'scripts/pyaccuwage-pdfparse',
'scripts/pyaccuwage-checkseq',
'scripts/pyaccuwage-genfieldfill'
], ],
zip_safe=True, zip_safe=True,
test_suite='setup.pyaccuwage_tests', test_suite='setup.pyaccuwage_tests',