Skip to content

Commit f55cc44

Browse files
feat: Support Python 3.15 (meltano#3726)
Blockers: - msgspec/msgspec#1152 - apache/arrow#48172 (scheduled for [26.0.0](https://github.com/apache/arrow/milestone/75)) ## Summary by Sourcery Add Python 3.15 support across package metadata, dependency resolution, version handling, and continuous integration. New Features: - Add Python 3.15 to the package’s supported versions and compatibility metadata. Enhancements: - Update version discovery tests and dependency resolution to support Python 3.15, including the required PyArrow nightly dependency source. CI: - Run the main test, documentation, dependency, contributor, package, and platform coverage against Python 3.15. - Align CodSpeed’s Python version with the repository’s configured version file and prevent pre-commit CI from running uv-lock. Tests: - Update supported-version tests to include Python 3.15. Signed-off-by: Edgar Ramírez Mondragón <[email protected]>
1 parent a6fcdf7 commit f55cc44

7 files changed

Lines changed: 98 additions & 21 deletions

File tree

‎.github/workflows/codspeed.yml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ jobs:
4646
persist-credentials: false
4747
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
4848
with:
49-
architecture: x64
50-
python-version: "3.14"
49+
python-version-file: .python-version
5150

5251
- name: Install uv
5352
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1

‎.github/workflows/test.yml‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,17 @@ jobs:
7070
- "3.14"
7171
- "3.15"
7272
include:
73-
- { session: tests, python-version: "3.14", os: "macos-latest" }
73+
- { session: tests, python-version: "3.15", os: "macos-latest" }
7474
- { session: tests, python-version: "3.10", os: "macos-latest" }
75-
- { session: tests, python-version: "3.14", os: "windows-latest" }
75+
- { session: tests, python-version: "3.15", os: "windows-latest" }
7676
- { session: tests, python-version: "3.10", os: "windows-latest" }
77-
- { session: doctest, python-version: "3.14", os: "ubuntu-latest" }
78-
- { session: deps, python-version: "3.14", os: "ubuntu-latest" }
77+
- { session: doctest, python-version: "3.15", os: "ubuntu-latest" }
78+
- { session: deps, python-version: "3.15", os: "ubuntu-latest" }
7979
- { session: test-lowest, python-version: "3.10", os: "ubuntu-latest" }
8080
- { session: test-contrib, python-version: "3.10", os: "ubuntu-latest" }
81-
- { session: test-contrib, python-version: "3.14", os: "ubuntu-latest" }
81+
- { session: test-contrib, python-version: "3.15", os: "ubuntu-latest" }
8282
- { session: test-packages, python-version: "3.10", os: "ubuntu-latest" }
83-
- { session: test-packages, python-version: "3.14", os: "ubuntu-latest" }
83+
- { session: test-packages, python-version: "3.15", os: "ubuntu-latest" }
8484

8585
steps:
8686
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@@ -122,7 +122,7 @@ jobs:
122122
matrix:
123123
python-version:
124124
- "3.10"
125-
- "3.14"
125+
- "3.15"
126126
steps:
127127
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
128128
with:

‎.pre-commit-config.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ ci:
55
autoupdate_commit_msg: 'chore: pre-commit autoupdate'
66
skip:
77
- uv-audit
8+
- uv-lock
89

910
default_language_version:
1011
python: python3.14

‎pyproject.toml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ classifiers = [
2121
"Programming Language :: Python :: 3.12",
2222
"Programming Language :: Python :: 3.13",
2323
"Programming Language :: Python :: 3.14",
24+
"Programming Language :: Python :: 3.15",
2425
"Programming Language :: Python :: Implementation :: CPython",
2526
"Topic :: Software Development :: Libraries :: Application Frameworks",
2627
"Typing :: Typed",
@@ -491,6 +492,9 @@ meltano-tap-sqlite = { workspace = true }
491492
meltano-target-csv = { workspace = true }
492493
meltano-target-parquet = { workspace = true }
493494
meltano-target-sqlite = { workspace = true }
495+
pyarrow = [
496+
{ index = "scientific-python-nightly-wheels", marker = "python_version >= '3.15'" },
497+
]
494498

495499
[tool.uv.workspace]
496500
members = [

‎singer_sdk/about.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
# Keep these in sync with the supported Python versions in pyproject.toml
3434
_PY_MIN_VERSION = 10
35-
_PY_MAX_VERSION = 14
35+
_PY_MAX_VERSION = 15
3636

3737

3838
def _get_min_version(specifiers: SpecifierSet) -> int:

‎tests/core/test_about.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ def get_all(self, key, default=None):
142142
"specifiers,classifiers,expected",
143143
[
144144
(">=3.9,<3.12", None, ["3.9", "3.10", "3.11"]),
145-
(">=3.9", None, ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]),
146-
(">3.9", None, ["3.10", "3.11", "3.12", "3.13", "3.14"]),
145+
(">=3.9", None, ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "3.15"]),
146+
(">3.9", None, ["3.10", "3.11", "3.12", "3.13", "3.14", "3.15"]),
147147
(">3.9,<=3.11", None, ["3.10", "3.11"]),
148148
(">=3.9,<3.12", ["3.9", "3.10", "3.11"], ["3.9", "3.10", "3.11"]),
149149
(

‎uv.lock‎

Lines changed: 82 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)