forked from openfun/ralph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
193 lines (175 loc) · 4.48 KB
/
setup.cfg
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
;;
;; Ralph package
;;
[metadata]
name = ralph-malph
version = 3.9.0
description = The ultimate toolbox for your learning analytics
long_description = file:README.md
long_description_content_type = text/markdown
author = Open FUN (France Universite Numerique)
author_email = fun.dev@fun-mooc.fr
url = https://openfun.github.io/ralph/
license = MIT
keywords = Open edX, Analytics, xAPI, LRS
classifiers =
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
License :: OSI Approved :: MIT License
Natural Language :: English
Programming Language :: Python :: 3
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
[options]
include_package_data = True
install_requires =
; By default, we only consider core dependencies required to use Ralph as a
; library (mostly models).
langcodes>=3.2.0
pydantic[dotenv,email]>=1.10.0, <2.0
rfc3987>=1.3.0
package_dir =
=src
packages = find:
zip_safe = True
python_requires = >= 3.7
[options.extras_require]
backend-clickhouse =
clickhouse-connect[numpy,pandas]<0.6
python-dateutil>=2.8.2
backend-es =
elasticsearch[async]>=8.0.0
backend-ldp =
ovh>=1.0.0
requests>=2.0.0
backend-lrs =
httpx<0.25.0 # pin as Python 3.7 is no longer supported from release 0.25.0
more-itertools==10.1.0
backend-mongo =
motor[srv]>=3.3.0
pymongo[srv]>=4.0.0
python-dateutil>=2.8.2
backend-s3 =
boto3>=1.24.70
botocore>=1.27.71
requests-toolbelt>=1.0.0
backend-swift =
python-keystoneclient>=5.0.0
python-swiftclient>=4.0.0
backend-ws =
websockets>=10.3
cli =
bcrypt>=4.0.0
click>=8.1.0
click-option-group>=0.5.0
sentry-sdk[fastapi]>=1.9.0
dev =
anyio<4.0.1 # unpin until fastapi supports new major version of anyio
bandit==1.7.5
black==23.10.1
cryptography==41.0.5
factory-boy==3.3.0
flake8==6.1.0
hypothesis==6.88.1
isort==5.12.0
logging-gelf==0.0.31
mike==1.1.2
mkdocs==1.5.3
mkdocs-click==0.8.1
mkdocs-material==9.4.7
mkdocstrings[python-legacy]==0.23.0
moto==4.2.7
mypy==1.6.1
pydocstyle==6.3.0
pyfakefs==5.3.0
pylint==3.0.2
pytest==7.4.3
pytest-asyncio==0.21.1
pytest-cov==4.1.0
pytest-httpx<0.23.0 # pin as Python 3.7 and 3.8 is no longer supported from release 0.23.0
requests-mock==1.11.0
responses<0.23.2 # pin until boto3 supports urllib3>=2
types-python-dateutil == 2.8.19.14
types-python-jose == 3.3.4.8
types-requests<2.31.0.11
types-cachetools ==5.3.0.7
ci =
twine==4.0.2
lrs =
bcrypt==4.0.1
fastapi==0.104.0
cachetools==5.3.2
; We temporary pin `h11` to avoid pip downloading the latest version to solve a
; dependency conflict caused by `httpx` which requires httpcore>=0.15.0,<0.16.0 and
; `httpcore` depends on h11>=0.11,<0.13.
; See: https://github.com/encode/httpx/issues/2244
h11>=0.11.0
httpx<0.25.0 # pin as Python 3.7 is no longer supported from release 0.25.0
sentry_sdk==1.32.0
python-jose==3.3.0
uvicorn[standard]==0.23.2
[options.packages.find]
where = src
[options.entry_points]
console_scripts =
ralph = ralph.__main__:cli.cli
[wheel]
universal = 1
;;
;; Third-party packages configuration
;;
[flake8]
max-line-length = 88
extend-ignore = E203
exclude =
.conda,
.git,
.venv,
build,
venv,
__pycache__,
node_modules,
*/migrations/*
[isort]
known_ralph=ralph
sections=FUTURE,STDLIB,THIRDPARTY,RALPH,FIRSTPARTY,LOCALFOLDER
skip_glob=venv,*/.conda/*
profile=black
[pydocstyle]
convention = google
match_dir = ^(?!tests|venv|build|scripts).*
match = ^(?!(setup)\.(py)$).*\.(py)$
[mypy]
warn_return_any = True
warn_unused_configs = True
disallow_untyped_defs = True
files=src/ralph/**/*.py
plugins = pydantic.mypy
[mypy-rfc3987.*]
ignore_missing_imports = True
[mypy-requests_toolbelt.*]
ignore_missing_imports = True
[mypy-botocore.*]
ignore_missing_imports = True
[mypy-boto3.*]
ignore_missing_imports = True
[mypy-clickhouse_connect.*]
ignore_missing_imports = True
[mypy-ovh.*]
ignore_missing_imports = True
[mypy-swiftclient.service.*]
ignore_missing_imports = True
[pydantic-mypy]
init_forbid_extra = True
init_typed = True
warn_required_dynamic_aliases = True
[tool:pytest]
addopts = -v --cov-report term-missing --cov-config=.coveragerc --cov=ralph
python_files =
test_*.py
tests.py
testpaths =
tests