bump_version.py 293 B

1234567891011121314
  1. import defcon
  2. from glob import glob
  3. VERSION_MAJOR = 3
  4. VERSION_MINOR = 0
  5. sources = glob("sources/*.ufo")
  6. for path in sources:
  7. print(f"Updating {path}")
  8. font = defcon.Font(path)
  9. font.info.versionMajor = VERSION_MAJOR
  10. font.info.versionMinor = VERSION_MINOR
  11. font.save(path)