-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
57 lines (50 loc) · 1.39 KB
/
pyproject.toml
File metadata and controls
57 lines (50 loc) · 1.39 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
[project]
name = "nicegui-app"
version = "0.1.0"
description = "A example for how to use nicegui with pytauri."
requires-python = ">=3.10"
dependencies = [
"nicegui >= 2.9.1, < 3",
"fastapi >= 0.115.6",
"uvicorn >= 0.34",
"anyio == 4.*",
"typing-extensions >= 4",
"pytauri == 0.8.*",
]
[dependency-groups]
dev = [{ include-group = "build-system" }]
# keep the same as `[build-system.requires]`
build-system = [
"setuptools >= 80",
"setuptools-rust == 1.*",
"setuptools_scm >= 8",
"Cython >= 3, <4",
]
[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 >= 80",
"setuptools-rust == 1.*",
"setuptools_scm >= 8",
"Cython >= 3, <4",
]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages]
find = { where = ["python"] }
[tool.pyright]
# See: <https://pytauri.github.io/pytauri/0.5/usage/tutorial/build-standalone/#get-portable-python>
# ref: <https://github.com/microsoft/pyright/blob/1.1.391/docs/configuration.md#environment-options>
exclude = [
"**/node_modules",
"**/__pycache__",
"**/dist",
"**/.*",
"**/pyembed",
# 👇 necessary, because when `tauri-cli bundles python,
# it will copy `pyembed` to the target directory (i.e., rust output dir).
"**/target",
# 👆
]