-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
88 lines (82 loc) · 2.24 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
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "mep-django"
description = "Shakespeare and Company Project - Python/Django web application"
requires-python = ">=3.9"
license = {text = "Apache-2"}
classifiers = [
"Programming Language :: Python :: 3",
]
dependencies = [
"Django>=3.2.4,<4.0",
"django-grappelli>=3.0",
"cached_property",
"django-cas-ng",
"pucas>=0.8",
"eulxml>=1.1.3",
"viapy>=0.3",
"wagtail>=5.1,<5.2",
"django-autocomplete-light>=3.9",
"python-dateutil",
"django-apptemplates",
"py-flags",
"django-tabular-export",
"django-webpack-loader<=2.0",
"parasolr>=0.9.2",
"django-widget-tweaks",
# pymarc api changes significantly in 5.0
"pymarc<5.0",
"progressbar2",
"rdflib>=6.0",
"djiffy>=0.6",
"django-csp",
"bleach",
"django-fullurl",
"unidecode",
"stop_words",
# as of 2024-05-08 django-markdownify==0.9.4 causes an error with bleach
"django-markdownify==0.9.3",
"tweepy",
# specify bs4 version to avoid wagtail version conflict
"beautifulsoup4<4.9",
"psycopg2-binary",
# TODO: unpin piffle from 0.4 once breaking changes with piffle.iiif are handled in djiffy
"piffle==0.4",
# 4.0 is not compatible with django 3.2, so pin to pre 4.0
"django-import-export<4.0",
"django-adminlogentries"
]
dynamic = ["version", "readme"]
[tool.setuptools]
packages = ["mep"]
[tool.setuptools.dynamic]
version = {attr = "mep.__version__"}
readme = {file = ["README.rst"]}
[project.optional-dependencies]
dev = [
"pytest>=5",
"pytest-django>=3.4.7",
"pytest-cov",
"pytest-ordering",
# pin to pre 4.4, which forces django 4.2
"django-debug-toolbar<=4.4",
"sphinx",
"wheel",
"pre-commit",
"wagtail-factories<4.1",
]
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE="mep.settings"
# look for tests in standard django test location
python_files = ["mep/**/tests.py", "mep/**/tests/*.py"]
addopts = "-p parasolr.django.disconnect_indexing"
# limit testpath to speed up collecting step
testpaths = "mep"
markers = ["last", "second_to_last"]
[tool.black]
line-length = 88
target-version = ['py39']
# include = ''
# extend-exclude = ''