Skip to content

Commit

Permalink
Add python3.13 to package classifiers and test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
meatballhat committed Nov 25, 2024
1 parent cf0f8b2 commit 235ee5f
Show file tree
Hide file tree
Showing 9 changed files with 251 additions and 135 deletions.
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

0 comments on commit 235ee5f

Please sign in to comment.