From e1cffc09b677b488483988aa6fcc7e8c3ac9f7ef Mon Sep 17 00:00:00 2001 From: Paul Sanders Date: Wed, 4 Oct 2023 22:34:38 -0400 Subject: [PATCH] Improve setuptools pyproject.toml --- src/project_generator.rs | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/src/project_generator.rs b/src/project_generator.rs index 6daf1e3..11ff8d8 100644 --- a/src/project_generator.rs +++ b/src/project_generator.rs @@ -439,6 +439,12 @@ dynamic = ["version", "readme"] version = {attr = "{{ source_dir }}.__version__"} readme = {file = ["README.md"]} +[tool.setuptools.packages.find] +include = ["{{ source_dir }}*"] + +[tool.setuptools.package-data] +{{ source_dir }} = ["py.typed"] + "# .to_string(), }; @@ -1793,6 +1799,12 @@ dynamic = ["version", "readme"] version = {{attr = "{}.__version__"}} readme = {{file = ["README.md"]}} +[tool.setuptools.packages.find] +include = ["{}*"] + +[tool.setuptools.package-data] +{} = ["py.typed"] + [tool.black] line-length = {} include = '\.pyi?$' @@ -1842,6 +1854,8 @@ fix = true project_info.creator_email, project_info.min_python_version, project_info.source_dir, + project_info.source_dir, + project_info.source_dir, project_info.max_line_length, project_info.source_dir, project_info.max_line_length, @@ -1886,6 +1900,12 @@ dynamic = ["version", "readme"] version = {{attr = "{}.__version__"}} readme = {{file = ["README.md"]}} +[tool.setuptools.packages.find] +include = ["{}*"] + +[tool.setuptools.package-data] +{} = ["py.typed"] + [tool.black] line-length = {} include = '\.pyi?$' @@ -1935,6 +1955,8 @@ fix = true project_info.creator_email, project_info.min_python_version, project_info.source_dir, + project_info.source_dir, + project_info.source_dir, project_info.max_line_length, project_info.source_dir, project_info.max_line_length, @@ -1978,6 +2000,12 @@ dynamic = ["version", "readme"] version = {{attr = "{}.__version__"}} readme = {{file = ["README.md"]}} +[tool.setuptools.packages.find] +include = ["{}*"] + +[tool.setuptools.package-data] +{} = ["py.typed"] + [tool.black] line-length = {} include = '\.pyi?$' @@ -2027,6 +2055,8 @@ fix = true project_info.creator_email, project_info.min_python_version, project_info.source_dir, + project_info.source_dir, + project_info.source_dir, project_info.max_line_length, project_info.source_dir, project_info.max_line_length, @@ -2071,6 +2101,12 @@ dynamic = ["version", "readme"] version = {{attr = "{}.__version__"}} readme = {{file = ["README.md"]}} +[tool.setuptools.packages.find] +include = ["{}*"] + +[tool.setuptools.package-data] +{} = ["py.typed"] + [tool.black] line-length = {} include = '\.pyi?$' @@ -2120,6 +2156,8 @@ fix = true project_info.creator_email, project_info.min_python_version, project_info.source_dir, + project_info.source_dir, + project_info.source_dir, project_info.max_line_length, project_info.source_dir, project_info.max_line_length,