1
1
[build-system ]
2
- requires = [" hatchling" , " hatch-vcs" ]
2
+ requires = [" hatchling" , " hatch-vcs" , " hatch-fancy-pypi-readme " ]
3
3
build-backend = " hatchling.build"
4
4
5
5
[tool .hatch .version ]
@@ -8,7 +8,6 @@ source = "vcs"
8
8
[project ]
9
9
name = " jsonschema"
10
10
description = " An implementation of JSON Schema validation for Python"
11
- readme = " README.rst"
12
11
requires-python = " >=3.7"
13
12
license = {text = " MIT" }
14
13
keywords = [" validation" , " data validation" , " jsonschema" , " json" ]
@@ -30,7 +29,7 @@ classifiers = [
30
29
" Programming Language :: Python :: Implementation :: CPython" ,
31
30
" Programming Language :: Python :: Implementation :: PyPy" ,
32
31
]
33
- dynamic = [" version" ]
32
+ dynamic = [" version" , " readme " ]
34
33
35
34
dependencies = [
36
35
" attrs>=17.4.0" ,
@@ -77,6 +76,26 @@ Tidelift = "https://tidelift.com/subscription/pkg/pypi-jsonschema?utm_source=pyp
77
76
Changelog = " https://github.com/python-jsonschema/jsonschema/blob/main/CHANGELOG.rst"
78
77
Source = " https://github.com/python-jsonschema/jsonschema"
79
78
79
+ [tool .hatch .metadata .hooks .fancy-pypi-readme ]
80
+ content-type = " text/x-rst"
81
+
82
+ [[tool .hatch .metadata .hooks .fancy-pypi-readme .fragments ]]
83
+ path = " README.rst"
84
+
85
+ [[tool .hatch .metadata .hooks .fancy-pypi-readme .fragments ]]
86
+ text = """
87
+
88
+
89
+ ===================
90
+ Release Information
91
+ ===================
92
+
93
+ """
94
+
95
+ [[tool .hatch .metadata .hooks .fancy-pypi-readme .fragments ]]
96
+ path = " CHANGELOG.rst"
97
+ pattern = " (^v.+?)\n v"
98
+
80
99
[tool .isort ]
81
100
from_first = true
82
101
include_trailing_comma = true
0 commit comments