Skip to content

Commit feea02f

Browse files
committed
hatchling readme composer
1 parent 0485186 commit feea02f

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

pyproject.toml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,18 @@ dependencies = [
2929
]
3030
dynamic = ["readme"]
3131

32+
[tool.hatch.metadata.hooks.fancy-pypi-readme]
33+
content-type = "text/markdown"
34+
35+
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
36+
path = "README.md"
37+
38+
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
39+
path = "CHANGES.md"
40+
41+
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
42+
path = "LICENSE.md"
43+
3244
[project.optional-dependencies]
3345
docs = [
3446
"myst-parser",
@@ -61,15 +73,9 @@ applications = "mxmake.topics:applications"
6173
i18n = "mxmake.topics:i18n"
6274

6375
[build-system]
64-
requires = ["hatchling"]
76+
requires = ["hatchling", "hatch-fancy-pypi-readme"]
6577
build-backend = "hatchling.build"
6678

67-
[tool.distutils.bdist_wheel]
68-
universal = true
69-
70-
[tool.setuptools.dynamic]
71-
readme = {file = ["README.md", "CHANGES.md", "LICENSE.md"], content-type = "text/markdown"}
72-
7379
[tool.pytest.ini_options]
7480
minversion = "6.0"
7581
addopts = "-ra -q"

0 commit comments

Comments
 (0)