Skip to content

Commit f3d6d76

Browse files
0.5: mark as safe for parallel reading
1 parent 262df29 commit f3d6d76

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

.readthedocs.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,13 @@ sphinx:
1616
# Optionally build your docs in additional formats such as PDF and ePub
1717
formats: all
1818

19-
# Optionally set the version of Python and requirements required to build your docs
19+
20+
build:
21+
os: ubuntu-20.04
22+
tools:
23+
python: "3.9"
24+
2025
python:
21-
version: 3.9
2226
install:
2327
- requirements: requirements.txt
2428
- method: setuptools

readme.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ This code will be executed
3636
```
3737

3838
# Changelog
39+
#### 0.5 (10.03.2022)
40+
- Marked as safe for parallel reading
41+
3942
#### 0.4 (09.03.2022)
4043
- Added option to run code from example files
4144

src/sphinx_exec_code/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.4'
1+
__version__ = '0.5'

src/sphinx_exec_code/sphinx_api.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,11 @@ def setup(app):
8181
app.add_directive('exec_code', ExecCode)
8282

8383
log.debug(f'[exec-code] Version: {__version__}')
84-
return {'version': __version__}
84+
85+
return {
86+
'version': __version__,
87+
88+
# https://github.com/spacemanspiff2007/sphinx-exec-code/issues/2
89+
# This extension does not store any states so it should be safe for parallel reading
90+
'parallel_read_safe': True
91+
}

0 commit comments

Comments
 (0)