-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathpyproject.toml
109 lines (84 loc) · 2.17 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
[tool.poetry]
name = "ziggy-pydust"
version = "0.1.0"
description = ""
authors = ["Nicholas Gates <[email protected]>"]
license = "Apache 2.0"
readme = "README.md"
packages = [{ include = "pydust" }]
include = ["src"]
exclude = ["example"]
[tool.poetry.plugins."pytest11"]
pydust = "pydust.pytest_plugin"
[tool.poetry.dependencies]
python = "^3.11"
ziglang = "^0.11.0"
pydantic = "^2.3.0"
setuptools = "^69.0.0"
black = "^23.9.1"
[tool.poetry.group.dev.dependencies]
pytest = "^8.0.0"
ruff = "^0.4.0"
[tool.poetry.group.docs.dependencies]
# For generating docs
ziglang = "^0.11.0"
mkdocs-material = "^9.2.6"
mkdocs-include-markdown-plugin = { version = "^6.0.1", python = "<3.13" }
mike = "^2.0.0"
[tool.poetry.group.test.dependencies]
numpy = "^1.25.2"
[tool.poetry.scripts]
pydust = "pydust.__main__:main"
[tool.black]
line-length = 120
[tool.ruff]
line-length = 120
select = ["F", "E", "W", "UP", "I001", "I002"]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
testpaths = ["test", "example"]
# Out test modules
[tool.pydust]
root = "example/"
build_zig = "pytest.build.zig"
[[tool.pydust.ext_module]]
name = "example.exceptions"
root = "example/exceptions.zig"
[[tool.pydust.ext_module]]
name = "example.hello"
root = "example/hello.zig"
[[tool.pydust.ext_module]]
name = "example.gil"
root = "example/gil.zig"
[[tool.pydust.ext_module]]
name = "example.memory"
root = "example/memory.zig"
[[tool.pydust.ext_module]]
name = "example.modules"
root = "example/modules.zig"
[[tool.pydust.ext_module]]
name = "example.pytest"
root = "example/pytest.zig"
[[tool.pydust.ext_module]]
name = "example.result_types"
root = "example/result_types.zig"
[[tool.pydust.ext_module]]
name = "example.functions"
root = "example/functions.zig"
[[tool.pydust.ext_module]]
name = "example.classes"
root = "example/classes.zig"
[[tool.pydust.ext_module]]
name = "example.buffers"
root = "example/buffers.zig"
[[tool.pydust.ext_module]]
name = "example.iterators"
root = "example/iterators.zig"
[[tool.pydust.ext_module]]
name = "example.operators"
root = "example/operators.zig"
[[tool.pydust.ext_module]]
name = "example.code"
root = "example/code.zig"