From c2597fda5404cbb370fa6cbd0fcfa4b5f0734f59 Mon Sep 17 00:00:00 2001 From: Steven Wesner Date: Mon, 3 Feb 2025 20:16:19 -0500 Subject: [PATCH] Python 3.12 to 3.13 Fixes previous upgrade attempt to Python 3.13 - Adds audioop-lts as a requirement for Python 3.13 - Updated minimum versions to 3.9, as 3.8 will not build without errors --- .github/workflows/python-package.yml | 6 +++--- ADD_SERVER_README.md | 2 +- Dockerfile | 2 +- requirements.txt | 2 +- runtime.txt | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 506079a..4662e74 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -5,9 +5,9 @@ name: Python Package on: push: - branches: [ "main" ] + branches: [ "main", "dev" ] pull_request: - branches: [ "main" ] + branches: [ "main", "dev" ] jobs: build: @@ -16,7 +16,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.9", "3.10", "3.11", "3.12"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v4 diff --git a/ADD_SERVER_README.md b/ADD_SERVER_README.md index b67216e..4b2304c 100644 --- a/ADD_SERVER_README.md +++ b/ADD_SERVER_README.md @@ -4,7 +4,7 @@ Command-line tool to automate adding game servers to DiscordGSM's SQLite databas ## Requirements -- Python 3.6+ +- Python 3.9+ - SQLite3 - Access to DiscordGSM's `servers.db` file - **Important**: Must run in DiscordGSM's virtual environment diff --git a/Dockerfile b/Dockerfile index 6aa6fdf..a769df5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Use an official Python runtime as a parent image -FROM python:3.12-alpine +FROM python:3.13-alpine # Set environment variables ENV PYTHONDONTWRITEBYTECODE 1 diff --git a/requirements.txt b/requirements.txt index 5307f62..f27f878 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ aiohttp==3.11.11 -backports.zoneinfo==0.2.1;python_version<"3.9" +audioop-lts==0.2.1; python_version>="3.13" discord.py==2.4.0 flask[async]==3.1.0 gunicorn==23.0.0 diff --git a/runtime.txt b/runtime.txt index 25fd1e5..57890d8 100644 --- a/runtime.txt +++ b/runtime.txt @@ -1 +1 @@ -python-3.9.14 \ No newline at end of file +python-3.13.0 \ No newline at end of file