Skip to content

Commit

Permalink
Migrate from poetry to pip :|
Browse files Browse the repository at this point in the history
  • Loading branch information
nemuelw committed Nov 12, 2024
1 parent 10b7331 commit f183c61
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 385 deletions.
1 change: 1 addition & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[flake8]
max-line-length = 110
exclude =
.venv/*
app.build/*
8 changes: 2 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,13 @@ jobs:
with:
python-version: '3.12'

- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Install dependencies
run: |
poetry install
pip3 install -r requirements.txt
- name: Run flake8
run: |
poetry run flake8 .
flake8 .
multiarch-build:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.vscode/
.venv/
__pycache__/
app.build/
app.dist/
17 changes: 5 additions & 12 deletions Dockerfile
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
349 changes: 0 additions & 349 deletions poetry.lock

This file was deleted.

18 changes: 0 additions & 18 deletions pyproject.toml

This file was deleted.

11 changes: 11 additions & 0 deletions requirements.txt
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

0 comments on commit f183c61

Please sign in to comment.