From 2544108442f5dd57f19da260c0e1085da3f9d197 Mon Sep 17 00:00:00 2001 From: Timo <154911483+timoo4devv@users.noreply.github.com> Date: Tue, 3 Dec 2024 23:01:53 +0100 Subject: [PATCH] chore: add support for Python 3.13 (#2609) * chore: add support for Python 3.13 * add: 3.13 to readme.rst * style(pre-commit): auto fixes from pre-commit.com hooks * fully upgrade to python 3.13 * style(pre-commit): auto fixes from pre-commit.com hooks --------- Signed-off-by: Lala Sabathil Co-authored-by: plun1331 Co-authored-by: Lala Sabathil Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .github/workflows/docs-checks.yml | 2 +- .github/workflows/docs-localization-download.yml | 2 +- .github/workflows/docs-localization-upload.yml | 2 +- .github/workflows/lib-checks.yml | 10 +++++----- .github/workflows/release.yml | 2 +- .readthedocs.yml | 2 +- README.rst | 2 +- docs/installing.rst | 4 ++-- pyproject.toml | 3 ++- requirements/dev.txt | 2 +- 10 files changed, 16 insertions(+), 15 deletions(-) diff --git a/.github/workflows/docs-checks.yml b/.github/workflows/docs-checks.yml index 0837c60f84..aa97542bfa 100644 --- a/.github/workflows/docs-checks.yml +++ b/.github/workflows/docs-checks.yml @@ -40,7 +40,7 @@ jobs: - name: "Setup Python" uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.13" cache: "pip" cache-dependency-path: "requirements/docs.txt" check-latest: true diff --git a/.github/workflows/docs-localization-download.yml b/.github/workflows/docs-localization-download.yml index 34e75a4dc7..63f5ed08fc 100644 --- a/.github/workflows/docs-localization-download.yml +++ b/.github/workflows/docs-localization-download.yml @@ -21,7 +21,7 @@ jobs: - name: "Install Python" uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.13" cache: "pip" cache-dependency-path: "requirements/_locale.txt" - name: "Install Dependencies" diff --git a/.github/workflows/docs-localization-upload.yml b/.github/workflows/docs-localization-upload.yml index 521dc80ee3..ebd256b75d 100644 --- a/.github/workflows/docs-localization-upload.yml +++ b/.github/workflows/docs-localization-upload.yml @@ -26,7 +26,7 @@ jobs: - name: "Install Python" uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.13" cache: "pip" cache-dependency-path: "requirements/_locale.txt" - name: "Install Dependencies" diff --git a/.github/workflows/lib-checks.yml b/.github/workflows/lib-checks.yml index 6c4a4941bb..ee48dbd47a 100644 --- a/.github/workflows/lib-checks.yml +++ b/.github/workflows/lib-checks.yml @@ -36,7 +36,7 @@ jobs: - name: "Setup Python" uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.13" cache: "pip" cache-dependency-path: "requirements/dev.txt" - name: "Install dependencies" @@ -56,7 +56,7 @@ jobs: - name: "Setup Python" uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.13" cache: "pip" cache-dependency-path: "requirements/dev.txt" - name: "Install dependencies" @@ -74,7 +74,7 @@ jobs: - name: "Setup Python" uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.13" cache: "pip" cache-dependency-path: "requirements/dev.txt" - name: "Install dependencies" @@ -98,7 +98,7 @@ jobs: - name: "Setup Python" uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.13" cache: "pip" cache-dependency-path: "requirements/dev.txt" - name: "Install dependencies" @@ -120,7 +120,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ["3.9", "3.10", "3.11", "3.12"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] exclude: - { python-version: "3.9", os: "macos-latest" } include: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1756ab300d..42da1bb931 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -80,7 +80,7 @@ jobs: version-branch-name: ${{ needs.pre_config.outputs.branch_name }} ref: ${{ github.ref_name }} repository: ${{ github.repository }} - python-version: "3.12" + python-version: "3.13" release-requirements: "requirements/_release.txt" version: ${{ needs.pre_config.outputs.version }} is-rc: ${{ needs.pre_config.outputs.is_rc }} diff --git a/.readthedocs.yml b/.readthedocs.yml index 7113eb48e6..1b4720a322 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -4,7 +4,7 @@ formats: [] build: os: ubuntu-22.04 tools: - python: "3.12" + python: "3.13" sphinx: configuration: docs/conf.py diff --git a/README.rst b/README.rst index 4867eb3c74..4518a946ed 100644 --- a/README.rst +++ b/README.rst @@ -31,7 +31,7 @@ Pycord is a modern, easy to use, feature-rich, and async ready API wrapper for D Note ---- -Pycord supports Python ``3.9`` - ``3.12`` +Pycord supports Python ``3.9`` - ``3.13`` Key Features ------------ diff --git a/docs/installing.rst b/docs/installing.rst index d5a0fda813..430a7478c8 100644 --- a/docs/installing.rst +++ b/docs/installing.rst @@ -13,8 +13,8 @@ in creating applications that utilise the Discord API. Prerequisites ------------- -Pycord works with Python 3.8 or higher. Support for earlier versions of Python -is not provided. Python 2.7 or lower is not supported. Python 3.7 or lower is not supported. +Pycord works with Python 3.9 or higher. Support for earlier versions of Python +is not provided. Python 2.7 or lower is not supported. Python 3.8 or lower is not supported. .. _installing: diff --git a/pyproject.toml b/pyproject.toml index 97095f7fc0..6d44c5d329 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,6 +24,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Topic :: Internet", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules", @@ -67,7 +68,7 @@ voice = {file = "requirements/voice.txt"} [tool.setuptools_scm] [tool.black] -target-version = ['py39', 'py310', 'py311', 'py312'] +target-version = ['py39', 'py310', 'py311', 'py312', 'py313'] [tool.isort] profile = "black" diff --git a/requirements/dev.txt b/requirements/dev.txt index 83326ccb3e..404c9261bf 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -1,7 +1,7 @@ -r _.txt pylint~=3.3.2 pytest~=8.3.4 -pytest-asyncio~=0.23.8 +pytest-asyncio~=0.24.0 # pytest-order~=1.0.1 mypy~=1.13.0 coverage~=7.6