Skip to content

Commit 68c1ebc

Browse files
authored
Add CI testing for Python 3.16. (#199)
1 parent f22b5bb commit 68c1ebc

3 files changed

Lines changed: 12 additions & 36 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ jobs:
4141
backend:
4242
- "macOS-Xcode"
4343
- "macOS-app"
44+
# Linux system builds require the system Python, so they can't be included
45+
# in the build matrix. It's included as a once-off explicit inclusion.
46+
# - "linux-system"
4447
# AppImage builds (a) take over an hour, because the need to compile Numpy and
4548
# Pandas from source, and (b) are only here as a light validation that
4649
# Standalone Python is working. A Flatpak build also validates this, but
@@ -51,7 +54,7 @@ jobs:
5154
- "windows-app"
5255
- "iOS"
5356
- "android"
54-
python-version: ["3.11", "3.12", "3.13", "3.14", "3.15"]
57+
python-version: [ "3.11", "3.12", "3.13", "3.14", "3.15", "3.16" ]
5558

5659
include:
5760
- runs-on: ubuntu-24.04
@@ -94,13 +97,11 @@ jobs:
9497
- backend: iOS
9598
runs-on: macos-26
9699
briefcase-target: "iOS"
97-
briefcase-run-args: ' -d "iPhone 17e::iOS 26.5"'
98100

99101
- backend: android
100102
runs-on: ubuntu-24.04
101103
briefcase-target: "android"
102104
briefcase-run-args: >
103-
--device '{"avd":"beePhone","device_type":"pixel"}'
104105
--Xemulator=-no-window
105106
--Xemulator=-no-snapshot
106107
--Xemulator=-no-audio
@@ -114,7 +115,7 @@ jobs:
114115
sudo udevadm trigger --name-match=kvm
115116
exclude:
116117
- backend: android
117-
python-version: "3.15"
118+
python-version: "3.16"
118119

119120
steps:
120121
- name: Checkout

‎pyproject.toml‎

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,17 @@ requires = [
2727
"""cryptography < 49.0; \
2828
(platform_system != 'Android' and python_version < '3.15') \
2929
or (platform_system == 'Android' and python_version < '3.14')""",
30-
# lru_dict available everywhere
31-
"""lru_dict; \
32-
(platform_system != 'Android' and python_version < '3.15') \
33-
or (platform_system == 'Android' and python_version < '3.14')""",
34-
# pillow not available anywhere on 3.15, or on Android for 3.14+.
30+
# pillow not available anywhere on 3.16, or on Android for 3.14+.
3531
"""pillow; \
36-
(platform_system != 'Android' and python_version < '3.15') \
32+
(platform_system != 'Android' and python_version < '3.16') \
3733
or (platform_system == 'Android' and python_version < '3.14')""",
38-
# pyspamum has 3.13 wheels on iOS and Android; and no wheels on Windows
34+
# pyspamsum has 3.15 wheels on iOS and Android; and no wheels on Windows
3935
# On Linux, we need to restrict the test to Python3.13+, because Android reports
4036
# as "Linux" on Python3.12 and earlier.
4137
"""pyspamsum; \
42-
(platform_system == 'Darwin' and python_version < '3.15') \
43-
or (platform_system == 'iOS' and python_version >= '3.13' and python_version < '3.15') \
44-
or (platform_system == 'Android' and python_version < '3.15') \
38+
(platform_system == 'Darwin' and python_version < '3.16') \
39+
or (platform_system == 'iOS' and python_version >= '3.13' and python_version < '3.16') \
40+
or (platform_system == 'Android' and python_version < '3.16') \
4541
or (platform_system == 'Linux' and python_version >= '3.13')""",
4642
# Numpy not available on 3.14 on Android.
4743
"""numpy; \
@@ -63,7 +59,7 @@ requirement_installer_args = [
6359
requires = [
6460
# Provide a source of binary wheels that aren't provided on PyPI.
6561
"rubicon-objc",
66-
"std-nslog~=2.0.0",
62+
"std-nslog~=2.0.0; python_version < '3.14'",
6763
]
6864
# support_package = "../Python-Apple-support/dist/Python-3.14-macOS-support.custom.tar.gz"
6965

‎tests/test_thirdparty.py‎

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -134,27 +134,6 @@ def test_pyspamsum():
134134
)
135135

136136

137-
@xfail_if_not_installed("lru-dict")
138-
def test_lru_dict():
139-
"The LRUDict binary module can be used"
140-
# lru-dict is the simplest possible example of a third-party module.
141-
# It is pure C, built using distutils, with no dependencies.
142-
from lru import LRU
143-
144-
lru_dict = LRU(5)
145-
146-
# Add 10 items
147-
for i in range(10):
148-
lru_dict[f"item_{i}"] = i
149-
150-
# Items 0-4 have been evicted
151-
for i in range(5):
152-
assert f"item_{i}" not in lru_dict
153-
# Items 5-9 are still there
154-
for i in range(5, 10):
155-
assert lru_dict[f"item_{i}"] == i
156-
157-
158137
@xfail_if_not_installed("pillow")
159138
def test_pillow():
160139
"Pillow can be used to load images"

0 commit comments

Comments
 (0)