diff --git a/.github/actions/setup-env/action.yml b/.github/actions/setup-env/action.yml index 73fe11a67b..f92a6b57af 100644 --- a/.github/actions/setup-env/action.yml +++ b/.github/actions/setup-env/action.yml @@ -6,7 +6,7 @@ inputs: python-version: description: The python version to install required: false - default: '3.8' + default: '3.9' use-cached-uv-lock: description: Whether to download the uv lock cache. required: false diff --git a/.github/workflows/create-release-pr.yaml b/.github/workflows/create-release-pr.yaml index d1eeffac46..e3bfe3312e 100644 --- a/.github/workflows/create-release-pr.yaml +++ b/.github/workflows/create-release-pr.yaml @@ -45,7 +45,7 @@ jobs: - name: Set up environment uses: ./.github/actions/setup-env with: - python-version: 3.8 + python-version: 3.9 - name: Install dependencies run: uv sync --no-default-groups --group changelog diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 20a63b7a1b..a5fca778b4 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -23,7 +23,7 @@ jobs: id: setup uses: ./.github/actions/setup-env with: - python-version: 3.8 + python-version: 3.9 - name: Build package run: | diff --git a/.readthedocs.yml b/.readthedocs.yml index aec1ccff3d..1e48672de0 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -6,7 +6,7 @@ formats: build: os: ubuntu-24.04 tools: - python: "3.8" + python: "3.9" jobs: create_environment: - asdf plugin add uv diff --git a/README.md b/README.md index 49d7a80dfc..2afc1836eb 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Key Features Installing ---------- -**Python 3.8 or higher is required.** +**Python 3.9 or higher is required.** To install the library without full voice support, you can just run the following command: diff --git a/changelog/1394.breaking.rst b/changelog/1394.breaking.rst new file mode 100644 index 0000000000..bab57b3203 --- /dev/null +++ b/changelog/1394.breaking.rst @@ -0,0 +1 @@ +Python 3.8 support has been dropped. diff --git a/docs/intro.rst b/docs/intro.rst index fd835d28e9..58cde9c70a 100644 --- a/docs/intro.rst +++ b/docs/intro.rst @@ -15,8 +15,8 @@ in creating applications that utilise the Discord API. Prerequisites ------------- -disnake 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. +disnake 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/noxfile.py b/noxfile.py index 1e19b704ac..33d2512934 100755 --- a/noxfile.py +++ b/noxfile.py @@ -1,6 +1,6 @@ #!/usr/bin/env -S uv run --script # /// script -# requires-python = ">=3.8" +# requires-python = ">=3.9" # dependencies = [ # "nox==2025.5.1", # ] diff --git a/pyproject.toml b/pyproject.toml index e22fbd07a9..41f27bcbe2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ readme = "README.md" authors = [ { name = "Disnake Development" } ] -requires-python = ">=3.8" +requires-python = ">=3.9" keywords = ["disnake", "discord", "discord api"] license = { text = "MIT" } dependencies = [ @@ -25,7 +25,6 @@ classifiers = [ "Natural Language :: English", "Operating System :: OS Independent", # it is important that the python classifiers are sorted in the sequential order - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", @@ -209,6 +208,10 @@ ignore = [ "TRY003", # as of 0.12.11 still has some false positives "TRY301", # TODO: enable "TRY300", # TODO: enable + # py3.9 bump + "UP006", + "UP035", + "FURB188", ] [tool.ruff.lint.per-file-ignores]