Reorganize tests
[aur.git] / setup.py
blob48eb1769a3c6d8f05bbc5039ff425c666191df82
1 import re
2 from setuptools import setup, find_packages
3 import sys
5 version = None
6 with open('web/lib/version.inc.php', 'r') as f:
7 for line in f.readlines():
8 match = re.match(r'^define\("AURWEB_VERSION", "v([0-9.]+)"\);$', line)
9 if match:
10 version = match.group(1)
12 if not version:
13 sys.stderr.write('error: Failed to parse version file!')
14 sys.exit(1)
16 setup(
17 name="aurweb",
18 version=version,
19 packages=find_packages(),