-
Notifications
You must be signed in to change notification settings - Fork 17
Remove version cap for torch and torchaudio, add Python 3.13/3.14 support #61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
a8c5bff
6bad018
85667ca
853c8c6
e602bb2
20295d0
13acd18
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,18 +7,19 @@ authors = [ | |
| { "name" = "Santiago Martinez Balvanera", "email" = "santiago.balvanera.20@ucl.ac.uk" }, | ||
| ] | ||
| dependencies = [ | ||
| "click>=8.1.7", | ||
| "librosa>=0.10.1", | ||
| "matplotlib>=3.7.1", | ||
| "numpy>=1.23.5", | ||
| "pandas>=1.5.3", | ||
| "scikit-learn>=1.2.2", | ||
| "scipy>=1.10.1", | ||
| "torch>=1.13.1,<2.5.0", | ||
| "torchaudio>=1.13.1,<2.5.0", | ||
| "torchvision>=0.14.0", | ||
| "click>=8.1.7", | ||
| "librosa>=0.10.1", | ||
| "matplotlib>=3.7.1", | ||
| "numpy>=1.23.5", | ||
| "pandas>=1.5.3", | ||
| "scikit-learn>=1.2.2", | ||
| "scipy>=1.10.1", | ||
| "torch>=1.13.1", | ||
| "torchaudio>=1.13.1", | ||
| "torchvision>=0.14.0", | ||
| "setuptools>=70.1.0; python_version == '3.14'", | ||
| ] | ||
| requires-python = ">=3.9,<3.13" | ||
| requires-python = ">=3.9,<3.15" | ||
|
Comment on lines
+17
to
+22
|
||
| readme = "README.md" | ||
| license = { text = "CC-by-nc-4" } | ||
| classifiers = [ | ||
|
|
@@ -30,6 +31,8 @@ classifiers = [ | |
| "Programming Language :: Python :: 3.10", | ||
| "Programming Language :: Python :: 3.11", | ||
| "Programming Language :: Python :: 3.12", | ||
| "Programming Language :: Python :: 3.13", | ||
| "Programming Language :: Python :: 3.14", | ||
| "Topic :: Scientific/Engineering :: Artificial Intelligence", | ||
| "Topic :: Software Development :: Libraries :: Python Modules", | ||
| "Topic :: Multimedia :: Sound/Audio :: Analysis", | ||
|
|
@@ -51,13 +54,37 @@ build-backend = "hatchling.build" | |
| [project.scripts] | ||
| batdetect2 = "batdetect2.cli:cli" | ||
|
|
||
| [tool.uv] | ||
| dev-dependencies = [ | ||
| "debugpy>=1.8.8", | ||
| "hypothesis>=6.118.7", | ||
| "pyright>=1.1.388", | ||
| "pytest>=7.2.2", | ||
| "ruff>=0.7.3", | ||
| [dependency-groups] | ||
| dev = [ | ||
| "debugpy>=1.8.8", | ||
| "hypothesis>=6.118.7", | ||
| "pyright>=1.1.388", | ||
| "pytest>=7.2.2", | ||
| "ruff>=0.7.3", | ||
| ] | ||
|
|
||
| [[tool.uv.index]] | ||
| name = "pytorch-cu126" | ||
| url = "https://download.pytorch.org/whl/cu126" | ||
| explicit = true | ||
|
|
||
| [[tool.uv.index]] | ||
| name = "pytorch-cu118" | ||
| url = "https://download.pytorch.org/whl/cu118" | ||
| explicit = true | ||
|
|
||
| [tool.uv.sources] | ||
| torch = [ | ||
| { index = "pytorch-cu118", marker = "python_version == '3.9' and (sys_platform == 'linux' or sys_platform == 'win32')" }, | ||
| { index = "pytorch-cu126", marker = "python_version != '3.9' and (sys_platform == 'linux' or sys_platform == 'win32')" }, | ||
| ] | ||
| torchvision = [ | ||
| { index = "pytorch-cu118", marker = "python_version == '3.9' and (sys_platform == 'linux' or sys_platform == 'win32')" }, | ||
| { index = "pytorch-cu126", marker = "python_version != '3.9' and (sys_platform == 'linux' or sys_platform == 'win32')" }, | ||
| ] | ||
| torchaudio = [ | ||
| { index = "pytorch-cu118", marker = "python_version == '3.9' and (sys_platform == 'linux' or sys_platform == 'win32')" }, | ||
| { index = "pytorch-cu126", marker = "python_version != '3.9' and (sys_platform == 'linux' or sys_platform == 'win32')" }, | ||
| ] | ||
|
|
||
| [tool.ruff] | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The matrix adds Python 3.13/3.14, but
uv syncwill readuv.lock, whose header currently limitsrequires-pythonto<3.13. Unless the lockfile is regenerated for the new Python range, the 3.13/3.14 CI jobs are expected to fail during dependency sync.