Skip to content

Commit 6a46979

Browse files
authored
🔧 Return metadata in setup (#12)
1 parent e4398b4 commit 6a46979

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎needs_config_writer/main.py‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from sphinx.config import Config
66
import tomli_w
77

8+
from needs_config_writer import __version__
89
from needs_config_writer.logging import get_logger, log_warning
910

1011
LOGGER = get_logger(__name__)
@@ -287,3 +288,9 @@ def setup(app: Sphinx):
287288

288289
# run this late
289290
app.connect("config-inited", write_ubproject_file, priority=999)
291+
292+
return {
293+
"version": __version__,
294+
"parallel_read_safe": True,
295+
"parallel_write_safe": True,
296+
}

0 commit comments

Comments
 (0)