Skip to content

Commit d2bc236

Browse files
authored
docs: standardize Python version examples to 3.13 across all docs (#2810)
Examples across documentation used inconsistent Python versions (3.8, 3.10, 3.11, 3.12). The default is 3.13 (pkg/config/config.go), so all examples should reflect that. Also updates the JSON schema description which still referenced 3.8.
1 parent 67ecfd5 commit d2bc236

File tree

8 files changed

+25
-25
lines changed

8 files changed

+25
-25
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ build:
2626
system_packages:
2727
- "libgl1-mesa-glx"
2828
- "libglib2.0-0"
29-
python_version: "3.12"
29+
python_version: "3.13"
3030
python_requirements: requirements.txt
3131
predict: "predict.py:Predictor"
3232
```

docs/getting-started-own-model.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ For example:
3636

3737
```yaml
3838
build:
39-
python_version: "3.12"
39+
python_version: "3.13"
4040
python_requirements: requirements.txt
4141
```
4242
@@ -115,7 +115,7 @@ Next, add the line `predict: "predict.py:Predictor"` to your `cog.yaml`, so it l
115115

116116
```yaml
117117
build:
118-
python_version: "3.12"
118+
python_version: "3.13"
119119
python_requirements: requirements.txt
120120
predict: "predict.py:Predictor"
121121
```

docs/getting-started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ The first thing you need to do is create a file called `cog.yaml`:
5858
5959
```yaml
6060
build:
61-
python_version: "3.12"
61+
python_version: "3.13"
6262
```
6363
6464
Then, you can run any command inside this environment. For example, enter
@@ -135,7 +135,7 @@ Then update `cog.yaml` to look like this:
135135

136136
```yaml
137137
build:
138-
python_version: "3.12"
138+
python_version: "3.13"
139139
python_requirements: requirements.txt
140140
predict: "predict.py:Predictor"
141141
```

docs/http.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ Content-Type: application/json
258258
"version": {
259259
"coglet": "0.17.0",
260260
"cog": "0.14.0",
261-
"python": "3.12.0"
261+
"python": "3.13.0"
262262
}
263263
}
264264
```

docs/llms.txt

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/training.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ If you've used Cog before, you've probably seen the [Predictor](./python.md) cla
1313

1414
```yaml
1515
build:
16-
python_version: "3.10"
16+
python_version: "3.13"
1717
train: "train.py:train"
1818
```
1919
@@ -43,7 +43,7 @@ You can also use classes if you want to run many model trainings and save on set
4343

4444
```yaml
4545
build:
46-
python_version: "3.10"
46+
python_version: "3.13"
4747
train: "train.py:Trainer"
4848
```
4949

docs/yaml.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ It has three keys: [`build`](#build), [`image`](#image), and [`predict`](#predic
66

77
```yaml
88
build:
9-
python_version: "3.11"
9+
python_version: "3.13"
1010
python_requirements: requirements.txt
1111
system_packages:
1212
- "ffmpeg"
@@ -108,11 +108,11 @@ Your `cog.yaml` file can set either `python_packages` or `python_requirements`,
108108

109109
### `python_version`
110110

111-
The minor (`3.11`) or patch (`3.11.1`) version of Python to use. For example:
111+
The minor (`3.13`) or patch (`3.13.1`) version of Python to use. For example:
112112

113113
```yaml
114114
build:
115-
python_version: "3.11.1"
115+
python_version: "3.13.1"
116116
```
117117

118118
Cog supports Python 3.10, 3.11, 3.12, and 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.
@@ -154,7 +154,7 @@ Pin the version of the cog Python SDK installed in the container. Accepts a [PEP
154154

155155
```yaml
156156
build:
157-
python_version: "3.12"
157+
python_version: "3.13"
158158
sdk_version: "0.18.0"
159159
```
160160

pkg/config/data/config_schema_v1.0.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"string",
3131
"number"
3232
],
33-
"description": "The minor (`3.8`) or patch (`3.8.1`) version of Python to use."
33+
"description": "The minor (`3.13`) or patch (`3.13.1`) version of Python to use."
3434
},
3535
"python_packages": {
3636
"$id": "#/properties/build/properties/python_packages",

0 commit comments

Comments
 (0)