Skip to content

Commit

Permalink
Add support for Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
aobolensk committed Dec 3, 2023
1 parent abadd6f commit bbef8dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
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.9'
- '3.10'
- '3.11'
- '3.12'
os-image:
- ubuntu-latest
- macos-latest
Expand All @@ -25,7 +26,7 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install -r requirements-extra.txt
[[ "${{ matrix.python-version }}" < "3.12" ]] && python -m pip install -r requirements-extra.txt
python -m pip install -r tests/requirements.txt
- name: Run tests
run: python walbot.py test
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, 8) <= sys.version_info[:3] < (3, 12)):
print("Python {}.{}.{} is not supported. You need Python 3.8 - 3.11".format(
if not ((3, 8) <= sys.version_info[:3] < (3, 13)):
print("Python {}.{}.{} is not supported. You need Python 3.8 - 3.12".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 bbef8dd

Please sign in to comment.