-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
121 lines (105 loc) · 2.79 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
[project]
name = "meta-edc"
dynamic = ["version"]
description = "META Trial EDC (http://www.isrctn.com/ISRCTN76157257)"
readme = "README.rst"
dependencies = [
"edc==0.6.19",
"edc-microscopy",
"beautifulsoup4",
"celery[redis]",
"django-pylabels",
]
requires-python = '>=3.12'
keywords = ["django", "clinicedc", "META EDC", "EDC", "clinical trials"]
authors = [{name="Erik van Widenfelt", email="ew2789@gmail.com"}, {name="Jonathan Willitts", email="j.willitts@ucl.ac.uk"}]
classifiers = [
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 5.1",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
]
license = {file = "LICENSE"}
[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
version_file = "_version.py"
[tool.black]
line-length = 95
target-version = ["py312"]
extend-exclude = '''^(.*\/)*\b(migrations)\b($|\/.*$)'''
[tool.isort]
profile = "black"
py_version = "312"
skip = [".tox", ".eggs", "migrations"]
[tool.coverage.run]
parallel = false
branch = true
source = ["meta_edc"]
[tool.coverage.paths]
source = ["meta_edc"]
[tool.coverage.report]
show_missing = true
skip_covered = true
omit = ["requirements.txt"]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
]
[tool.tox]
legacy_tox_ini = """
[tox]
envlist =
py{312,313}-dj{51}-edc{prod,dev},
py{313}-dj{dev}-edc{dev},
lint
pre-commit
isolated_build = true
[gh-actions]
python =
3.12: py312, lint, pre-commit
3.13: py313
[gh-actions:env]
DJANGO =
5.1: dj51, lint, pre-commit
dev: djdev
EDC_CODEBASE =
Prod: edcprod, lint, pre-commit
Dev: edcdev
[testenv]
deps =
-r https://raw.githubusercontent.com/clinicedc/edc/develop/requirements.tests/tox.txt
-r https://raw.githubusercontent.com/clinicedc/edc/develop/requirements.tests/test_utils.txt
dj51: Django>=5.1,<5.2
djdev: https://github.com/django/django/tarball/main
commands =
pip install -U pip
python --version
pip --version
edcdev: pip install -U -r https://raw.githubusercontent.com/clinicedc/edc/develop/requirements.tests/edc.txt
pip freeze
coverage run -a runtests.py
coverage report
[testenv:lint]
deps = -r https://raw.githubusercontent.com/clinicedc/edc/develop/requirements.tests/lint.txt
commands =
python --version
pip --version
pip freeze
isort --profile=black --check --diff .
black --check --diff .
flake8 .
[testenv:pre-commit]
deps = pre-commit
commands =
python --version
pip --version
pip freeze
pre-commit autoupdate
pre-commit run --all-files
"""