File: entry_points.diff

package info (click to toggle)
sphinxcontrib-serializinghtml 2.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 584 kB
  • sloc: python: 157; makefile: 7; sh: 7
file content (25 lines) | stat: -rw-r--r-- 736 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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"