-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
61 lines (53 loc) · 1.7 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
[project]
name = "nicegui-app"
version = "0.1.0"
description = "A example for how to use nicegui with pytauri."
requires-python = ">=3.9"
dependencies = [
"nicegui >= 2.9.1, < 3",
"fastapi >= 0.115.6",
"uvicorn >= 0.34",
"anyio == 4.*",
"typing-extensions >= 4",
"pytauri == 0.2.*",
"pytauri-plugin-notification == 0.2.*",
]
[dependency-groups]
dev = [{ include-group = "build-system" }]
# keep the same as `[build-system.requires]`
build-system = ["setuptools>=61", "setuptools-rust==1.*", "setuptools_scm>=8"]
[project.entry-points.pytauri]
# - "nicegui_app" -> `python/nicegui_app/`
# - "ext_mod" -> `#[pyo3(name = "ext_mod")]` in rust
ext_mod = "nicegui_app.ext_mod"
[build-system]
requires = ["setuptools>=61", "setuptools-rust==1.*", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages]
find = { where = ["python"] }
# see: <https://www.maturin.rs/config>
[tool.maturin]
# the same as [tool.setuptools.packages.find.where]
python-source = "python"
# the same as `[project.entry-points.pytauri.ext_mod]`,
# i.e., `target` in `setup.py`
module-name = "nicegui_app.ext_mod"
# see `setup.py`
features = ["pyo3/extension-module", "tauri/custom-protocol", "pyo3/abi3-py39"]
# equivalent to `setuptools_scm`
sdist-generator = "git"
[tool.pyright]
# see: <https://github.com/microsoft/pyright/blob/1.1.391/docs/configuration.md#environment-options>
exclude = [
"**/node_modules",
"**/__pycache__",
# 👇 necessary, because when `tauri-cli bundles python,
# it will copy `pyembed` to the target directory (i.e., rust output dir).
"**/target",
# 👆
"**/dist",
"**/.venv",
"**/.*",
"src-tauri/pyembed/",
"src-tauri/frontend/",
]