Skip to content

Commit 2eaff20

Browse files
Merge pull request #346 from tpvasconcelos/upgrade-python-support
Add official support for Python 3.14 🥧
2 parents 4d9cbad + dde86bb commit 2eaff20

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
- "3.11"
5252
- "3.12"
5353
- "3.13"
54-
#- "3.14"
54+
- "3.14"
5555
os:
5656
- ubuntu-latest
5757
# There shouldn't be any behavior differences between OSes,

docs/reference/changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ This document outlines the list of changes to ridgeplot between each release. Fo
55
Unreleased changes
66
------------------
77

8+
- Add support for Python 3.14, in accordance with the official Python support policy[^1] ({gh-pr}`346`)
9+
810
### Bug fixes
911

1012
- Fix the way histogram bin centers are computed ({gh-pr}`364`)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ classifiers = [
2626
"Programming Language :: Python :: 3.11",
2727
"Programming Language :: Python :: 3.12",
2828
"Programming Language :: Python :: 3.13",
29-
#"Programming Language :: Python :: 3.14",
29+
"Programming Language :: Python :: 3.14",
3030
"Programming Language :: Python :: Implementation :: CPython",
3131
"Topic :: Software Development",
3232
"Topic :: Scientific/Engineering",

tests/unit/color/test_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ def test_to_rgb(color: Color, expected: str) -> None:
5656
"hex or rgb color, got 'not-a-color' instead",
5757
),
5858
# invalid hex
59-
("#1234567890", ValueError, "too many values to unpack (expected 3)"),
59+
("#1234567890", ValueError, "too many values to unpack (expected 3"),
6060
("#ABCDEFGHIJ", ValueError, "invalid literal for int() with base 16"),
6161
# invalid rgb
6262
("rgb(0,0,999)", PlotlyError, "rgb colors tuples cannot exceed 255"),
6363
# invalid tuple
6464
((1, 2), ValueError, "not enough values to unpack (expected 3, got 2)"),
65-
((1, 2, 3, 4), ValueError, "too many values to unpack (expected 3)"),
65+
((1, 2, 3, 4), ValueError, "too many values to unpack (expected 3"),
6666
],
6767
)
6868
def test_to_rgb_fails_for_invalid_color(

tests/unit/test_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from __future__ import annotations
22

3+
import re
34
from itertools import product
45
from typing import TYPE_CHECKING, TypeVar
56

@@ -31,7 +32,7 @@ def test_raise_for_empty_sequence(self) -> None:
3132

3233
def test_raise_for_non_2d_array(self) -> None:
3334
# Fails if one of the arrays is not 2D
34-
with pytest.raises(ValueError, match=r"too many values to unpack \(expected 2\)"):
35+
with pytest.raises(ValueError, match=re.escape(r"too many values to unpack (expected 2")):
3536
get_xy_extrema(
3637
densities=[
3738
# valid 2D trace

0 commit comments

Comments
 (0)