Update wiki links to the new short URL
[aur.git] / setup.py
blobcf88488c968f3677bced0cf09a06eadf038fdb39
1 import re
2 import sys
4 from setuptools import find_packages, setup
6 version = None
7 with open('web/lib/version.inc.php', 'r') as f:
8 for line in f.readlines():
9 match = re.match(r'^define\("AURWEB_VERSION", "v([0-9.]+)"\);$', line)
10 if match:
11 version = match.group(1)
13 if not version:
14 sys.stderr.write('error: Failed to parse version file!')
15 sys.exit(1)
17 setup(
18 name="aurweb",
19 version=version,
20 packages=find_packages(),
21 entry_points={
22 'console_scripts': [
23 'aurweb-git-auth = aurweb.git.auth:main',
24 'aurweb-git-serve = aurweb.git.serve:main',
25 'aurweb-git-update = aurweb.git.update:main',
26 'aurweb-aurblup = aurweb.scripts.aurblup:main',
27 'aurweb-mkpkglists = aurweb.scripts.mkpkglists:main',
28 'aurweb-notify = aurweb.scripts.notify:main',
29 'aurweb-pkgmaint = aurweb.scripts.pkgmaint:main',
30 'aurweb-popupdate = aurweb.scripts.popupdate:main',
31 'aurweb-rendercomment = aurweb.scripts.rendercomment:main',
32 'aurweb-tuvotereminder = aurweb.scripts.tuvotereminder:main',
33 'aurweb-usermaint = aurweb.scripts.usermaint:main',