forked from Linaro/squad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
51 lines (41 loc) · 1.45 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import os
import re
import sys
from setuptools import setup, find_packages
__version__ = None
exec(open('squad/version.py').read())
def valid_requirement(req):
return not (re.match(r'^\s*$', req) or re.match('^#', req))
requirements_txt = open('requirements.txt').read().splitlines()
requirements = [req for req in requirements_txt if valid_requirement(req)]
if os.getenv('REQ_IGNORE_VERSIONS'):
requirements = [req.split('>=')[0] for req in requirements]
extras_require = {
'postgres': 'psycopg2',
}
if len(sys.argv) > 1 and sys.argv[1] in ['sdist', 'bdist', 'bdist_wheel'] and not os.getenv('SQUAD_RELEASE'):
raise RuntimeError('Please use scripts/release to make releases!')
setup(
name='squad',
version=__version__,
author='Antonio Terceiro',
author_email='antonio.terceiro@linaro.org',
url='https://github.com/Linaro/squad',
packages=find_packages(exclude=['test*']),
include_package_data=True,
entry_points={
'console_scripts': [
'squad-admin=squad.manage:main',
'squad=squad.run:main',
'squad-worker=squad.run.worker:main',
'squad-listener=squad.run.listener:main',
'squad-scheduler=squad.run.scheduler:main',
]
},
install_requires=requirements,
extras_require=extras_require,
license='AGPLv3+',
description="Software Quality Dashboard",
long_description="Software Quality Dashboard", # FIXME
platforms='any',
)