Skip to content

Commit e05f407

Browse files
authored
Forbid python: 3.8 in run configurations (#2354)
Python 3.8 has reached EOL in October 2024 and has been deprecated in run configurations since `dstack` 0.18.20.
1 parent 0b58949 commit e05f407

File tree

3 files changed

+1
-9
lines changed

3 files changed

+1
-9
lines changed

.github/workflows/docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
runs-on: ubuntu-latest
5050
strategy:
5151
matrix:
52-
python: [ "3.8", "3.9", "3.10", "3.11", "3.12", "3.13" ]
52+
python: [ "3.9", "3.10", "3.11", "3.12", "3.13" ]
5353
steps:
5454
- name: Checkout repository
5555
uses: actions/checkout@v4

src/dstack/_internal/cli/services/configurators/run.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
BaseRunConfigurationWithPorts,
3535
DevEnvironmentConfiguration,
3636
PortMapping,
37-
PythonVersion,
3837
RunConfigurationType,
3938
ServiceConfiguration,
4039
TaskConfiguration,
@@ -73,12 +72,6 @@ def apply_configuration(
7372
):
7473
self.apply_args(conf, configurator_args, unknown_args)
7574
self.validate_gpu_vendor_and_image(conf)
76-
if conf.python == PythonVersion.PY38:
77-
logger.warning(
78-
"Specifying [code]python: 3.8[/] in run configurations is deprecated"
79-
" and will be forbidden in a future [code]dstack[/] release."
80-
" Please upgrade your configuration to a newer Python version."
81-
)
8275
if repo is None:
8376
repo = self.api.repos.load(Path.cwd())
8477
config_manager = ConfigManager()

src/dstack/_internal/core/models/configurations.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ class RunConfigurationType(str, Enum):
3131

3232

3333
class PythonVersion(str, Enum):
34-
PY38 = "3.8" # TODO(0.19 or earlier): drop 3.8, stop building Docker images with 3.8
3534
PY39 = "3.9"
3635
PY310 = "3.10"
3736
PY311 = "3.11"

0 commit comments

Comments
 (0)