use hatchling instead of flit

This commit is contained in:
2024-10-10 13:59:56 +03:00
parent 3af71a92cb
commit 0cfe9acebe
3 changed files with 30 additions and 16 deletions

View File

@ -1,6 +1,6 @@
[build-system]
requires = ["flit_core"]
build-backend = "flit_core.buildapi"
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "ahriman"
@ -89,17 +89,26 @@ web = [
"setuptools", # required by aiohttp-apispec
]
[tool.flit.sdist]
[tool.hatch.version]
path = "src/ahriman/__init__.py"
[tool.hatch.build.targets.sdist]
include = [
"AUTHORS",
"CONTRIBUTING.md",
"SECURITY.md",
"package",
"src",
"web.png",
]
exclude = [
"package/archlinux",
]
[tool.flit.external-data]
directory = "package"
[tool.hatch.build.targets.wheel]
packages = [
"src/ahriman",
]
[tool.hatch.build.targets.wheel.force-include]
"package" = "ahriman/data"