forked from UCL-INGI/INGInious
-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
85 lines (74 loc) · 2.15 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# This file is part of INGInious. See the LICENSE and the COPYRIGHTS files for
# more information about the licensing of this file.
import sys
import os
from setuptools import setup, find_packages
import inginious
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
install_requires = [
"docker>=2.5.0",
"docutils==0.16",
"pymongo>=3.2.2",
"PyYAML>=3.11",
"web.py==0.40",
"lti>=0.9.0",
"oauth2>=1.9.0.post1",
"httplib2>=0.9",
"watchdog >= 0.8.3",
"msgpack-python >= 0.4.7",
"pyzmq >= 15.3.0",
"natsort >= 5.0.1",
"psutil >= 4.4.2",
"zipstream >= 1.1.4",
"textdistance==4.2.0",
]
test_requires = [
"selenium==3.141.0",
"nose",
"pyvirtualdisplay"
]
# Platform specific dependencies
if not on_rtd:
install_requires += ["pytidylib>=0.2.4", "sphinx-rtd-theme>=0.1.8"]
else:
install_requires += test_requires + ["Pygments>=2.0.2"]
if sys.platform == 'win32':
install_requires += ["pbs>=0.110"]
else:
install_requires += ["sh>=1.11"]
# Setup
setup(
name="INGInious",
version=inginious.__version__,
description="An intelligent grader that allows secured and automated testing of code made by students.",
packages=find_packages(),
install_requires=install_requires,
tests_require=test_requires,
extras_require={
"cgi": ["flup>=1.0.3.dev"],
"ldap": ["ldap3"],
"saml2": ["python3-saml"],
"uwsgi": ["uwsgi"],
"test": test_requires
},
scripts=[
'inginious-agent-docker',
'inginious-agent-mcq',
'inginious-backend',
'inginious-webapp',
'inginious-install',
'utils/sync/inginious-synchronize',
'utils/container_update/inginious-container-update',
'utils/database_updater/inginious-database-update'
],
include_package_data=True,
test_suite='nose.collector',
author="INGInious contributors",
author_email="inginious@info.ucl.ac.be",
license="AGPL 3",
url="https://github.com/JuezUN/INGInious",
long_description=open(os.path.join(os.path.dirname(__file__), 'README.md'), encoding='utf8').read()
)