forked from sio2project/oioioi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
111 lines (93 loc) · 3.27 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
# -*- coding: utf-8 -*-
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
import os
import sys
if os.getuid() == 0: # root
print >>sys.stderr, "ERROR: This setup.py cannot be run as root."
print >>sys.stderr, "ERROR: If you want to proceed anyway, hunt this"
print >>sys.stderr, "ERROR: message and edit the source at your own risk."
sys.exit(2)
setup(
name='oioioi',
version='0.1.1.dev',
description='The web frontend of the SIO2 Project contesting system',
author='The SIO2 Team',
author_email='[email protected]',
url='http://sio2project.mimuw.edu.pl',
install_requires=[
"Django>=1.7.2,<1.8",
"pytz>=2013b",
"sqlalchemy",
"BeautifulSoup",
"PyYAML",
"python-dateutil",
"django-nose>=1.3",
# The newer version changes API of RegistrationForm, causing the
# following error:
#
# File lib/python2.7/site-packages/registration/views.py",
# line 94, in form_valid
# new_user = self.register(request, form)
# TypeError: register() takes exactly 7 arguments (3 given)
"django-registration-redux==1.1",
"django-celery>=3.1.15",
"django-supervisor",
"linaro-django-pagination",
"django-compressor>=1.4",
"django-grappelli>=2.6,<2.7",
"django-overextends",
"pygments",
"django-debug-toolbar",
"django-extensions>=1.0.0",
"werkzeug",
# pylint: disable=line-too-long
# Old versions have buggy coverage reports generation, raising
# an exception like this:
#
# IOError: [Errno 13] Permission denied: '/usr/share/pyshared/PIL/__init__.py,cover'
#
"nose >= 1.1",
"nose-capturestderr",
"nose-html",
"nose-profile",
"fpdf",
"pdfminer>=20110515,<20131113",
"slate",
"unicodecsv",
"shortuuid",
'enum34',
"chardet",
"django-gravatar2",
"django-mptt",
"mistune",
# A library required by AMQP, used in notifications system.
# We need version >= 1.5.1, becuase it has fixed this bug
# https://github.com/celery/librabbitmq/issues/42
"librabbitmq>=1.5.1",
# Dependencies from external sources live in requirements.txt
],
packages=find_packages(exclude=['ez_setup']),
include_package_data=True,
test_suite='oioioi.runtests.runtests',
# Well, dependency_links is deprecated in pip and setuptools. We leave
# it for some time, though. You should install oioioi using
#
# $ pip install -r requirements.txt
#
dependency_links=[
'http://github.com/sio2project/sioworkers/zipball/master#egg=sioworkers-1.0.dev',
'http://github.com/sio2project/filetracker/zipball/master#egg=filetracker-1.0.dev',
'http://github.com/mitsuhiko/werkzeug/zipball/master#egg=Werkzeug-dev',
],
entry_points={
'console_scripts': [
'django-staticfiles-lessc = oioioi.base.lessc:main',
'oioioi-create-config = oioioi.deployment.create_config:main',
],
},
)