Skip to content

Commit 8730e9d

Browse files
committed
feat(template): add nuitka for building
1 parent 3bc0822 commit 8730e9d

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

template/Justfile.jinja

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,20 @@ init:
88
build:
99
uv build
1010

11+
dev:
12+
uv run python -m {{ project_package }}
13+
14+
deploy:
15+
uv run nuitka src/{{ project_package }}/__main__.py \
16+
--standalone \
17+
--onefile \
18+
--output-filename={{ project_name }} \
19+
--output-dir=dist \
20+
--follow-imports \
21+
--include-module=wx._xml
22+
--windows-console-mode=disable \
23+
--windows-icon-from-ico=icons/app_icon.ico
24+
1125
lint:
1226
uv run pylint src/ tests/
1327

template/pyproject.toml.jinja

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,15 @@ changelog = "https://github.com/{{ vcs_github_path }}/blob/main/CHANGELOG.md"
2626
[dependency-groups]
2727
dev = [
2828
"chance>=0.110",
29+
"nuitka>=2.7.12",
2930
"pre-commit>=4.3.0",
3031
"pylint>=3.3.8",
3132
"pytest>=8.4.1",
3233
"pytest-cov>=6.2.1",
3334
{% if with_tox %}
3435
"tox>=4.28.4",
3536
{% endif %}
37+
"zstandard>=0.24.0",
3638
]
3739

3840
[build-system]

0 commit comments

Comments
 (0)