Skip to content

Commit 5953432

Browse files
committed
Specify flit build-system within pyproject.toml
With the team using flit to build and package garak it can be defined in the pyproject.toml rather than with setuptools.
1 parent ed53c00 commit 5953432

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pyproject.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
2-
requires = ["setuptools>=61.0.0", "wheel"]
3-
build-backend = "setuptools.build_meta"
2+
requires = ["flit_core >=3.11,<4"]
3+
build-backend = "flit_core.buildapi"
44

55
[project]
66
name = "garak"
@@ -139,11 +139,11 @@ audio = [
139139
[project.scripts]
140140
garak = "garak.__main__:main"
141141

142-
[tool.setuptools]
143-
packages = ["garak"]
142+
[tool.flit.module]
143+
name = "garak"
144144

145-
[tool.setuptools.package-data]
146-
"garak.resources" = ["*"]
145+
[tool.flit.sdist]
146+
include = ["./garak/resources/*.json", "./garak/resources/*.yaml"]
147147

148148
[tool.black]
149149
line-length = 88

0 commit comments

Comments
 (0)