From 3756380888776450889fed5aa2122579c860300a Mon Sep 17 00:00:00 2001 From: Boming Zhang Date: Sat, 19 Oct 2024 18:23:14 -0400 Subject: [PATCH] chore: build config --- pyproject.toml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 0ae71ca..fd4cce6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,7 @@ +[build-system] +requires = ["pdm-backend"] +build-backend = "pdm.backend" + [project] name = "JOJ3-config-generator" version = "0.1.0" @@ -23,7 +27,7 @@ exclude_dirs = ["tests"] skips = ["B101"] [tool.pdm] -distribution = false +distribution = true [tool.pdm.dev-dependencies] lint = ["black>=24.10.0", "mypy>=1.12.0", "types-PyYAML>=6.0.12.20240917"] @@ -36,6 +40,10 @@ test = "pytest" all = { composite = ["lint", "test"] } app.call = "joj3_config_generator.main:app" +[tool.pdm.build] +includes = ["joj3_config_generator"] +excludes = ["tests"] + [tool.pytest.ini_options] testpaths = ["tests"]