forked from sio2project/oioioi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
93 lines (86 loc) · 3.09 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
# -*- 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==2024.1",
"SQLAlchemy>=2.0,<2.1",
"beautifulsoup4>=4.12,<4.13",
"PyYAML>=6.0,<6.1",
"python-dateutil>=2.9,<2.10",
"django-two-factor-auth>=1.15,<1.16",
"django-registration-redux>=2.12,<2.13",
"Celery>=5.4,<5.5", # watch out for sqlalchemy compatibility
"coreapi>=2.3,<2.4",
"dj-pagination>=2.5,<2.6",
"django-compressor>=4.4,<4.5",
"django-statici18n<2.5",
"Pygments>=2.17,<3.0",
"django-libsass>=0.9,<0.10",
"django-debug-toolbar",
"django-extensions>=3.2,<3.3",
"djangorestframework>=3.14,<3.15",
"Werkzeug",
"pytest>=7.2,<8.0",
"pytest-cov>=4.0,<5.0",
"pytest-django>=4.4,<5.0",
"pytest-html>=4.0,<5.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.2,<5.3",
"django-gravatar2>=1.4,<1.5",
"django-mptt>=0.13,<0.15",
"mistune<2.0", # 2.0 is breaking
"pika>=1.3,<1.4",
"Unidecode>=1.3,<1.4",
"sentry-sdk>=1.35,<2.0",
"fontawesomefree>=6.5,<7.0",
# 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[server]>=2.1,<3.0",
"django-simple-captcha>=0.6,<0.7",
"phonenumbers>=8.13,<8.14",
"pdfminer.six==20231228",
# https://stackoverflow.com/questions/73929564/entrypoints-object-has-no-attribute-get-digital-ocean
#"importlib-metadata<5.0", # we don't need this
"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',
],
},
)