From ec7b400d514cfacf47a9a41969cd52f95a69a002 Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Sat, 22 Jul 2023 11:40:35 -0400 Subject: [PATCH] Release process fixes: * Ensure that the proper content is included in sdists. * Tweak formatting of PyPI README. --- pyproject.toml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 9809a60..bf98275 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -64,10 +64,21 @@ source = "vcs" [tool.hatch.build.hooks.vcs] version-file = "src/jinjanator/version.py" +[tool.hatch.build] +artifacts = [ + "src/jinjanator/version.py", +] +exclude = [ + "*~", + ".github", +] + [tool.hatch.build.targets.sdist] include = [ "src", "tests", + "plugin_example", + "*.md", ] [tool.hatch.build.targets.wheel] @@ -139,7 +150,10 @@ ci = [ content-type = "text/markdown" [[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] -text = "# *jinjanator*: CLI tool for rendering Jinja2 templates\n" +text = """ +# *jinjanator*: CLI tool for rendering Jinja2 templates + +""" [[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] path = "README.md" @@ -148,9 +162,7 @@ end-before = "## Credits" [[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] text = """ - ## Release Information - """ [[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] @@ -161,10 +173,7 @@ start-after = "" [[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] text = """ --- - [→ Full Changelog](https://github.com/kpfleming/jinjanator/blob/main/CHANGELOG.md) - - """ [[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]