forked from sio2project/oioioi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
91 lines (84 loc) · 2.57 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
# -*- coding: utf-8 -*-
from __future__ import print_function
try:
from setuptools import find_packages, setup
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("ERROR: This setup.py cannot be run as root.", file=sys.stderr)
print("ERROR: If you want to proceed anyway, hunt this", file=sys.stderr)
print("ERROR: message and edit the source at your own risk.", file=sys.stderr)
sys.exit(2)
requirements = [
"Django>=3.2,<3.3", # when upgrading, upgrade also django-two-factor-auth!
"pytz>=2013b,<=2021.1",
"sqlalchemy<1.5",
"beautifulsoup4<4.10",
"PyYAML<5.5",
"python-dateutil<2.9",
"django-two-factor-auth==1.13.2",
"django-formtools>=2.2,<=2.3",
"django-registration-redux>=2.6,<=2.9",
"Celery==4.4.7",
"coreapi>=2.3.0,<2.4",
"dj-pagination==2.5",
"django-compressor==2.4.1", # latest version
"pygments<2.6",
"django-libsass>=0.7,<=0.8",
"django-debug-toolbar>=3.0,<=3.3",
"django-extensions>=3.0,<=3.2", # Django 2.2
"djangorestframework>=3.10,<3.13",
"werkzeug<1.1",
'pytest==4.6.11',
'pytest-metadata==1.11.0',
'pytest-django==3.10.0',
'pytest-html==1.22.1',
'pytest-xdist==1.34.0',
'pytest-cov>=2.11,<2.12',
'requests<3',
"fpdf<1.8",
"unicodecsv<0.15",
"shortuuid<1",
"dnslib<0.10",
"bleach>=3.1.0,<3.2",
"chardet<4.1",
"django-gravatar2<1.5",
"django-mptt>=0.10,<=0.12",
"mistune<0.9",
"pika<1.3",
"raven<6.11",
"unidecode<1.3",
"sentry-sdk",
"fontawesomefree==6.1.1",
# A library allowing to nest inlines in django admin.
# Used in quizzes module for adding new quizzes.
"django-nested-admin<3.4",
# SIO2 dependencies:
"filetracker>=2.1.5,<3.0",
"django-simple-captcha>=0.5.16,<=0.5.18",
# HOTFIX
"phonenumbers<8.13",
# this is the last pdfminer.six version to support python2
"pdfminer.six==20191110",
]
setup(
name='oioioi',
version='0.2.0.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=requirements,
packages=find_packages(exclude=['ez_setup']),
include_package_data=True,
test_suite='oioioi.runtests.runtests',
entry_points={
'console_scripts': [
'oioioi-create-config = oioioi.deployment.create_config:main',
],
},
)