diff options
author | 2024-03-04 16:24:08 +0000 | |
---|---|---|
committer | 2024-03-18 10:32:17 +0000 | |
commit | e29bcfb0fbf87c2b497091477dcbd3336e3afa7c (patch) | |
tree | f30d80b04aa621ad7c8aefe83bf71ae1260045f2 | |
parent | Split fakeredis optional dep out from async-rediscache (diff) |
Add support for Python 3.12
-rw-r--r-- | .github/workflows/lint-test.yaml | 2 | ||||
-rw-r--r-- | docs/changelog.rst | 2 | ||||
-rw-r--r-- | pyproject.toml | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/.github/workflows/lint-test.yaml b/.github/workflows/lint-test.yaml index 97fd34e0..4aab48d5 100644 --- a/.github/workflows/lint-test.yaml +++ b/.github/workflows/lint-test.yaml @@ -8,7 +8,7 @@ jobs: strategy: fail-fast: false matrix: - python_version: ["3.10", "3.11"] + python_version: ["3.10", "3.11", "3.12"] name: Run Linting & Test Suites runs-on: ubuntu-latest diff --git a/docs/changelog.rst b/docs/changelog.rst index 7f0ec3fe..673824d8 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -5,7 +5,7 @@ Changelog ========= - :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. -- :breaking:`208` Drop support for Python 3.10 +- :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. - :breaking:`208` Drop support for Pydantic 1.X - :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. - :support:`206` Bump ruff from 0.1.15 to 0.2.2, using the new lint config namespace, and linting with the new rules. diff --git a/pyproject.toml b/pyproject.toml index 7e661666..4e08fe62 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,11 +23,11 @@ repository = "https://github.com/python-discord/bot-core" keywords = ["bot", "discord", "discord.py"] [tool.poetry.dependencies] -python = "3.10.* || 3.11.*" +python = "3.10.* || 3.11.* || 3.12.*" "discord.py" = "~=2.3.2" async-rediscache = { version = "1.0.0rc2", optional = true } -fakeredis = { version = "~=2.0", extras = ["lua"], optional = true } +fakeredis = { version = "~=2.0", extras = ["lua"], optional = true, python = "<3.12" } pydantic = "~=2.6" statsd = "~=4.0" aiodns = "~=3.1" |