From 6ff89b8a4b312ad580b2639cfc4b3ed5507a4856 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Trevor=20Ba=C4=8Da?= Date: Thu, 2 Jan 2025 12:23:08 -0500 Subject: [PATCH] Add Python 3.13, 3.14-dev to GitHub Actions. (#1600) --- .github/workflows/main.yml | 2 +- README.rst | 2 +- abjad/_version.py | 2 +- docs/source/conf.py | 4 ++-- setup.py | 19 +------------------ 5 files changed, 6 insertions(+), 23 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5c0b43cdad..82ef40f45d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 diff --git a/README.rst b/README.rst index 13098af1a3..ce5b89587f 100644 --- a/README.rst +++ b/README.rst @@ -1,4 +1,4 @@ -Abjad 3.19 +Abjad 3.20 ========== Abjad helps composers build up complex pieces of music notation in iterative and diff --git a/abjad/_version.py b/abjad/_version.py index ebede8d74d..0d40391d34 100644 --- a/abjad/_version.py +++ b/abjad/_version.py @@ -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:]) diff --git a/docs/source/conf.py b/docs/source/conf.py index 0f56bbf0f6..ab396e14c5 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -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", @@ -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__ diff --git a/setup.py b/setup.py index e9957a377d..f027347838 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,5 @@ #! /usr/bin/env python import os -import sys import setuptools @@ -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", @@ -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),