forked from xneby/sioworkers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
123 lines (107 loc) · 3.94 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
from setuptools import setup, find_packages
setup(
name = "sioworkers",
version = '1.3',
author = "SIO2 Project Team",
author_email = '[email protected]',
description = "Programming contest judging infrastructure",
url = 'https://github.com/sio2project/sioworkers',
license = 'GPL',
# we need twisted.plugins in packages to install the sio twisted command
packages = find_packages() + ['twisted.plugins'],
namespace_packages = ['sio', 'sio.compilers', 'sio.executors'],
install_requires = [
'amqp==2.6.1',
'attrs==20.3.0',
'Automat==20.2.0',
'billiard==3.6.3.0',
'celery==4.4.0',
'constantly==15.1.0',
'enum34==1.1.6',
'filetracker==1.1.0',
'flup==1.0.3',
'hyperlink==21.0.0',
'idna==2.5',
'importlib-metadata==3.4.0',
'incremental==17.5.0',
'kombu==4.6.11',
'pkg-resources==0.0.0',
'poster==0.8.1',
'PyHamcrest==2.0.2',
'pytz==2021.1',
'simplejson==3.16.0',
'six==1.15.0',
'sortedcontainers==2.1.0',
'supervisor==4.1.0',
'Twisted==19.10.0',
'typing==3.7.4.3',
'typing-extensions==3.7.4.3',
'vine==1.3.0',
'zipp==3.4.0',
'zope.interface==5.2.0',
],
setup_requires = [
'nose',
'enum34==1.1.6',
],
entry_points = {
'sio.jobs': [
'ping = sio.workers.ping:run',
'compile = sio.compilers.job:run',
'exec = sio.executors.executor:run',
'vcpu-exec = sio.executors.vcpu_exec:run',
'cpu-exec = sio.executors.executor:run',
'unsafe-exec = sio.executors.unsafe_exec:run',
'ingen = sio.executors.ingen:run',
'inwer = sio.executors.inwer:run',
],
'sio.compilers': [
# Example compiler:
'foo = sio.compilers.template:run',
# Default extension compilers:
'default-c = sio.compilers.gcc:run_default_c',
'default-cc = sio.compilers.gcc:run_default_cpp',
'default-cpp = sio.compilers.gcc:run_default_cpp',
'default-pas = sio.compilers.fpc:run_default',
'default-java = sio.compilers.java:run_default',
'default-py = sio.compilers.python:run_python',
# Sandboxed compilers:
'c = sio.compilers.gcc:run_gcc',
'gcc = sio.compilers.gcc:run_gcc',
'cc = sio.compilers.gcc:run_gplusplus',
'cpp = sio.compilers.gcc:run_gplusplus',
'g++ = sio.compilers.gcc:run_gplusplus',
'pas = sio.compilers.fpc:run',
'fpc = sio.compilers.fpc:run',
'java = sio.compilers.java:run',
# Non-sandboxed compilers
'system-c = sio.compilers.system_gcc:run_gcc',
'system-gcc = sio.compilers.system_gcc:run_gcc',
'system-cc = sio.compilers.system_gcc:run_gplusplus',
'system-cpp = sio.compilers.system_gcc:run_gplusplus',
'system-g++ = sio.compilers.system_gcc:run_gplusplus',
'system-pas = sio.compilers.system_fpc:run',
'system-fpc = sio.compilers.system_fpc:run',
'system-java = sio.compilers.system_java:run',
],
'console_scripts': [
'sio-batch = sio.workers.runner:main',
'sio-run-filetracker = sio.workers.ft:launch_filetracker_server',
'sio-get-sandbox = sio.workers.sandbox:main',
'sio-compile = sio.compilers.job:main',
'sio-celery-worker = sio.celery.worker:main',
]
}
)
# Make Twisted regenerate the dropin.cache, if possible. This is necessary
# because in a site-wide install, dropin.cache cannot be rewritten by
# normal users.
try:
from twisted.plugin import IPlugin, getPlugins
except ImportError:
pass
# HACK: workaround for hudson
except TypeError:
pass
else:
list(getPlugins(IPlugin))