Skip to content

Python 3.13 upgrade#3352

Merged
jb3 merged 3 commits intomainfrom
jb3/3.13-upgrade
Jul 28, 2025
Merged

Python 3.13 upgrade#3352
jb3 merged 3 commits intomainfrom
jb3/3.13-upgrade

Conversation

@jb3
Copy link
Copy Markdown
Member

@jb3 jb3 commented Jul 27, 2025

Upgrades Dockerfile & pyproject.toml to use 3.13.

Tested locally, bot starts without issue.

@jb3 jb3 requested a review from MarkKoz as a code owner July 27, 2025 13:14
@python-discord-policy-bot python-discord-policy-bot Bot requested a review from a team July 27, 2025 13:14
Copy link
Copy Markdown
Member

@ChrisLovering ChrisLovering left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

target-version in the linting section of pyproject needs updating too, but looks good

@jb3 jb3 force-pushed the jb3/3.13-upgrade branch from b50abfa to d42680f Compare July 27, 2025 13:41
Copy link
Copy Markdown
Contributor

@wookie184 wookie184 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some new warnings in the test CI

tests/bot/exts/test_cogs.py::CommandNameTests::test_names_dont_shadow
  /home/runner/work/bot/bot/bot/exts/utils/extensions.py:29: FutureWarning: functools.partial will be a method descriptor in future Python versions; wrap it in enum.member() if you want to preserve the old behavior
    RELOAD = functools.partial(Bot.reload_extension)

The fix should be the same as for lancebot python-discord/sir-lancebot@2a42669

@jb3 jb3 requested a review from wookie184 July 28, 2025 20:46
@jb3 jb3 merged commit 1546ba6 into main Jul 28, 2025
7 checks passed
@jb3 jb3 deleted the jb3/3.13-upgrade branch July 28, 2025 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants