diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0033bd12..d6d0566f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,7 +51,7 @@ jobs: - "3.11" - "3.12" - "3.13" - #- "3.14" + - "3.14" os: - ubuntu-latest # There shouldn't be any behavior differences between OSes, diff --git a/docs/reference/changelog.md b/docs/reference/changelog.md index cb99b95d..2bd31788 100644 --- a/docs/reference/changelog.md +++ b/docs/reference/changelog.md @@ -5,6 +5,8 @@ This document outlines the list of changes to ridgeplot between each release. Fo Unreleased changes ------------------ +- Add support for Python 3.14, in accordance with the official Python support policy[^1] ({gh-pr}`346`) + ### Bug fixes - Fix the way histogram bin centers are computed ({gh-pr}`364`) diff --git a/pyproject.toml b/pyproject.toml index 17204a18..7264cd54 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,7 +26,7 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - #"Programming Language :: Python :: 3.14", + "Programming Language :: Python :: 3.14", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Software Development", "Topic :: Scientific/Engineering", diff --git a/tests/unit/color/test_utils.py b/tests/unit/color/test_utils.py index 2bce06d2..0494808c 100644 --- a/tests/unit/color/test_utils.py +++ b/tests/unit/color/test_utils.py @@ -56,13 +56,13 @@ def test_to_rgb(color: Color, expected: str) -> None: "hex or rgb color, got 'not-a-color' instead", ), # invalid hex - ("#1234567890", ValueError, "too many values to unpack (expected 3)"), + ("#1234567890", ValueError, "too many values to unpack (expected 3"), ("#ABCDEFGHIJ", ValueError, "invalid literal for int() with base 16"), # invalid rgb ("rgb(0,0,999)", PlotlyError, "rgb colors tuples cannot exceed 255"), # invalid tuple ((1, 2), ValueError, "not enough values to unpack (expected 3, got 2)"), - ((1, 2, 3, 4), ValueError, "too many values to unpack (expected 3)"), + ((1, 2, 3, 4), ValueError, "too many values to unpack (expected 3"), ], ) def test_to_rgb_fails_for_invalid_color( diff --git a/tests/unit/test_utils.py b/tests/unit/test_utils.py index 6e70a845..cf35a97e 100644 --- a/tests/unit/test_utils.py +++ b/tests/unit/test_utils.py @@ -1,5 +1,6 @@ from __future__ import annotations +import re from itertools import product from typing import TYPE_CHECKING, TypeVar @@ -31,7 +32,7 @@ def test_raise_for_empty_sequence(self) -> None: def test_raise_for_non_2d_array(self) -> None: # Fails if one of the arrays is not 2D - with pytest.raises(ValueError, match=r"too many values to unpack \(expected 2\)"): + with pytest.raises(ValueError, match=re.escape(r"too many values to unpack (expected 2")): get_xy_extrema( densities=[ # valid 2D trace