Skip to content

Instantly share code, notes, and snippets.

@drazisil
Created August 13, 2024 11:37
Show Gist options
  • Save drazisil/d8ba3fa31bd48f3d5b094eea38bf25eb to your computer and use it in GitHub Desktop.
Save drazisil/d8ba3fa31bd48f3d5b094eea38bf25eb to your computer and use it in GitHub Desktop.
fix: enable pdm to build itself for tools like pytest can find it
pyproject.toml | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/pyproject.toml b/pyproject.toml
index c27dd99..67c08fc 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -16,8 +16,9 @@ readme = "README.md"
license = {text = "MIT"}
-[tool.pdm]
-distribution = false
+[build-system]
+requires = ["pdm-backend"]
+build-backend = "pdm.backend"
[tool.pdm.dev-dependencies]
dev = [
--
2.43.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment