File: entry_points.diff

package info (click to toggle)
sphinxcontrib-serializinghtml 1.1.5-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 648 kB
  • sloc: python: 199; sh: 7; makefile: 5
file content (22 lines) | stat: -rw-r--r-- 667 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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.
---
 setup.cfg | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/setup.cfg b/setup.cfg
index b06ed41..c14c225 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -29,3 +29,7 @@ exclude = .git,.tox,.venv
 ignore_missing_imports = True
 strict_optional = False
 
+[options.entry_points]
+sphinx.builders =
+    json = sphinxcontrib.serializinghtml
+    pickle = sphinxcontrib.serializinghtml