From 22ab72eff57682d64b7fc82a2aa8423dd2679e6b Mon Sep 17 00:00:00 2001 From: Steffen Heimes Date: Tue, 26 Mar 2024 13:01:41 +0100 Subject: [PATCH] WIP: Try to init scaffolding according to a github commit This one: https://github.com/python-poetry/poetry/issues/2740#issuecomment-1668981210 --- build.py | 2 ++ pyproject.toml | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 build.py diff --git a/build.py b/build.py new file mode 100644 index 0000000..db70597 --- /dev/null +++ b/build.py @@ -0,0 +1,2 @@ +def build(setup_kwargs): + print("Put your build code here!") diff --git a/pyproject.toml b/pyproject.toml index fbebcfe..fe59313 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,9 @@ readme = "README.md" [tool.poetry.dependencies] python = "^3.9" +[tool.poetry.build] +script = "build.py" +generate-setup-file = true [build-system] -requires = ["poetry-core"] -build-backend = "poetry.core.masonry.api" +requires = ["poetry-core", "setuptools"]