From c03de7c42379171acd9644d1ee4a9572112233b5 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Thu, 31 Oct 2024 21:54:25 +0100 Subject: [PATCH] CI: Verify compatibility with Python 3.13 --- .github/workflows/main.yml | 5 ++++- .github/workflows/ngr.yml | 5 ++++- CHANGES.md | 1 + pyproject.toml | 1 + tests/test_ngr.py | 4 ++++ 5 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 11c2fef..3e4eebd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,7 +27,10 @@ jobs: fail-fast: false matrix: os: ["ubuntu-latest"] - python-version: ["3.8", "3.12"] + python-version: [ + "3.8", + "3.13", + ] env: OS: ${{ matrix.os }} diff --git a/.github/workflows/ngr.yml b/.github/workflows/ngr.yml index 9c08949..4cb74f3 100644 --- a/.github/workflows/ngr.yml +++ b/.github/workflows/ngr.yml @@ -38,7 +38,10 @@ jobs: fail-fast: false matrix: os: ["ubuntu-latest"] - python-version: ["3.8", "3.12"] + python-version: [ + "3.8", + "3.13", + ] env: OS: ${{ matrix.os }} diff --git a/CHANGES.md b/CHANGES.md index f7a8c70..79e7fe3 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -2,6 +2,7 @@ ## Unreleased - nlp: Updated dependencies langchain, langchain-text-splitters, unstructured +- CI: Verify compatibility with Python 3.13 ## 2024-03-07 v0.0.9 - Testing: Add `pueblo.testing.notebook.{list_path,generate_tests}` diff --git a/pyproject.toml b/pyproject.toml index 7751a52..cd49ac8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,6 +47,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Topic :: Communications", "Topic :: Education", "Topic :: Software Development :: Libraries", diff --git a/tests/test_ngr.py b/tests/test_ngr.py index b196819..041c16c 100644 --- a/tests/test_ngr.py +++ b/tests/test_ngr.py @@ -1,3 +1,4 @@ +import sys from functools import lru_cache from pathlib import Path @@ -43,6 +44,9 @@ def test_ngr_sample(sample: Path): """ Invoke minimal `ngr test` target. """ + if str(sample) == "ngr/meltano" and sys.version_info >= (3, 13): + raise pytest.skip("Meltano not available for Python 3.13 yet") + runner = CliRunner() result = runner.invoke(