forked from sio2project/oioioi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
94 lines (87 loc) · 3.07 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
# -*- 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)
# All modules in the newest versions at the time of upgrade to Django 4.2
# unless specified otherwise.
requirements = [
"Django>=4.2,<4.3",
"pytz>=2023.3,<2023.4",
"SQLAlchemy<2.1.0",
"beautifulsoup4>=4.12,<4.13",
"PyYAML>=6.0,<6.1",
"python-dateutil>=2.8,<2.9",
"django-two-factor-auth>=1.15,<1.16",
"django-formtools>=2.4,<2.5",
"django-registration-redux>=2.12,<2.13",
"Celery<5.4.0",
"coreapi>=2.3,<2.4",
"dj-pagination>=2.5,<2.6",
"django-compressor>=4.3,<4.4",
"Pygments>=2.15,<2.16",
"django-libsass>=0.9,<0.10",
"django-debug-toolbar",
"django-extensions>=3.2,<3.3",
"djangorestframework>=3.14,<3.15",
"django-oauth-toolkit>=3.0,<3.1",
"Werkzeug",
"pytest>=7.2,<8.0",
"pytest-cov>=4.0,<5.0",
"pytest-django>=4.4,<5.0",
"pytest-html>=3.1,<4.0",
"pytest-metadata>=3.0,<4.0",
"pytest-xdist>=3.2,<4.0",
"requests>=2.31,<2.32",
"fpdf>=1.7,<1.8",
"unicodecsv>=0.14,<0.15",
"dnslib>=0.9,<0.10",
"bleach>=6.0,<6.1",
"chardet>=5.1,<5.2",
"django-gravatar2>=1.4,<1.5",
"django-mptt>=0.14,<0.15",
"mistune<2.0", # 2.0 is breaking
"pika>=1.3,<1.4",
"Unidecode>=1.3,<1.4",
"sentry-sdk>=1.25,<1.26",
"fontawesomefree>=6.4,<6.5",
# A library allowing to nest inlines in django admin.
# Used in quizzes module for adding new quizzes.
"django-nested-admin>=4.0,<4.1",
# SIO2 dependencies:
"filetracker>=2.2.0,<3.0",
"django-simple-captcha>=0.5,<=0.5.18",
"phonenumbers>=8.13,<8.14",
"pdfminer.six==20221105",
# https://stackoverflow.com/questions/73929564/entrypoints-object-has-no-attribute-get-digital-ocean
"importlib-metadata<5.0",
"supervisor<4.3", # previously http://github.com/Supervisor/supervisor/zipball/master#egg=supervisor==4.0.0.dev0
"django-supervisor@git+https://github.com/sio2project/django-supervisor#egg=django-supervisor", # previously http://github.com/badochov/djsupervisor/zipball/master#egg=djsupervisor==0.4.0
]
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',
],
},
)