Revert "use hatchling instead of flit"

This reverts commit d18d146d79.
This commit is contained in:
2024-10-13 23:04:00 +03:00
parent d18d146d79
commit 20a9134477
3 changed files with 16 additions and 30 deletions

View File

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