Skip to content

Commit 913d1af

Browse files
Copilotgavinbarron
andauthored
fix: switch build backend to hatchling to exclude kiota-dom-export.txt from wheel
Agent-Logs-Url: https://github.com/microsoftgraph/msgraph-sdk-python/sessions/ec3dc4be-7a06-4464-b27f-5a407972ccdd Co-authored-by: gavinbarron <7122716+gavinbarron@users.noreply.github.com>
1 parent 5e4526d commit 913d1af

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

pyproject.toml

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

55
[project]
66
name = "msgraph-sdk"
@@ -41,8 +41,12 @@ homepage = "https://github.com/microsoftgraph/msgraph-sdk-python#readme"
4141
repository = "https://github.com/microsoftgraph/msgraph-sdk-python"
4242
documentation = "https://github.com/microsoftgraph/msgraph-sdk-python/docs"
4343

44-
[tool.flit.module]
45-
name = "msgraph"
44+
[tool.hatch.build.targets.wheel]
45+
packages = ["msgraph"]
46+
exclude = ["msgraph/generated/kiota-dom-export.txt"]
47+
48+
[tool.hatch.build.targets.sdist]
49+
exclude = ["msgraph/generated/kiota-dom-export.txt"]
4650

4751
[tool.mypy]
4852
warn_unused_configs = true

0 commit comments

Comments
 (0)