diff --git a/CHANGES.rst b/CHANGES.rst index 549faad6..ebe9a79f 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,6 +4,10 @@ Changes Unreleased ---------- + +3.7.0 (2024-05-29) +------------------ + - Dropped support for Django 3.2, which reached end-of-life on 2024-04-01 (gh-1344) - Removed the temporary requirement on ``asgiref>=3.6`` added in 3.5.0, now that the minimum required Django version is 4.2 (gh-1344) @@ -13,8 +17,6 @@ Unreleased - Added ``django>=4.2`` as an installation dependency, to mirror the minimum version tested in our CI (gh-1349) -.. Start of PyPI readme - 3.6.0 (2024-05-26) ------------------ diff --git a/pyproject.toml b/pyproject.toml index bd1ddec5..319078fc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -70,10 +70,14 @@ core-metadata-version = "2.2" [tool.hatch.metadata.hooks.fancy-pypi-readme] content-type = "text/x-rst" +# (Preview the generated readme by installing `hatch` and running +# `hatch project metadata readme` - see +# https://github.com/hynek/hatch-fancy-pypi-readme/blob/24.1.0/README.md#cli-interface) fragments = [ { path = "README.rst", start-after = ".. Start of PyPI readme\n\n" }, { text = "\n====\n\nChangelog\n=========\n\n" }, - { path = "CHANGES.rst", start-after = ".. Start of PyPI readme\n\n" }, + # Only include the first title after "Unreleased" - as well as the rest of the file + { path = "CHANGES.rst", pattern = "\nUnreleased\n-{4,}\n(?:.*?)\n([^\n]+\n-{4,}\n.*)" }, ] [tool.black]