From 4111b5d43638661f5c7081793a23928c0141c8a8 Mon Sep 17 00:00:00 2001 From: MizzleLizzle <35309553+MizzleLizzle@users.noreply.github.com> Date: Wed, 13 Nov 2024 17:32:57 +0100 Subject: [PATCH] Preinstall uv package manager (#35) * feat: preinstall uv package manager * refactor: pin uv version * docs: add `uv` compatibility docs --------- Co-authored-by: Robin Kehl --- 3.10/Dockerfile | 1 + 3.11/Dockerfile | 3 ++- 3.12/Dockerfile | 3 ++- 3.13/Dockerfile | 1 + 3.8/Dockerfile | 1 + 3.9/Dockerfile | 1 + README.md | 39 ++++++++++++++++++++++++++++----------- 7 files changed, 36 insertions(+), 13 deletions(-) diff --git a/3.10/Dockerfile b/3.10/Dockerfile index 757b519..88b8e8b 100644 --- a/3.10/Dockerfile +++ b/3.10/Dockerfile @@ -1 +1,2 @@ FROM python:3.10.15 +COPY --from=ghcr.io/astral-sh/uv:0.5.1 /uv /uvx /bin/ \ No newline at end of file diff --git a/3.11/Dockerfile b/3.11/Dockerfile index 095e534..41d22f5 100644 --- a/3.11/Dockerfile +++ b/3.11/Dockerfile @@ -1 +1,2 @@ -FROM python:3.11.10 \ No newline at end of file +FROM python:3.11.10 +COPY --from=ghcr.io/astral-sh/uv:0.5.1 /uv /uvx /bin/ \ No newline at end of file diff --git a/3.12/Dockerfile b/3.12/Dockerfile index a186289..c4aeb22 100644 --- a/3.12/Dockerfile +++ b/3.12/Dockerfile @@ -1 +1,2 @@ -FROM python:3.12.7 \ No newline at end of file +FROM python:3.12.7 +COPY --from=ghcr.io/astral-sh/uv:0.5.1 /uv /uvx /bin/ \ No newline at end of file diff --git a/3.13/Dockerfile b/3.13/Dockerfile index 9dbb600..4d54295 100644 --- a/3.13/Dockerfile +++ b/3.13/Dockerfile @@ -1 +1,2 @@ FROM python:3.13.0 +COPY --from=ghcr.io/astral-sh/uv:0.5.1 /uv /uvx /bin/ \ No newline at end of file diff --git a/3.8/Dockerfile b/3.8/Dockerfile index 9d092c7..c2e9d37 100644 --- a/3.8/Dockerfile +++ b/3.8/Dockerfile @@ -1 +1,2 @@ FROM python:3.8.20 +COPY --from=ghcr.io/astral-sh/uv:0.5.1 /uv /uvx /bin/ \ No newline at end of file diff --git a/3.9/Dockerfile b/3.9/Dockerfile index 07681e2..ccc212e 100644 --- a/3.9/Dockerfile +++ b/3.9/Dockerfile @@ -1 +1,2 @@ FROM python:3.9.20 +COPY --from=ghcr.io/astral-sh/uv:0.5.1 /uv /uvx /bin/ \ No newline at end of file diff --git a/README.md b/README.md index 1930dac..77f49eb 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,20 @@ comes with a preinstalled MySQL config, which means you can get up and running w addition, we've included all the necessary clients, such as mysql-client, to ensure you have everything you need to get started. +## Features + +- 🐍 Python 3.7 - 3.13 +- ⚡️ [`uv`](https://github.com/astral-sh/uv) preinstalled +- 🏗️ Build dependencies preinstalled +- 🔄 CI/CD ready +- 🐘 Postgres support +- 🐬 MariaDB support +- 🐬 MySQL support +- 🏢 MSSQL support (beta) + + +[//]: # (out of the box mysql support) + ## Compatibility - 🟢 Supported/Tested @@ -34,16 +48,16 @@ started. - 🟠 Beta/Experimental (please share your experiences) - 🔴 Currently not Supported (open an Issue or Pull request if needed) -| Python version | | -|----------------|----| -| `^3.13.0` | 🟢 | -| `^3.12.4` | 🟢 | -| `^3.11.2` | 🟢 | -| `^3.10.10` | 🟢 | -| `^3.9.16` | 🟢 | -| `^3.8.16` | 🟢 | -| `^3.7.16` | 🟢 | -| `^2.x` | 🔴 | +| Python version | | uv preinstalled | +|----------------|----|-----------------| +| `^3.13.0` | 🟢 | 🟢 (`^3.13.0`) | +| `^3.12.4` | 🟢 | 🟢 (`^3.12.7`) | +| `^3.11.2` | 🟢 | 🟢 (`^3.11.10`) | +| `^3.10.10` | 🟢 | 🟢 (`^3.10.15`) | +| `^3.9.16` | 🟢 | 🟢 (`^3.9.20`) | +| `^3.8.16` | 🟢 | 🟢 (`^3.8.20`) | +| `^3.7.16` | 🟢 | 🔴 | +| `^2.x` | 🔴 | 🔴 | | MySQL*️⃣ | | |----------|----| @@ -119,5 +133,8 @@ MSSQL is currently only supported/tested with the following versions: - [`^mssql-server-linux:2019-CU23-ubuntu-20.04`](https://hub.docker.com/_/microsoft-mssql-server) - [`mssql-django===1.3`](https://pypi.org/project/mssql-django/) -- [`Microsoft ODBC Driver 17 for SQL Server` & `Microsoft ODBC Driver 18 for SQL Server`](https://learn.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server?view=sql-server-ver16&tabs=debian18-install%2Calpine17-install%2Cdebian8-install%2Credhat7-13-install%2Crhel7-offline) ('Microsoft ODBC Driver 18 for SQL Server' does currently not work with mssql as ci service with self-signed ssl certs. If you have any solution, feel free to open an Issue or PR) +- [`Microsoft ODBC Driver 17 for SQL Server` & + `Microsoft ODBC Driver 18 for SQL Server`](https://learn.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server?view=sql-server-ver16&tabs=debian18-install%2Calpine17-install%2Cdebian8-install%2Credhat7-13-install%2Crhel7-offline) (' + Microsoft ODBC Driver 18 for SQL Server' does currently not work with mssql as ci service with self-signed ssl certs. + If you have any solution, feel free to open an Issue or PR)