-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathpyproject.toml
56 lines (51 loc) · 1.23 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
[project]
name = "example_pkg"
version = "0.0dev0"
requires-python = ">=3.7"
description = "spin Example Package"
[build-system]
build-backend = "mesonpy"
requires = [
"meson-python>=0.13.0rc0",
]
[tool.spin]
package = 'example_pkg'
[tool.spin.commands]
# If you don't need sections, you can also provide a list of commands under [tool.spin]:
#
# commands = [
# "spin.cmds.meson.build",
# "spin.cmds.meson.test",
# "spin.cmds.meson.shell",
# "spin.cmds.meson.ipython",
# "spin.cmds.meson.python",
# ".spin/cmds.py:example"
# ]
"Build" = [
"spin.cmds.meson.build",
"spin.cmds.meson.test",
"spin.cmds.build.sdist",
]
"Documentation" = [
"spin.cmds.meson.docs"
]
"Environments" = [
"spin.cmds.meson.shell",
"spin.cmds.meson.ipython",
"spin.cmds.meson.python",
"spin.cmds.meson.run"
]
"Debug" = [
"spin.cmds.meson.gdb",
"spin.cmds.meson.lldb"
]
"Extensions" = [".spin/cmds.py:example", ".spin/cmds.py:build_ext"]
"Pip" = [
"spin.cmds.pip.install"
]
"Meta" = [
"spin.cmds.meta.introspect"
]
[tool.spin.kwargs]
".spin/cmds.py:example" = {"test" = "default override", "default_kwd" = 3}
"spin.cmds.meson.ipython" = {"pre_import" = '''import example_pkg as ep; print(f'\nPreimported example_pkg {ep.__version__} as ep')'''}