Skip to content

Commit bc43323

Browse files
committed
Testing platform build
Signed-off-by: Michael Dolan <[email protected]>
1 parent fd68a1f commit bc43323

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

.readthedocs.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ build:
1010
os: ubuntu-20.04
1111
tools:
1212
python: "3.11"
13-
jobs:
14-
build:
15-
html:
16-
- python -m sphinx -vv -T -b html -d docs/_build/doctrees -D language=en docs $READTHEDOCS_OUTPUT/html
1713

1814
sphinx:
1915
configuration: docs/conf.py

docs/conf.py

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
"expandvars",
6868
"prettymethods",
6969
]
70+
autodoc_inherit_docstrings = False
7071

7172
source_suffix = {
7273
".rst": "restructuredtext",
@@ -200,9 +201,17 @@
200201
# from PyPi. If that version is not yet available (pre-release), fallback to
201202
# installing the latest version.
202203

203-
# if RTD_BUILD:
204-
# pip_cmd = ["python", "-m", "pip", "install", "--no-cache-dir"]
205-
# try:
206-
# subprocess.run(pip_cmd + [f"opencolorio=={version}"], check=True)
207-
# except subprocess.CalledProcessError:
208-
# subprocess.run(pip_cmd + ["--upgrade", "opencolorio"], check=True)
204+
if RTD_BUILD:
205+
pip_cmd = ["python", "-m", "pip", "install", "--no-cache-dir"]
206+
try:
207+
subprocess.run(pip_cmd + [f"opencolorio=={version}"], check=True)
208+
except subprocess.CalledProcessError:
209+
subprocess.run(pip_cmd + ["--upgrade", "opencolorio"], check=True)
210+
211+
import PyOpenColorIO as ocio
212+
print("Processor")
213+
print(ocio.Processor.__doc__)
214+
print("Processor.createGroupTransform")
215+
print(ocio.Processor.createGroupTransform.__doc__)
216+
print("CPUProcessor.apply")
217+
print(ocio.CPUProcessor.apply.__doc__)

docs/requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@ sphinx-press-theme
1212
sphinx-tabs
1313
breathe
1414
setuptools<68.0.0
15-
opencolorio

0 commit comments

Comments
 (0)