Skip to content

Commit 5020fa9

Browse files
author
marwan37
committed
bump python version in pyproject.toml and replace tomli with tomlib
1 parent ed92bdb commit 5020fa9

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ description = "Explore MLOps production use-cases with ZenML."
55
authors = ["ZenML CodeMonkey <[email protected]>"]
66

77
[tool.poetry.dependencies]
8-
python = ">=3.7.0,<3.9.0"
9-
tomli = "^2.0.1" # Added for parsing pyproject.toml files when generating Dockerfile.codespace
8+
python = ">=3.11,<3.13"
109

1110
[tool.poetry.dev-dependencies]
1211
pytest = "^6.2.5"

scripts/generate_codespace_dockerfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import sys
88
from pathlib import Path
99

10-
import tomli
10+
import tomllib
1111

1212
# Dockerfile template
1313
DOCKER_TEMPLATE = """# Sandbox base image
@@ -84,7 +84,7 @@ def parse_pyproject(project_dir: Path) -> list[str]:
8484
if not file.exists():
8585
return []
8686
try:
87-
data = tomli.loads(file.read_bytes())
87+
data = tomllib.loads(file.read_bytes())
8888
# PEP 621
8989
if deps := data.get("project", {}).get("dependencies"): # type: ignore
9090
raw = deps

0 commit comments

Comments
 (0)