Skip to content

Commit 08562f8

Browse files
feat!: drop python 3.8 support (#1394)
1 parent 731eda1 commit 08562f8

File tree

9 files changed

+14
-10
lines changed

9 files changed

+14
-10
lines changed

.github/actions/setup-env/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ inputs:
66
python-version:
77
description: The python version to install
88
required: false
9-
default: '3.8'
9+
default: '3.9'
1010
use-cached-uv-lock:
1111
description: Whether to download the uv lock cache.
1212
required: false

.github/workflows/create-release-pr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- name: Set up environment
4646
uses: ./.github/actions/setup-env
4747
with:
48-
python-version: 3.8
48+
python-version: 3.9
4949

5050
- name: Install dependencies
5151
run: uv sync --no-default-groups --group changelog

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
id: setup
2424
uses: ./.github/actions/setup-env
2525
with:
26-
python-version: 3.8
26+
python-version: 3.9
2727

2828
- name: Build package
2929
run: |

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ formats:
66
build:
77
os: ubuntu-24.04
88
tools:
9-
python: "3.8"
9+
python: "3.9"
1010
jobs:
1111
create_environment:
1212
- asdf plugin add uv

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Key Features
2626
Installing
2727
----------
2828

29-
**Python 3.8 or higher is required.**
29+
**Python 3.9 or higher is required.**
3030

3131
To install the library without full voice support, you can just run the
3232
following command:

changelog/1394.breaking.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Python 3.8 support has been dropped.

docs/intro.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ in creating applications that utilise the Discord API.
1515
Prerequisites
1616
-------------
1717

18-
disnake works with Python 3.8 or higher. Support for earlier versions of Python
19-
is not provided. Python 2.7 or lower is not supported. Python 3.7 or lower is not supported.
18+
disnake works with Python 3.9 or higher. Support for earlier versions of Python
19+
is not provided. Python 2.7 or lower is not supported. Python 3.8 or lower is not supported.
2020

2121
.. _installing:
2222

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env -S uv run --script
22
# /// script
3-
# requires-python = ">=3.8"
3+
# requires-python = ">=3.9"
44
# dependencies = [
55
# "nox==2025.5.1",
66
# ]

pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ readme = "README.md"
1111
authors = [
1212
{ name = "Disnake Development" }
1313
]
14-
requires-python = ">=3.8"
14+
requires-python = ">=3.9"
1515
keywords = ["disnake", "discord", "discord api"]
1616
license = { text = "MIT" }
1717
dependencies = [
@@ -25,7 +25,6 @@ classifiers = [
2525
"Natural Language :: English",
2626
"Operating System :: OS Independent",
2727
# it is important that the python classifiers are sorted in the sequential order
28-
"Programming Language :: Python :: 3.8",
2928
"Programming Language :: Python :: 3.9",
3029
"Programming Language :: Python :: 3.10",
3130
"Programming Language :: Python :: 3.11",
@@ -209,6 +208,10 @@ ignore = [
209208
"TRY003", # as of 0.12.11 still has some false positives
210209
"TRY301", # TODO: enable
211210
"TRY300", # TODO: enable
211+
# py3.9 bump
212+
"UP006",
213+
"UP035",
214+
"FURB188",
212215
]
213216

214217
[tool.ruff.lint.per-file-ignores]

0 commit comments

Comments
 (0)