Skip to content

Commit

Permalink
Release process fixes:
Browse files Browse the repository at this point in the history
* Ensure that the proper content is included in sdists.

* Tweak formatting of PyPI README.
  • Loading branch information
kpfleming committed Jul 22, 2023
1 parent 51a25ac commit ec7b400
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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"
Expand All @@ -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]]
Expand All @@ -161,10 +173,7 @@ start-after = "<!-- towncrier release notes start -->"
[[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]]
Expand Down

0 comments on commit ec7b400

Please sign in to comment.