Skip to content

Commit b33fc55

Browse files
committed
add hatch-fancy-pypi-readme
1 parent dd5987b commit b33fc55

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

pyproject.toml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
[build-system]
2-
requires = ["hatchling"]
2+
requires = ["hatchling", "hatch-fancy-pypi-readme"]
33
build-backend = "hatchling.build"
44

55
[project]
66
name = "node"
77
version = "2.0.0.dev0"
88
description = "Building data structures as node trees"
9-
readme = "README.rst"
9+
dynamic = ["readme"]
10+
requires-python = ">=3.10"
1011
license = {text = "Simplified BSD"}
1112
authors = [{name = "Node Contributors", email = "dev@conestack.org"}]
1213
keywords = ["node", "tree", "fullmapping", "dict"]
@@ -40,6 +41,24 @@ test = [
4041
[project.urls]
4142
Homepage = "http://github.com/conestack/node"
4243

44+
[tool.hatch.version]
45+
source = "vcs"
46+
47+
[tool.hatch.metadata]
48+
allow-direct-references = true
49+
50+
[tool.hatch.metadata.hooks.fancy-pypi-readme]
51+
content-type = "text/x-rst"
52+
53+
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
54+
path = "README.rst"
55+
56+
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
57+
path = "CHANGES.rst"
58+
59+
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
60+
path = "LICENSE.rst"
61+
4362
[tool.hatch.build.targets.wheel]
4463
packages = ["src/node"]
4564

0 commit comments

Comments
 (0)