Skip to content

Commit

Permalink
Enable support for Python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
aobolensk committed Jan 18, 2025
1 parent 3c9e774 commit d36032b
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 11 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.12'
python-version: '3.13'
- name: Install linter
run: |
python -m pip install --upgrade pip
Expand All @@ -22,7 +22,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.12'
python-version: '3.13'
- name: Install linter
run: |
python -m pip install --upgrade pip
Expand All @@ -37,7 +37,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.12'
python-version: '3.13'
cache: pip
cache-dependency-path: |
requirements.txt
Expand All @@ -55,7 +55,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.12'
python-version: '3.13'
cache: pip
cache-dependency-path: |
requirements.txt
Expand All @@ -75,7 +75,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.12'
python-version: '3.13'
cache: pip
cache-dependency-path: |
requirements.txt
Expand All @@ -100,7 +100,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.12'
python-version: '3.13'
cache: pip
cache-dependency-path: |
requirements.txt
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
- '3.10'
- '3.11'
- '3.12'
- '3.13'
- 'pypy3.9'
- 'pypy3.10'
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.12'
python-version: '3.13'
cache: pip
cache-dependency-path: |
requirements.txt
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
- '3.10'
- '3.11'
- '3.12'
- '3.13'
os-image:
- ubuntu-latest
- macos-latest
Expand Down Expand Up @@ -40,7 +41,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.12'
python-version: '3.13'
cache: pip
cache-dependency-path: |
requirements.txt
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Discord bot written in Python*
```sh
$ brew install libmagic
```
- [Python](https://www.python.org/) 3.9-3.12
- [Python](https://www.python.org/) 3.9-3.13

##### Optional
- [ffmpeg](https://www.ffmpeg.org/) - for built-in DiscordVideoQueue plugin
Expand Down
4 changes: 2 additions & 2 deletions walbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

def main():
"""WalBot launcher entrypoint"""
if not ((3, 9) <= sys.version_info[:3] < (3, 13)):
print("Python {}.{}.{} is not supported. You need Python 3.9 - 3.12".format(
if not ((3, 9) <= sys.version_info[:3] < (3, 14)):
print("Python {}.{}.{} is not supported. You need Python 3.9 - 3.13".format(
sys.version_info.major, sys.version_info.minor, sys.version_info.micro))
sys.exit(1)
walbot_dir = os.path.normpath(os.path.dirname(os.path.abspath(__file__)))
Expand Down

0 comments on commit d36032b

Please sign in to comment.