diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 21774e6507..98512b60eb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 @@ -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 @@ -171,7 +171,7 @@ jobs: go-version-file: go.mod - uses: goreleaser/goreleaser-action@v6 with: - version: '~> v2' + version: "~> v2" args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/docs/yaml.md b/docs/yaml.md index 2b4e67e69b..1183cb9451 100644 --- a/docs/yaml.md +++ b/docs/yaml.md @@ -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, 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. +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. @@ -158,7 +158,7 @@ r8.im is Replicate's registry, but this can be any Docker registry. If you don't set this, then a name will be generated from the directory name. -If you set this, then you can run `cog push` without specifying the model name. +If you set this, then you can run `cog push` without specifying the model name. 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. diff --git a/pkg/config/config.go b/pkg/config/config.go index f3e28eb7f6..7cc726c783 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -80,7 +80,7 @@ func DefaultConfig() *Config { return &Config{ Build: &Build{ GPU: false, - PythonVersion: "3.12", + PythonVersion: "3.13", }, } } diff --git a/pkg/config/config_test.go b/pkg/config/config_test.go index 934fba5a70..9686cf78b8 100644 --- a/pkg/config/config_test.go +++ b/pkg/config/config_test.go @@ -20,7 +20,7 @@ func TestValidateModelPythonVersion(t *testing.T) { }{ { name: "ValidVersion", - pythonVersion: "3.12", + pythonVersion: "3.13", }, { name: "MinimumVersion", @@ -39,7 +39,7 @@ func TestValidateModelPythonVersion(t *testing.T) { }, { name: "FullyQualifiedVersion", - pythonVersion: "3.12.1", + pythonVersion: "3.13.1", }, { name: "InvalidFormat", diff --git a/pkg/dockerfile/base_test.go b/pkg/dockerfile/base_test.go index ea7f4faae1..13fc01e727 100644 --- a/pkg/dockerfile/base_test.go +++ b/pkg/dockerfile/base_test.go @@ -55,7 +55,7 @@ func TestBaseImageConfigurationExists(t *testing.T) { } func TestBaseImageConfigurationExistsNoTorch(t *testing.T) { - exists, _, _, _ := BaseImageConfigurationExists("", "3.12", "") + exists, _, _, _ := BaseImageConfigurationExists("", "3.13", "") require.True(t, exists) } diff --git a/tox.ini b/tox.ini index 450462c728..6f9ed9ed34 100644 --- a/tox.ini +++ b/tox.ini @@ -32,7 +32,7 @@ commands = tests: pytest python/tests --cov={env_site_packages_dir}/cog --cov-report term-missing:skip-covered {posargs:-n auto -vv} [testenv:lint] -base_python = python3.12 +base_python = python3.13 skip_install = true deps = ruff commands = @@ -40,7 +40,7 @@ commands = ruff format --check python [testenv:typecheck-pydantic1] -base_python = python3.12 +base_python = python3.13 deps = pyright==1.1.375 pydantic>=1,<2 @@ -54,14 +54,14 @@ allowlist_externals = sed [testenv:typecheck-pydantic2] -base_python = python3.12 +base_python = python3.13 deps = pyright==1.1.375 pydantic>=2,<3 commands = pyright {posargs} [testenv:integration] -base_python = python3.12 +base_python = python3.13 changedir = test-integration skip_install = true deps =