Require TUs to explicitly request to overwrite a pkgbase
[aur.git] / setup.py
blob9d10cc1cab0e008e838ba1100d2f54e2606944e4
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(),
20 entry_points={
21 'console_scripts': [
22 'aurweb-git-auth = aurweb.git.auth:main',
23 'aurweb-git-serve = aurweb.git.serve:main',
24 'aurweb-git-update = aurweb.git.update:main',
25 'aurweb-aurblup = aurweb.scripts.aurblup:main',
26 'aurweb-mkpkglists = aurweb.scripts.mkpkglists:main',
27 'aurweb-notify = aurweb.scripts.notify:main',
28 'aurweb-pkgmaint = aurweb.scripts.pkgmaint:main',
29 'aurweb-popupdate = aurweb.scripts.popupdate:main',
30 'aurweb-rendercomment = aurweb.scripts.rendercomment:main',
31 'aurweb-tuvotereminder = aurweb.scripts.tuvotereminder:main',