Skip to content

Commit

Permalink
Added Python 3.12 to main.yml. (#1580)
Browse files Browse the repository at this point in the history
* Added Python 3.12 to main.yml.

* Added Python 3.12 to setup.py.
  • Loading branch information
trevorbaca authored Feb 8, 2024
1 parent 297d444 commit 7a5c6af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11"]
python-version: ["3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def get_abjad_version():

def check_python_version(abjad_version):
CURRENT_PYTHON = sys.version_info[:2]
SUPPORTED_PYTHONS = [(3, 10), (3, 11)]
SUPPORTED_PYTHONS = [(3, 10), (3, 11), (3, 12)]
if CURRENT_PYTHON not in SUPPORTED_PYTHONS:
current_python = ".".join([str(_) for _ in CURRENT_PYTHON])
supported_pythons = ", ".join([f"{_[0]}.{_[1]}" for _ in SUPPORTED_PYTHONS])
Expand Down

0 comments on commit 7a5c6af

Please sign in to comment.