From ba569a2989bdd98dffeab1a68c40f1643796a9c7 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Thu, 19 Dec 2024 10:11:26 +0800 Subject: [PATCH 1/2] Add exclusions for iOS and Android on 3.14. --- pyproject.toml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 549382d..55ed4c6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,9 +19,10 @@ sources = ["src/testbed"] test_sources = ["tests"] requires = [ - "cryptography", - "lru_dict", - "pillow", + # Skip binary dependencies on mobile for Python 3.14 + "cryptography; not (platform_system == 'iOS' or platform_system == 'Android') or python_version < '3.14')", + "lru_dict; not (platform_system == 'iOS' or platform_system == 'Android') or python_version < '3.14')", + "pillow; not (platform_system == 'iOS' or platform_system == 'Android') or python_version < '3.14')", # Numpy/pandas aren't available for iOS on 3.13+, or at all on 3.14. "numpy; python_version < '3.13' or (platform_system != 'iOS' and python_version < '3.14')", "pandas; python_version < '3.13' or (platform_system != 'iOS' and python_version < '3.14')", From fa5d309a05dbba470a3c88a8789393ffd1ef59ee Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Thu, 19 Dec 2024 10:16:46 +0800 Subject: [PATCH 2/2] Use legal syntax for version exclusions. --- pyproject.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 55ed4c6..5be6b5f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,9 +20,9 @@ test_sources = ["tests"] requires = [ # Skip binary dependencies on mobile for Python 3.14 - "cryptography; not (platform_system == 'iOS' or platform_system == 'Android') or python_version < '3.14')", - "lru_dict; not (platform_system == 'iOS' or platform_system == 'Android') or python_version < '3.14')", - "pillow; not (platform_system == 'iOS' or platform_system == 'Android') or python_version < '3.14')", + "cryptography; (platform_system != 'iOS' and platform_system != 'Android') or python_version < '3.14'", + "lru_dict; (platform_system != 'iOS' and platform_system != 'Android') or python_version < '3.14'", + "pillow; (platform_system != 'iOS' and platform_system != 'Android') or python_version < '3.14'", # Numpy/pandas aren't available for iOS on 3.13+, or at all on 3.14. "numpy; python_version < '3.13' or (platform_system != 'iOS' and python_version < '3.14')", "pandas; python_version < '3.13' or (platform_system != 'iOS' and python_version < '3.14')",