Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
184 lines (164 loc) · 4.11 KB
/
Copy pathpyproject.toml
File metadata and controls
184 lines (164 loc) · 4.11 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
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
[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.2",
"pandas>=2.3",
"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]
antimony = [
"antimony>=2.14.0",
]
combine = [
"python-libcombine>=0.2.6",
]
vis = [
"matplotlib>=3.10",
"seaborn",
"scipy>=1.15"
]
reports = [
"Jinja2",
]
sciml = [
"petab_sciml",
]
all = [
"petab[antimony,combine,reports,sciml,vis]",
]
[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]
test = [
"petab[all]",
"antimony>=3.1.0",
"copasi-basico>=0.85",
"pysb",
"pytest",
"pytest-cov",
"scipy",
# for collecting changelog entries, see changelog.d/README.md
"towncrier",
"petabtests @ git+https://github.com/PEtab-dev/petab_test_suite@main",
"benchmark_models_petab @ git+https://github.com/PEtab-dev/petab-benchmark-problems.git@main#subdirectory=src/python",
]
doc = [
"petab[antimony,vis]",
"sphinx>=3.5.3, !=5.1.0",
"sphinx-markdown-tables>=0.0.15",
"sphinx-rtd-theme>=0.5.1",
"m2r2",
"myst-nb>=0.14.0",
"ipython>=8.30",
"pysb",
]
dev = [
{include-group = "test"},
"pre-commit",
]
[tool.uv]
default-groups = ["dev"]
# 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.uv.sources]
pysb = { git = "https://github.com/pysb/pysb", branch = "master" }
[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
]
# Collecting changelog entries from changelog.d/, see changelog.d/README.md
[tool.towncrier]
name = "libpetab-python"
filename = "CHANGELOG.md"
directory = "changelog.d"
template = "changelog.d/template.md.j2"
start_string = "<!-- towncrier release notes start -->\n"
title_format = "### {version}"
underlines = ["", "", ""]
[[tool.towncrier.type]]
directory = "breaking"
name = "Breaking changes"
showcontent = true
[[tool.towncrier.type]]
directory = "deprecation"
name = "Deprecations"
showcontent = true
[[tool.towncrier.type]]
directory = "feature"
name = "Features"
showcontent = true
[[tool.towncrier.type]]
directory = "fix"
name = "Fixes"
showcontent = true
[[tool.towncrier.type]]
directory = "doc"
name = "Documentation"
showcontent = true
[[tool.towncrier.type]]
directory = "misc"
name = "Other changes"
showcontent = true