-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpyproject.toml
More file actions
140 lines (128 loc) · 3.26 KB
/
Copy pathpyproject.toml
File metadata and controls
140 lines (128 loc) · 3.26 KB
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
[build-system]
requires = [
"setuptools>=77",
"wheel",
]
build-backend = "setuptools.build_meta"
[project]
name = "petab"
dynamic = ["version", "readme"]
description = "Parameter estimation tabular data"
requires-python = ">=3.12"
dependencies = [
"numpy>=2.1",
"pandas>=1.2.0",
"python-libsbml>=5.17.0",
"sympy",
"colorama",
"pyyaml",
"jsonschema",
"antlr4-python3-runtime==4.13.1",
"pydantic>=2.10",
"sbmlmath>=0.4.0",
]
license = "MIT"
authors = [
{name = "The PEtab developers"},
]
maintainers = [
{name = "Daniel Weindl", email = "sci@danielweindl.de"},
{name = "Dilan Pathirana", email = "dilan.pathirana@uni-bonn.de"},
{name = "Maren Philipps", email = "maren.philipps@uni-bonn.de"},
]
[project.optional-dependencies]
tests = [
"antimony>=3.1.0",
"copasi-basico>=0.85",
"petab_sciml",
"pysb",
"pytest",
"pytest-cov",
"scipy",
]
quality = [
"pre-commit",
]
reports = [
# https://github.com/spatialaudio/nbsphinx/issues/641
"Jinja2==3.1.6",
]
antimony = [
"antimony>=2.14.0",
]
combine = [
"python-libcombine>=0.2.6",
]
doc = [
"sphinx>=3.5.3, !=5.1.0",
"sphinxcontrib-napoleon>=0.7",
"sphinx-markdown-tables>=0.0.15",
"sphinx-rtd-theme>=0.5.1",
"m2r2",
"myst-nb>=0.14.0",
# https://github.com/spatialaudio/nbsphinx/issues/687#issuecomment-1339271312
"ipython>=7.21.0, !=8.7.0",
"pysb",
"antimony>=2.14.0",
]
vis = [
"matplotlib>=3.6.0",
"seaborn",
"scipy"
]
sciml = [
"petab_sciml",
]
[project.scripts]
petablint = "petab.petablint:main"
petab_visualize = "petab.v1.visualize.cli:_petab_visualize_main"
[project.urls]
Repository = "https://github.com/PEtab-dev/libpetab-python"
Documentation = "https://petab.readthedocs.io/projects/libpetab-python/"
[dependency-groups]
ci = [
"petab[tests,reports,combine,vis]",
"petabtests @ git+https://github.com/PEtab-dev/petab_test_suite@main",
"benchmark_models_petab @ git+https://github.com/Benchmarking-Initiative/Benchmark-Models-PEtab.git@master#subdirectory=src/python",
]
[tool.uv]
# pysb<1.17 fails to build: its legacy `ez_setup.py` bootstrap downloads
# setuptools from a defunct pypi.python.org URL.
constraint-dependencies = ["pysb>=1.17.0"]
# pysb pins an older sympy than we need; force a newer one.
override-dependencies = ["sympy>=1.12.1"]
[tool.setuptools.packages.find]
include = ["petab", "petab.*"]
namespaces = false
[tool.setuptools.package-data]
petab = ["petab/schemas/*", "petab/visualize/templates/*"]
[tool.ruff]
line-length = 79
lint.extend-select = [
"F", # Pyflakes
"I", # isort
"S", # flake8-bandit
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"T20", # flake8-print
"W", # pycodestyle Warnings
"E", # pycodestyle Errors
"UP", # pyupgrade
# TODO: "ANN001", "D", # pydocstyle (PEP 257)
]
lint.extend-ignore = ["F403", "F405", "S101"]
lint.exclude = [
"petab/v1/math/_generated/*", # auto-generated
]
[tool.ruff.lint.pydocstyle]
convention = "pep257"
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["T201"]
"petab/v1/C.py" = ["N999"]
"petab/v2/C.py" = ["N999"]
"petab/v1/math/SympyVisitor.py" = ["N999"]
[tool.ruff.format]
docstring-code-format = true
exclude = [
"petab/math/_generated/*", # auto-generated
]