Skip to content

Commit 5c989c7

Browse files
committed
deps: target python 3.12, move to uv
1 parent ca08893 commit 5c989c7

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

.github/workflows/ci.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515

1616
steps:
1717
- uses: actions/checkout@v3
18-
- name: Set up Python 3.9.13
18+
- name: Set up Python 3.12
1919
uses: actions/setup-python@v4
2020
with:
21-
python-version: 3.9.13
21+
python-version: 3.12
2222
- name: Install System Dependencies
2323
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends build-essential curl gettext git
2424
- uses: pre-commit/[email protected]

Dockerfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.9-slim-buster
1+
FROM python:3.12-slim
22

33
# Set environment variables
44
ENV PYTHONDONTWRITEBYTECODE 1
@@ -19,7 +19,8 @@ RUN apt-get update && \
1919

2020
# Install application-level dependencies
2121
COPY requirements.txt /src/
22-
RUN pip --disable-pip-version-check install -r requirements.txt
22+
RUN pip install uv
23+
RUN uv pip sync requirements.txt --system
2324

2425
# Copy project files over to image
2526
COPY . /src/

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# hhub
22

3+
[![uv](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json)](https://github.com/astral-sh/uv)
34
![Github CI](https://github.com/gbdev/homebrewhub/actions/workflows/ci.yaml/badge.svg)
45

56
This repository provides the source code of the [Homebrew Hub backend](https://hh3.gbdev.io/api), which powers [Homebrew Hub](https://hh.gbdev.io), the largest digital collection of Game Boy and Game Boy Color homebrews, playable natively in your browser.

manage.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python
22
"""Django's command-line utility for administrative tasks."""
3+
34
import os
45
import sys
56

0 commit comments

Comments
 (0)