-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml.jinja
59 lines (51 loc) · 1.24 KB
/
pyproject.toml.jinja
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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "{{project_name}}"
version = "0.0.1"
description = "{{description}}"
readme = "README.md"
requires-python = ">=3.8"
license = {file = "LICENSE"}
authors = [
{name = "{{author}}" }
]
keywords = ["Snek5000", "Fluidsim", "Nek5000", "CFD"]
dependencies = [
"snek5000 >= 0.9.0"
]
[project.optional-dependencies]
tests = [
"nox",
"pytest",
"pytest-cov"
]
[project.entry-points."snek5000.solvers"]
{{short_name}} = "{{package_name}}.solver"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
{{package_name}} = ["*.usr.f", "*.par.cfg", "Snakefile", "etc/*.yml"{{ ', "toolbox/*"' if kth_framework }}]
[tool.coverage.run]
source = ["{{package_name}}", "./tests"]
data_file = ".coverage/coverage"
omit = [
"*/try_*.py",
"*/_old_*.py",
"tests/test_slow_*.py",
]
[tool.coverage.report]
show_missing = true
exclude_lines = [
"if __name__ == .__main__.:",
'if "sphinx" in sys.modules:',
"raise ValueError",
"raise NotImplementedError",
"except KeyError:",
"except ImportError:",
"except AttributeError:",
"except NotImplementedError:"
]
[tool.coverage.html]
directory = ".coverage/html"