Fix: Add build-system configuration to include resources in package

Co-authored-by: mingrammer <6178510+mingrammer@users.noreply.github.com>
pull/1187/head
copilot-swe-agent[bot] 5 months ago
parent a1be322df7
commit b8d481a738

2
.gitignore vendored

@ -29,3 +29,5 @@ website/package-lock.json
# Ignore .swp files
.swp
*.whl
dist/

Binary file not shown.

@ -1,3 +1,7 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "diagrams"
version = "0.25.0"
@ -26,8 +30,8 @@ dev = [
"black~=24.4",
]
[tool.hatch.build.targets.sdist]
include = ["resources/**/*"]
[tool.hatch.build]
only-include = ["diagrams", "resources"]
[tool.poetry.scripts]
diagrams="diagrams.cli:main"
@ -46,8 +50,5 @@ isort = "^6.0"
black = "^24.4"
pre-commit = "^4.3.0"
[tool.hatch.build.targets.wheel]
include = ["resources/**/*"]
[tool.black]
line-length=120

Loading…
Cancel
Save