Skip to content

Commit

Permalink
Make PyPI readme fancy
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek committed Aug 24, 2022
1 parent 8dd8536 commit 7b723bd
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ What explicitly *may* change over time are the default hashing parameters and th

<!-- changelog follows -->


## [Unreleased](https://github.com/hynek/argon2-cffi/compare/21.3.0...HEAD)

### Removed
Expand Down
23 changes: 23 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,29 @@ content-type = "text/markdown"
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
path = "README.md"

[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
text = """
## Release Information for """

[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
path = "CHANGELOG.md"
start-after = "<!-- changelog follows -->"
pattern = "## ([^\n]+?\n\n)###"

[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
path = "CHANGELOG.md"
start-after = "<!-- changelog follows -->"
pattern = "\n(###.+?\n)## "

[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
text = "## Credits\n"

[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
path = "AUTHORS.md"
start-after = "# Credits & License\n"


[tool.pytest.ini_options]
addopts = ["-ra", "--strict-markers", "--strict-config"]
Expand Down

0 comments on commit 7b723bd

Please sign in to comment.