Download Mac artifact from GitHub instead of CircleCI.
[gpodder.git] / tools / getversion.py
blob6af9eb02cb8854db3f70cb1e8b37e0d61320866b
1 import os
2 import re
4 here = os.path.dirname(__file__) or '.'
5 main_module = open(os.path.join(here, '../src/gpodder/__init__.py')).read()
6 metadata = dict(re.findall(r"__([a-z_]+)__\s*=\s*'([^']+)'", main_module))
7 print(metadata['version'])