forked from dotkom/onlineweb4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
149 lines (131 loc) · 4.5 KB
/
pyproject.toml
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
[tool.poetry]
name = "onlineweb4"
version = "1.0.0"
description = "Web pages for Online, Linjeforeningen for Informatikk at NTNU"
authors = ["dotkom <[email protected]>"]
license = "MIT"
[tool.poetry.dependencies]
python = "~3.7"
Django = "~3.0"
djangorestframework = "~3.12"
django-filter = "~2.4"
pillow = "~8.1"
markdown2 = "~2.4"
pytz = "^2021.1"
python-memcached = "~1.59"
stripe = "~2.57"
icalendar = "~4.0"
google-api-python-client = "~1.10"
celery = "~4.4"
PyMuPDF = "~1.18"
django-filebrowser = "~3.14"
django-chunks = { git = "https://github.com/dotkom/django-chunks.git", rev = "e6bf109d4fd286964024c140ac1b8f3d86713540" }
django-crispy-forms = "^1.11"
django-extensions = "^3.1"
django-dynamic-fixture = "^3.1"
django-recaptcha = "~2.0" # Google ReCaptcha
django-oauth-toolkit = "^1.5.0" # OAuth2 authentication support
django-watson = "~1.5.5" # Indexed model search lib
django-reversion = "~3.0" # Model version history with middleware hooks to all post_save signals
django-guardian = "~2.4" # Per Object permissions framework
django-taggit = "~1.4" # Generic multi-model tagging library
django-taggit-serializer = "~0.1" # REST Framework serializers for Django-taggit
APScheduler = "~3.7" # Scheduler
redwine = { git = "https://github.com/dotkom/redwine.git", rev = "1.3.2" }
reportlab = "~3.5"
pdfdocument = "~4.0"
Unidecode = "~1.2" # Translates every unicode symbol to the closest ascii. online_mail_usernames
django-markdown-deux = "~1.0"
django-cors-headers = "~3.7" # Enable CORS for Nibble
django-datetime-widget = { git = "https://github.com/oleast/django-datetime-widget.git", rev = "95a5ba4738853d1ed4081e1e33e1600cba984aad" }
django-webpack-loader = "~0.7" # Integration with webpack
dj-database-url = "~0.5" # Allows to configure databases using URLs
python-decouple = "~3.4" # Configuration and settings management
django-oidc-provider = "~0.7" # OpenID Connect Provider
docutils = "~0.16" # Allows django-admindocs to generate documentation
requests-oauthlib = "~1.3" # Simplify OAuth2 connections to external apps
oic = "~1.2" # OpenID Connect Client
python-dateutil = "~2.8" # Simplify date parsing
coreapi = "~2.3" # API Documentation
requests = { version = "~2.25", extras = [ "security" ] }
# Wiki
wiki = "0.6b1"
# Django 1.9 support
django-appconf = "~1.0"
# non-pip
# imagemagick # From package repository. Tested with version == 8:6.7.7.10.
# libjpeg-dev # From package repository.
# libpq-dev # From package repository.
# Monitoring
sentry-sdk = { version = "~1.1", extras = [ "django", "celery" ] }
django-js-reverse = "~0.9"
psycopg2-binary = { version = "~2.8", optional = true }
uwsgi = { version = "~2.0", optional = true }
redis = "~3.5"
# Docs
sphinx = { version = "*", optional = true }
sphinx-rtd-theme = { version = "*", optional = true }
pyyaml = "^5.3.1"
pywebpush = "^1.11.0"
[tool.poetry.dev-dependencies]
# Testing
pytest = "~6.2"
pytest-cov = "~2.12"
pytest-django = "~4.3"
factory-boy = "~3.2"
freezegun = "~1.1"
mock = "~4.0"
tox = "~3.23"
# Linting
flake8 = "~3.8"
isort = "~5.8"
pycodestyle = "~2.6"
black = "21.5b2"
[tool.poetry.extras]
prod = ["psycopg2-binary", "uwsgi"]
docs = ["sphinx", "sphinx-rtd-theme"]
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = tests, flake8, isort, black
skipsdist = True
basepython = python3
[testenv]
basepython = python3
whitelist_externals =
npm
py.test
isort
flake8
black
commands =
isort: isort -c apps middleware scripts utils
flake8: flake8 apps middleware scripts utils
black: black --check apps middleware scripts utils onlineweb4
[testenv:tests]
passenv =
DATABASE_URL
OAUTH2_*
OW4_*
setenv =
DATABASE_URL = sqlite:///db.db
DJANGO_SETTINGS_MODULE = onlineweb4.settings
PYTHONPATH = {toxinidir}:{toxinidir}
OW4_WEBPACK_LOADER_STATS_FILE = webpack-stats-test.json
commands =
npm run build:test
py.test --cov=apps --cov-report xml --ignore=src/
"""
[tool.isort]
profile = "black"
skip = [ ".tox", "onlineweb4/settings/__init__.py", "migrations" ]
default_section = "THIRDPARTY"
known_first_party = [ "apps", "utils" ]
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "onlineweb4.settings"
norecursedirs = [ ".*", "env*", "tmp*" ]
python_files = [ "tests.py", "*_tests.py" ]
addopts = "--nomigrations"
[build-system]
requires = ["poetry>=1.0.0"]
build-backend = "poetry.masonry.api"