Skip to content

Commit

Permalink
Add Python 3.13, 3.14-dev to GitHub Actions. (#1600)
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorbaca authored Jan 2, 2025
1 parent 40ff593 commit 6ff89b8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 23 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", "3.12"]
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14-dev"]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Abjad 3.19
Abjad 3.20
==========

Abjad helps composers build up complex pieces of music notation in iterative and
Expand Down
2 changes: 1 addition & 1 deletion abjad/_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version_info__ = (3, 19)
__version_info__ = (3, 20)
__version__ = ".".join(str(_) for _ in __version_info__[:2])
__version__ += "".join(__version_info__[2:])
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
### GENERAL SPHINX SETTINGS ###
### https://www.sphinx-doc.org/en/master/usage/configuration.html ###

copyright = "2008-2024, Trevor Bača & Josiah Wolf Oberholtzer."
copyright = "2008-2025, Trevor Bača & Joséphine Oberholtzer."
extensions = [
"abjad.ext.sphinx",
"sphinx.ext.autodoc",
Expand Down Expand Up @@ -33,7 +33,7 @@
# navigation_depth=1 makes sidebar completely flat;
# leave flat navigation in place forever:
"navigation_depth": 1,
"style_nav_header_background": "#ddaa77",
"style_nav_header_background": "#eeccaa",
}
project = "Abjad"
release = abjad.__version__
Expand Down
19 changes: 1 addition & 18 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#! /usr/bin/env python
import os
import sys

import setuptools

Expand All @@ -15,27 +14,12 @@ def get_abjad_version():
return __version__


def check_python_version(abjad_version):
CURRENT_PYTHON = sys.version_info[:2]
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])
string = f"This is Abjad {abjad_version},"
string += f" which supports Python {supported_pythons}.\n"
string += "\n"
string += "But it looks like you're trying to install Abjad"
string += f" with Python {current_python}."
sys.stderr.write(string)
sys.exit(1)


description = "Abjad is a Python API for building LilyPond files."

with open("README.rst", "r") as file_pointer:
long_description = file_pointer.read()

author = ["Trevor Bača", "Josiah Wolf Oberholtzer"]
author = ["Trevor Bača", "Joséphine Oberholtzer"]

author_email = [
"trevor.baca@gmail.com",
Expand Down Expand Up @@ -80,7 +64,6 @@ def check_python_version(abjad_version):

if __name__ == "__main__":
version = get_abjad_version()
check_python_version(version)
setuptools.setup(
author=", ".join(author),
author_email=", ".join(author_email),
Expand Down

0 comments on commit 6ff89b8

Please sign in to comment.