From: Dmitry Shachnev <mitya57@debian.org>
Date: Sat, 28 Mar 2020 20:08:26 +0300
Subject: Expose the builders using entry points

In Sphinx, we disable the sphinxcontrib.serializinghtml extension to avoid
a circular dependency, so the builders do not get automatically registered.
---
 pyproject.toml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/pyproject.toml b/pyproject.toml
index 7f88862..2f45e65 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -60,6 +60,10 @@ standalone = [
 name = "Georg Brandl"
 email = "georg@python.org"
 
+[project.entry-points."sphinx.builders"]
+json = "sphinxcontrib.serializinghtml"
+pickle = "sphinxcontrib.serializinghtml"
+
 [tool.flit.module]
 name = "sphinxcontrib.serializinghtml"
 
