You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,11 @@ Now *you* too can have fancy PyPI readmes – just by adding a few lines of conf
57
57
58
58
## Configuration
59
59
60
-
*hatch-fancy-pypi-readme* is, like [Hatch], configured in your project’s `pyproject.toml`.
60
+
*hatch-fancy-pypi-readme* is, like [Hatch], configured in your project’s `pyproject.toml`[^hatch-toml].
61
+
62
+
[^hatch-toml]: As with Hatch, you can also use `hatch.toml` for configuration options that start with `tool.hatch` and leave that prefix out.
63
+
That means `pyprojects.toml`’s `[tool.hatch.metadata.hooks.fancy-pypi-readme]` becomes `[metadata.hooks.fancy-pypi-readme]` when in `hatch.toml`.
64
+
To keep the documentation simple, the more common `pyproject.toml` syntax is used throughout.
61
65
62
66
First you add *hatch-fancy-pypi-readme* to your `[build-system]`:
63
67
@@ -254,14 +258,11 @@ with our [example configuration][example-config], you will get the following out
254
258

255
259
256
260
> **Warning**
261
+
> While the execution model is somewhat different from the [Hatch]-Python packaging pipeline, it uses the same configuration validator and text renderer, so the fidelity should be high.
257
262
>
258
-
> - The **CLI** currently doesn’t support `hatch.toml`.
259
-
> The **plugin** itself does.
260
-
> - While the execution model is somewhat different from the [Hatch]-Python packaging pipeline, it uses the same configuration validator and text renderer, so the fidelity should be high.
261
-
>
262
-
> It will **not** help you debug **packaging issues**, though.
263
+
> It will **not** help you debug **packaging issues**, though.
263
264
>
264
-
> To verify your PyPI readme using the full packaging pipeline, check out my [*build-and-inspect-python-package*](https://github.com/hynek/build-and-inspect-python-package) GitHub Action.
265
+
> To verify your PyPI readme using the full packaging pipeline, check out my [*build-and-inspect-python-package*](https://github.com/hynek/build-and-inspect-python-package) GitHub Action.
0 commit comments