-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
20 additions
and
385 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
[flake8] | ||
max-line-length = 110 | ||
exclude = | ||
.venv/* | ||
app.build/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.vscode/ | ||
.venv/ | ||
__pycache__/ | ||
app.build/ | ||
app.dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,22 @@ | ||
# base image | ||
FROM python:3.12-slim | ||
FROM python:3.12-bullseye | ||
|
||
# working directory | ||
WORKDIR /app | ||
|
||
# install required system dependencies | ||
RUN apt-get update && apt-get install -y \ | ||
curl \ | ||
gcc \ | ||
patchelf | ||
|
||
# install poetry | ||
RUN curl -sSL https://install.python-poetry.org | python3 - | ||
|
||
# copy project files | ||
COPY . /app | ||
|
||
# add poetry to path | ||
ENV PATH="/root/.local/bin:$PATH" | ||
|
||
# activate poetry environment | ||
RUN poetry shell | ||
# create and activate a virtual environment | ||
RUN python -m venv .venv && chmod +x .venv/bin/activate && .venv/bin/activate | ||
|
||
# install project dependencies | ||
RUN poetry install --no-root | ||
RUN pip3 install -r requirements.txt | ||
|
||
# build the application with Nuitka | ||
RUN poetry run nuitka --enable-plugin=pyside6 --include-data-dir=./assets=./assets --standalone --lto=yes --output-filename=protodesk app.py | ||
RUN nuitka --enable-plugin=pyside6 --include-data-dir=./assets=./assets --standalone --lto=yes --output-filename=protodesk app.py |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
flake8==7.1.1 | ||
mccabe==0.7.0 | ||
Nuitka==2.4.11 | ||
ordered-set==4.1.0 | ||
pycodestyle==2.12.1 | ||
pyflakes==3.2.0 | ||
PySide6==6.8.0.2 | ||
PySide6_Addons==6.8.0.2 | ||
PySide6_Essentials==6.8.0.2 | ||
shiboken6==6.8.0.2 | ||
zstandard==0.23.0 |