From a9b5bb2a7cd02bee23b0d2ea33cdf395854de4df Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Wed, 17 Aug 2022 14:43:54 +0200 Subject: =?UTF-8?q?jsonschema=20deserves=20a=20=E2=9C=A8fancy=E2=9C=A8=20r?= =?UTF-8?q?eadme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject.toml | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) (limited to 'pyproject.toml') diff --git a/pyproject.toml b/pyproject.toml index 5041a10..7772d77 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["hatchling", "hatch-vcs"] +requires = ["hatchling", "hatch-vcs", "hatch-fancy-pypi-readme"] build-backend = "hatchling.build" [tool.hatch.version] @@ -8,7 +8,6 @@ source = "vcs" [project] name = "jsonschema" description = "An implementation of JSON Schema validation for Python" -readme = "README.rst" requires-python = ">=3.7" license = {text = "MIT"} keywords = ["validation", "data validation", "jsonschema", "json"] @@ -30,7 +29,7 @@ classifiers = [ "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", ] -dynamic = ["version"] +dynamic = ["version", "readme"] dependencies = [ "attrs>=17.4.0", @@ -77,6 +76,26 @@ Tidelift = "https://tidelift.com/subscription/pkg/pypi-jsonschema?utm_source=pyp Changelog = "https://github.com/python-jsonschema/jsonschema/blob/main/CHANGELOG.rst" Source = "https://github.com/python-jsonschema/jsonschema" +[tool.hatch.metadata.hooks.fancy-pypi-readme] +content-type = "text/x-rst" + +[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] +path = "README.rst" + +[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] +text = """ + + +=================== +Release Information +=================== + +""" + +[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] +path = "CHANGELOG.rst" +pattern = "(^v.+?)\nv" + [tool.isort] from_first = true include_trailing_comma = true -- cgit v1.2.1