Skip to content

Commit

Permalink
Merge pull request #98 from sanders41/setuptools
Browse files Browse the repository at this point in the history
Improve setuptools pyproject.toml
  • Loading branch information
sanders41 authored Oct 5, 2023
2 parents 6a12455 + e1cffc0 commit 4151a17
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions src/project_generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
};
Expand Down Expand Up @@ -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?$'
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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?$'
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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?$'
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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?$'
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 4151a17

Please sign in to comment.