Skip to content

Commit a6287fc

Browse files
committed
⬆️ Upgrade build script to python 3.13
1 parent 948ca20 commit a6287fc

4 files changed

Lines changed: 191 additions & 146 deletions

File tree

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.12.7
1+
3.13.6

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ dependencies = [
99
]
1010
description = "Build docker images with Python and Node.js"
1111
readme = "README.md"
12-
requires-python = "~= 3.12"
12+
requires-python = "~= 3.13.0"
1313

1414
[build-system]
15-
requires = ["hatchling"]
16-
build-backend = "hatchling.build"
15+
requires = ["uv_build>=0.8.9,<0.9.0"]
16+
build-backend = "uv_build"
1717

1818
[project.scripts]
1919
dpn = "docker_python_nodejs:dpn"
@@ -22,7 +22,7 @@ dpn = "docker_python_nodejs:dpn"
2222
dev-dependencies = [
2323
"pytest",
2424
"pre-commit",
25-
"ruff==0.12.8",
25+
"ruff",
2626
"pytest-cov",
2727
"mypy",
2828
"types-requests",
@@ -44,7 +44,7 @@ ignore = [
4444
"FBT001", # Allow boolean function args
4545
"FIX001" # Allow fixme's
4646
]
47-
target-version = "py312"
47+
target-version = "py313"
4848

4949
[tool.ruff.per-file-ignores]
5050
"**/test*.py" = ["S101"]

src/docker_python_nodejs/cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import argparse
2+
import json
23
import logging
34
from typing import Literal, cast
45

@@ -86,7 +87,7 @@ def parse_args() -> CLIArgs:
8687
subparsers = parser.add_subparsers(dest="command", help="Sub-commands")
8788
# Dockerfile command
8889
parser_dockerfile = subparsers.add_parser("dockerfile", help="Render a dockerfile based on version config")
89-
parser_dockerfile.add_argument("--context", default="", help="Dockerfile version config")
90+
parser_dockerfile.add_argument("--context", default="", type=json.loads, help="Dockerfile version config")
9091
# Build matrix command
9192
parser_build_matrix = subparsers.add_parser("build-matrix", help="Generate CI build matrix")
9293
parser_build_matrix.add_argument(

0 commit comments

Comments
 (0)