Skip to content
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

Add python3.13 to package classifiers and test matrix #2034

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
go-version-file: go.mod
- uses: actions/setup-python@v5
with:
python-version: 3.12
python-version: "3.13"
- uses: hynek/setup-cached-uv@v2
- name: Prepare tox
run: uv pip install --system tox tox-uv
Expand Down Expand Up @@ -138,7 +138,7 @@ jobs:
go-version-file: go.mod
- uses: actions/setup-python@v5
with:
python-version: 3.12
python-version: "3.13"
- uses: hynek/setup-cached-uv@v2
- name: Prepare tox
run: uv pip install --system tox tox-uv
Expand Down
2 changes: 1 addition & 1 deletion docs/yaml.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ build:
python_version: "3.11.1"
```

Cog supports all active branches of Python: 3.8, 3.9, 3.10, 3.11, 3.12. If you don't define a version, Cog will use the latest version of Python 3.12 or a version of Python that is compatible with the versions of PyTorch or TensorFlow you specify.
Cog supports all active branches of Python: 3.8, 3.9, 3.10, 3.11, 3.12, 3.13. If you don't define a version, Cog will use the latest version of Python 3.13 or a version of Python that is compatible with the versions of PyTorch or TensorFlow you specify.

Note that these are the versions supported **in the Docker container**, not your host machine. You can run any version(s) of Python you wish on your host machine.

Expand Down
2 changes: 1 addition & 1 deletion pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func DefaultConfig() *Config {
return &Config{
Build: &Build{
GPU: false,
PythonVersion: "3.12",
PythonVersion: "3.13",
},
}
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func TestValidateModelPythonVersion(t *testing.T) {
}{
{
name: "ValidVersion",
input: "3.12",
input: "3.13",
expectedErr: false,
},
{
Expand Down
13 changes: 13 additions & 0 deletions pkg/config/tf_compatibility_matrix.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
[
{
"TF": "2.18.0",
"TFCPUPackage": "tensorflow==2.18.0",
"TFGPUPackage": "tensorflow==2.18.0",
"CUDA": "12.5",
"CuDNN": "9.3",
"Pythons": [
"3.9",
"3.10",
"3.11",
"3.12"
]
},
{
"TF": "2.17.0",
"TFCPUPackage": "tensorflow==2.17.0",
Expand Down
Loading
Loading