Skip to content

Commit 8f32874

Browse files
committed
Use Python 3.13 by default
1 parent fb4f3b6 commit 8f32874

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

.github/workflows/ci.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
go-version-file: go.mod
4949
- uses: actions/setup-python@v5
5050
with:
51-
python-version: 3.12
51+
python-version: 3.13
5252
- uses: hynek/setup-cached-uv@v2
5353
- name: Prepare tox
5454
run: uv pip install --system tox tox-uv
@@ -138,7 +138,7 @@ jobs:
138138
go-version-file: go.mod
139139
- uses: actions/setup-python@v5
140140
with:
141-
python-version: 3.12
141+
python-version: 3.13
142142
- uses: hynek/setup-cached-uv@v2
143143
- name: Prepare tox
144144
run: uv pip install --system tox tox-uv
@@ -171,7 +171,7 @@ jobs:
171171
go-version-file: go.mod
172172
- uses: goreleaser/goreleaser-action@v6
173173
with:
174-
version: '~> v2'
174+
version: "~> v2"
175175
args: release --clean
176176
env:
177177
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

docs/yaml.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ build:
100100
python_version: "3.11.1"
101101
```
102102

103-
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.12 or a version of Python that is compatible with the versions of PyTorch or TensorFlow you specify.
103+
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.
104104

105105
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.
106106

@@ -158,7 +158,7 @@ r8.im is Replicate's registry, but this can be any Docker registry.
158158

159159
If you don't set this, then a name will be generated from the directory name.
160160

161-
If you set this, then you can run `cog push` without specifying the model name.
161+
If you set this, then you can run `cog push` without specifying the model name.
162162

163163
If you specify an image name argument when pushing (like `cog push your-username/custom-model-name`), the argument will be used and the value of `image` in cog.yaml will be ignored.
164164

pkg/config/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func DefaultConfig() *Config {
8080
return &Config{
8181
Build: &Build{
8282
GPU: false,
83-
PythonVersion: "3.12",
83+
PythonVersion: "3.13",
8484
},
8585
}
8686
}

pkg/config/config_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func TestValidateModelPythonVersion(t *testing.T) {
2020
}{
2121
{
2222
name: "ValidVersion",
23-
pythonVersion: "3.12",
23+
pythonVersion: "3.13",
2424
},
2525
{
2626
name: "MinimumVersion",
@@ -39,7 +39,7 @@ func TestValidateModelPythonVersion(t *testing.T) {
3939
},
4040
{
4141
name: "FullyQualifiedVersion",
42-
pythonVersion: "3.12.1",
42+
pythonVersion: "3.13.1",
4343
},
4444
{
4545
name: "InvalidFormat",

pkg/dockerfile/base_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func TestBaseImageConfigurationExists(t *testing.T) {
5555
}
5656

5757
func TestBaseImageConfigurationExistsNoTorch(t *testing.T) {
58-
exists, _, _, _ := BaseImageConfigurationExists("", "3.12", "")
58+
exists, _, _, _ := BaseImageConfigurationExists("", "3.13", "")
5959
require.True(t, exists)
6060
}
6161

tox.ini

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ commands =
3232
tests: pytest python/tests --cov={env_site_packages_dir}/cog --cov-report term-missing:skip-covered {posargs:-n auto -vv}
3333

3434
[testenv:lint]
35-
base_python = python3.12
35+
base_python = python3.13
3636
skip_install = true
3737
deps = ruff
3838
commands =
3939
ruff check python/cog
4040
ruff format --check python
4141

4242
[testenv:typecheck-pydantic1]
43-
base_python = python3.12
43+
base_python = python3.13
4444
deps =
4545
pyright==1.1.375
4646
pydantic>=1,<2
@@ -54,14 +54,14 @@ allowlist_externals =
5454
sed
5555

5656
[testenv:typecheck-pydantic2]
57-
base_python = python3.12
57+
base_python = python3.13
5858
deps =
5959
pyright==1.1.375
6060
pydantic>=2,<3
6161
commands = pyright {posargs}
6262

6363
[testenv:integration]
64-
base_python = python3.12
64+
base_python = python3.13
6565
changedir = test-integration
6666
skip_install = true
6767
deps =

0 commit comments

Comments
 (0)