Skip to content

Commit

Permalink
fix(deps): add bounds to fix lower-bounds tests on 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
rg936672 committed Feb 18, 2025
1 parent 200eb0b commit 1687e8d
Show file tree
Hide file tree
Showing 4 changed files with 197 additions and 72 deletions.
1 change: 1 addition & 0 deletions .cspell/library_terms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ pytest
PYTHONHASHSEED
pytorch
pyupgrade
pywinpty
qualnames
quickstart
randn
Expand Down
11 changes: 11 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,24 @@ dependencies = [
"kmedoids>=0.3.3", # first version with prebuilt wheels; earlier versions require a rust toolchain to build
"kmedoids>=0.4; python_version>='3.11'", # earlier versions don't have prebuilt wheels for python 3.11
"kmedoids>=0.4.4; python_version>='3.12'", # earlier versions don't have prebuilt wheels for python 3.12
"kmedoids>=0.5.3; python_version>='3.13'", # earlier versions don't have prebuilt wheels for python 3.13
"matplotlib>=3.5", # earlier versions don't install properly on Windows
"matplotlib>=3.6; python_version>='3.11'", # earlier versions don't install properly on Windows
"numpy>=1.21", # numpy.typing introduced in 1.21
"numpy>=1.26; python_version>='3.12'", # 1.25 and earlier require distutils, which was removed in 3.12
"numpy>=2.1.0; python_version>='3.13'", # first version to support python 3.13
"pandas>=2",
"pandas>=2.2.3; python_version>='3.13'", # earlier versions don't provide prebuilt wheels for python 3.13
"scikit-learn>=1.5.0", # CVE-2024-5206 affects versions earlier than 1.5.0
"scikit-learn>=1.6.0", # earlier versions don't provide prebuilt wheels for python 3.13
"scipy>=1.4", # earlier versions fail to build with recent setuptools versions
"scipy>=1.12; python_version>='3.12'", # earlier versions don't provide prebuilt wheels for python 3.12
"scipy>=1.14.1; python_version>='3.13'", # earlier versions don't provide prebuilt wheels for python 3.13
"torch>=2.2", # torch.optim.LRScheduler made public in 2.0.0;
# versions <2.2 have issues with C library dependencies in our CI
"torch>=2.6; python_version>='3.13'", # first version with prebuilt wheels for python 3.13 on non-Linux
"typing_extensions>=4.4", # @override introduced in 4.4
"typing_extensions>=4.12; python_version>='3.13'", # ParamSpec behaviour improved in 4.12
"urllib3>=2.0.4", # BaseHttpResponse added to urllib3.__all__ in 2.0.4
]

Expand Down Expand Up @@ -128,8 +135,12 @@ constraint-dependencies = [
"pywin32>=302; python_version>='3.10'", # first version to support 3.10
"pywin32>=303; python_version>='3.11'", # first version to support 3.11
"pywin32>=306; python_version>='3.12'", # first version to support 3.12
"pywin32>=307; python_version>='3.13'", # first version to support 3.13
"wheel>=0.30", # picking a too-low version of this was causing CI failures that couldn't be replicated locally,
# so this is a guessed lower bound
"cffi>=1.17; python_version>='3.13'",
"pywinpty>=2.0.14; python_version>='3.13'",
"pillow>=11",
]

# force the lockfile to be split by Python version, ensuring we get the latest dependencies for each version
Expand Down
30 changes: 15 additions & 15 deletions requirements-docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
.
alabaster==0.7.16 ; python_full_version < '3.10'
alabaster==1.0.0 ; python_full_version >= '3.10'
appnope==0.1.4 ; sys_platform == 'darwin'
appnope==0.1.4 ; (python_full_version < '3.13' and sys_platform == 'darwin') or (os_name != 'nt' and sys_platform == 'darwin')
asttokens==3.0.0
attrs==25.1.0
babel==2.17.0
Expand Down Expand Up @@ -70,29 +70,29 @@ networkx==3.4.2 ; python_full_version >= '3.10'
numpy==2.0.2 ; python_full_version < '3.10'
numpy==2.2.3 ; python_full_version >= '3.10'
nvidia-cublas-cu12==12.1.3.1 ; python_full_version < '3.13' and platform_machine == 'x86_64' and sys_platform == 'linux'
nvidia-cublas-cu12==12.4.5.8 ; python_full_version >= '3.13' and platform_machine == 'x86_64' and sys_platform == 'linux'
nvidia-cublas-cu12==12.4.5.8 ; python_full_version >= '3.13' and os_name != 'nt' and platform_machine == 'x86_64' and sys_platform == 'linux'
nvidia-cuda-cupti-cu12==12.1.105 ; python_full_version < '3.13' and platform_machine == 'x86_64' and sys_platform == 'linux'
nvidia-cuda-cupti-cu12==12.4.127 ; python_full_version >= '3.13' and platform_machine == 'x86_64' and sys_platform == 'linux'
nvidia-cuda-cupti-cu12==12.4.127 ; python_full_version >= '3.13' and os_name != 'nt' and platform_machine == 'x86_64' and sys_platform == 'linux'
nvidia-cuda-nvrtc-cu12==12.1.105 ; python_full_version < '3.13' and platform_machine == 'x86_64' and sys_platform == 'linux'
nvidia-cuda-nvrtc-cu12==12.4.127 ; python_full_version >= '3.13' and platform_machine == 'x86_64' and sys_platform == 'linux'
nvidia-cuda-nvrtc-cu12==12.4.127 ; python_full_version >= '3.13' and os_name != 'nt' and platform_machine == 'x86_64' and sys_platform == 'linux'
nvidia-cuda-runtime-cu12==12.1.105 ; python_full_version < '3.13' and platform_machine == 'x86_64' and sys_platform == 'linux'
nvidia-cuda-runtime-cu12==12.4.127 ; python_full_version >= '3.13' and platform_machine == 'x86_64' and sys_platform == 'linux'
nvidia-cudnn-cu12==9.1.0.70 ; platform_machine == 'x86_64' and sys_platform == 'linux'
nvidia-cuda-runtime-cu12==12.4.127 ; python_full_version >= '3.13' and os_name != 'nt' and platform_machine == 'x86_64' and sys_platform == 'linux'
nvidia-cudnn-cu12==9.1.0.70 ; (python_full_version < '3.13' and platform_machine == 'x86_64' and sys_platform == 'linux') or (os_name != 'nt' and platform_machine == 'x86_64' and sys_platform == 'linux')
nvidia-cufft-cu12==11.0.2.54 ; python_full_version < '3.13' and platform_machine == 'x86_64' and sys_platform == 'linux'
nvidia-cufft-cu12==11.2.1.3 ; python_full_version >= '3.13' and platform_machine == 'x86_64' and sys_platform == 'linux'
nvidia-cufft-cu12==11.2.1.3 ; python_full_version >= '3.13' and os_name != 'nt' and platform_machine == 'x86_64' and sys_platform == 'linux'
nvidia-curand-cu12==10.3.2.106 ; python_full_version < '3.13' and platform_machine == 'x86_64' and sys_platform == 'linux'
nvidia-curand-cu12==10.3.5.147 ; python_full_version >= '3.13' and platform_machine == 'x86_64' and sys_platform == 'linux'
nvidia-curand-cu12==10.3.5.147 ; python_full_version >= '3.13' and os_name != 'nt' and platform_machine == 'x86_64' and sys_platform == 'linux'
nvidia-cusolver-cu12==11.4.5.107 ; python_full_version < '3.13' and platform_machine == 'x86_64' and sys_platform == 'linux'
nvidia-cusolver-cu12==11.6.1.9 ; python_full_version >= '3.13' and platform_machine == 'x86_64' and sys_platform == 'linux'
nvidia-cusolver-cu12==11.6.1.9 ; python_full_version >= '3.13' and os_name != 'nt' and platform_machine == 'x86_64' and sys_platform == 'linux'
nvidia-cusparse-cu12==12.1.0.106 ; python_full_version < '3.13' and platform_machine == 'x86_64' and sys_platform == 'linux'
nvidia-cusparse-cu12==12.3.1.170 ; python_full_version >= '3.13' and platform_machine == 'x86_64' and sys_platform == 'linux'
nvidia-cusparselt-cu12==0.6.2 ; python_full_version >= '3.13' and platform_machine == 'x86_64' and sys_platform == 'linux'
nvidia-cusparse-cu12==12.3.1.170 ; python_full_version >= '3.13' and os_name != 'nt' and platform_machine == 'x86_64' and sys_platform == 'linux'
nvidia-cusparselt-cu12==0.6.2 ; python_full_version >= '3.13' and os_name != 'nt' and platform_machine == 'x86_64' and sys_platform == 'linux'
nvidia-nccl-cu12==2.20.5 ; python_full_version < '3.13' and platform_machine == 'x86_64' and sys_platform == 'linux'
nvidia-nccl-cu12==2.21.5 ; python_full_version >= '3.13' and platform_machine == 'x86_64' and sys_platform == 'linux'
nvidia-nvjitlink-cu12==12.4.127 ; python_full_version >= '3.13' and platform_machine == 'x86_64' and sys_platform == 'linux'
nvidia-nccl-cu12==2.21.5 ; python_full_version >= '3.13' and os_name != 'nt' and platform_machine == 'x86_64' and sys_platform == 'linux'
nvidia-nvjitlink-cu12==12.4.127 ; python_full_version >= '3.13' and os_name != 'nt' and platform_machine == 'x86_64' and sys_platform == 'linux'
nvidia-nvjitlink-cu12==12.8.61 ; python_full_version < '3.13' and platform_machine == 'x86_64' and sys_platform == 'linux'
nvidia-nvtx-cu12==12.1.105 ; python_full_version < '3.13' and platform_machine == 'x86_64' and sys_platform == 'linux'
nvidia-nvtx-cu12==12.4.127 ; python_full_version >= '3.13' and platform_machine == 'x86_64' and sys_platform == 'linux'
nvidia-nvtx-cu12==12.4.127 ; python_full_version >= '3.13' and os_name != 'nt' and platform_machine == 'x86_64' and sys_platform == 'linux'
packaging==24.2
pandas==2.2.3
pandocfilters==1.5.1
Expand Down Expand Up @@ -147,7 +147,7 @@ tornado==6.4.2
tqdm==4.67.1
traitlets==5.14.3
triton==3.0.0 ; python_full_version < '3.13' and platform_machine == 'x86_64' and sys_platform == 'linux'
triton==3.2.0 ; python_full_version >= '3.13' and platform_machine == 'x86_64' and sys_platform == 'linux'
triton==3.2.0 ; python_full_version >= '3.13' and os_name != 'nt' and platform_machine == 'x86_64' and sys_platform == 'linux'
typeguard==4.4.2 ; python_full_version < '3.10'
typing-extensions==4.12.2
tzdata==2025.1
Expand Down
Loading

0 comments on commit 1687e8d

Please sign in to comment.