Skip to content

Commit e29bcfb

Browse files
committed
Add support for Python 3.12
1 parent 1fe3f8c commit e29bcfb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/lint-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
python_version: ["3.10", "3.11"]
11+
python_version: ["3.10", "3.11", "3.12"]
1212

1313
name: Run Linting & Test Suites
1414
runs-on: ubuntu-latest

docs/changelog.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Changelog
55
=========
66

77
- :breaking:`208` Split ``fakeredis`` optional dependency from the ``async-rediscache`` extra. You can now install with ``[fakeredis]`` to just install fakeredis (with lua support), ``[async-rediscache]`` to install just ``async-rediscache``, or use either ``[all]`` or ``[async-rediscache,fakeredis]`` to install both. This allows users who do no rely on fakeredis to install in 3.12 environments.
8-
- :breaking:`208` Drop support for Python 3.10
8+
- :support:`208` Add support for Python 3.12. Be aware, at time of writing, our usage of fakeredis does not currently support 3.12. This is due to :literal-url:`this lupa issue<https://github.com/scoder/lupa/issues/245>`. Lupa is required by async-rediscache for lua script support within fakeredis. As such, fakeredis can not be installed in a Python 3.12 environment.
99
- :breaking:`208` Drop support for Pydantic 1.X
1010
- :breaking:`207` Enable more ruff linting rules. See :literal-url:`GitHub release notes <https://github.com/python-discord/bot-core/releases/tag/v11.0.0>` for breaking changes.
1111
- :support:`206` Bump ruff from 0.1.15 to 0.2.2, using the new lint config namespace, and linting with the new rules.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ repository = "https://github.com/python-discord/bot-core"
2323
keywords = ["bot", "discord", "discord.py"]
2424

2525
[tool.poetry.dependencies]
26-
python = "3.10.* || 3.11.*"
26+
python = "3.10.* || 3.11.* || 3.12.*"
2727

2828
"discord.py" = "~=2.3.2"
2929
async-rediscache = { version = "1.0.0rc2", optional = true }
30-
fakeredis = { version = "~=2.0", extras = ["lua"], optional = true }
30+
fakeredis = { version = "~=2.0", extras = ["lua"], optional = true, python = "<3.12" }
3131
pydantic = "~=2.6"
3232
statsd = "~=4.0"
3333
aiodns = "~=3.1"

0 commit comments

Comments
 (0)