Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.venv
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.11', '3.12', '3.13']
python-version: ['3.12', '3.13', '3.14']
steps:
- uses: actions/checkout@v4

Expand All @@ -19,16 +19,16 @@ jobs:

- name: Install dependencies
run: |
pipx install poetry
poetry install
python -m pip install --upgrade uv
uv sync

- name: Lint
run: |
poetry run flake8
uv run flake8

- name: Mypy
run: |
poetry run mypy .
uv run mypy .

deploy:
permissions:
Expand Down
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM python:3.13-bookworm
FROM python:3.14-slim-trixie

RUN python -m pip install "poetry==2.2.0"
RUN python -m pip install "uv==0.9.5"

COPY . /app
WORKDIR /app
RUN poetry config virtualenvs.in-project true
RUN poetry install --only main

ENTRYPOINT ["poetry", "run", "gunicorn", "--threads", "4", "-w", "1", "--access-logfile", "-", "--bind", "0.0.0.0:80", "flask_app:app"]
RUN uv sync --locked --no-dev --compile-bytecode

ENTRYPOINT ["uv", "run", "--no-sync", "gunicorn", "--threads", "4", "-w", "1", "--access-logfile", "-", "--bind", "0.0.0.0:80", "flask_app:app"]

EXPOSE 80
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ Get it running:
* fill out `instance/application.cfg`

```console
poetry install
poetry run flask --app flask_app run
uv run flask --app flask_app run
```

## GitHub App Registration
Expand Down
5 changes: 5 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
services:
app:
build: .
ports:
- "5000:80"
801 changes: 0 additions & 801 deletions poetry.lock

This file was deleted.

11 changes: 2 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "msys2-autobuild-controller"
version = "0.1.0"
description = ""
authors = [{ name = "Jeremy Drake", email = "[email protected]" }]
requires-python = ">=3.11.0,<4.0"
requires-python = ">=3.12.0,<4.0"
dependencies = [
"Flask>=3.0.2,<4",
"requests>=2.25.1,<3",
Expand All @@ -15,16 +15,9 @@ dependencies = [
[dependency-groups]
dev = [
"flake8>=7.0.0,<8",
"mypy==1.18.1",
"mypy==1.18.2",
"types-requests>=2.31.0.20240125,<3",
]

[tool.uv]
package = false

[tool.poetry]
package-mode = false

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
607 changes: 607 additions & 0 deletions uv.lock

Large diffs are not rendered by default.