Just-Some-Bots / MusicBot

:musical_note: The original MusicBot for Discord (formerly SexualRhinoceros/MusicBot)
https://just-some-bots.github.io/MusicBot/
MIT License
3.09k stars 2.35k forks source link

Update Python versions #2369

Closed phknot closed 6 months ago

phknot commented 7 months ago

After creating your pull request, tick these boxes if they are applicable to you.


Description

The minimum Python version is bumped to 3.9 to fix compatibility with new code.

Where possible, we now try to use the latest Python version (3.12).

Related issues (if applicable)

https://github.com/Just-Some-Bots/MusicBot/issues/2368

itsTheFae commented 7 months ago

I would suggest keeping 3.8 in this PR. I've fixed my typing blunder with #2370 which will let it work again.
Or at least its an option. :P

phknot commented 7 months ago

I would suggest keeping 3.8 in this PR. I've fixed my typing blunder with #2370 which will let it work again. Or at least its an option. :P

Yeah I guess a maintainer can make a decision on how to proceed 👍

BabyBoySnow commented 6 months ago

By the way, as far as I know aiohttp a required dependency is still failing on build wheels on 3.12, I'm hoping they fix that soon. For the time being, I will continue backwards compatibility, until told otherwise from the code owners.

phknot commented 6 months ago

By the way, as far as I know aiohttp a required dependency is still failing on build wheels on 3.12, I'm hoping they fix that soon. For the time being, I will continue backwards compatibility, until told otherwise from the code owners.

I tested all the versions by bumping the version in the Docker file and it ran just fine for all.python versions from 3.9 to 3.12 so I think that problem is fixed

BabyBoySnow commented 6 months ago

I tested all the versions by bumping the version in the Docker file and it ran just fine for all.python versions from 3.9 to 3.12 so I think that problem is fixed

Using windows 10 22h2, I still fail the build wheel on 3.12.1. The "solution" is to install Microsoft C++ Build Tools. I don't like this as a solution though since it's a 4-6gb download, which is a lot for users who might not have a ton of space on a vps. It builds fine on 3.8-3.11 without the additional tools. So I don't think it's anything on our end in the project.