Hatch Fancy PyPI README is a Hatch plugin that enables dynamic and enhanced README generation for your Python packages. It allows you to combine multiple files, use Jinja templating, and perform other transformations to create a rich PyPI README. The current version is 25.1.0, and it is actively maintained as part of the Hatch project, with frequent updates.
pip install hatch-fancy-pypi-readme hatchNo compatibility data collected yet for this library.
This quickstart demonstrates how to use `hatch-fancy-pypi-readme` to combine `README.md` and `CHANGELOG.md` into a single, templated PyPI README. First, ensure `hatch` is installed. Then, create the specified `pyproject.toml`, `README.md`, and `CHANGELOG.md` files within your project directory. Finally, run `hatch build` to generate your package distributions with the fancy README.
Migrate your `pyproject.toml` to use the `project.readme` table with `checker = "fancy"` and subsequent configuration under `[tool.hatch.build.targets.sdist.hooks.fancy-pypi-readme]`, as shown in the quickstart example.
Carefully review the official documentation and examples for correct `pyproject.toml` structure. Pay close attention to the `checker = "fancy"` setting and the nested `tool.hatch` sections.
Thoroughly test your Jinja templates with sample data. Ensure all files referenced in `files` or within the template actually exist at build time. Use simpler templates initially and progressively add complexity.
Ensure `hatch-fancy-pypi-readme` is installed in the same environment where the `hatch` CLI command resides. Verify your `pyproject.toml` has a `[tool.hatch.metadata.hooks.fancy-pypi-readme]` section and that the main `[project]` table does *not* contain a `readme` key that conflicts with the plugin's configuration.
Review the paths specified for your fragments in `pyproject.toml`. Ensure they are correct relative to your project root. In CI/CD, confirm that the action or workflow is running from the expected working directory, or adjust paths to be absolute if necessary.
Install `hatch-fancy-pypi-readme` using pip in the same virtual environment where Hatch is installed: `pip install hatch-fancy-pypi-readme`.
Set the `content-type` in your `pyproject.toml` to either `'text/markdown'` or `'text/x-rst'`, as these are the only formats currently supported by PyPI. For example: `content-type = "text/markdown"`.
No dependency data recorded yet.