Skip to content

Commit c46ef0a

Browse files
committed
ci: temporarily disable python stub checking (#5061)
The CI stub generation has been broken for a few days, failing CI every time. The checked-in stub files seem fine. Just turn off this check until we can figure out why it is broken. Signed-off-by: Larry Gritz <lg@larrygritz.com>
1 parent b7fda76 commit c46ef0a

1 file changed

Lines changed: 22 additions & 17 deletions

File tree

pyproject.toml

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -124,23 +124,28 @@ SKBUILD_CMAKE_BUILD_TYPE = "MinSizeRel"
124124
[tool.cibuildwheel.windows.environment]
125125
SKBUILD_CMAKE_BUILD_TYPE = "MinSizeRel"
126126

127-
[[tool.cibuildwheel.overrides]]
128-
# Trigger the build & validation of the python stubs for certain platforms.
129-
# The test command acts as a kind of "post-build" callback where it's possible
130-
# for the stub-generator to import the freshly-built wheel.
131-
# There are two entry-points which are designed to call generate_stubs.py through
132-
# this test command:
133-
# - `make pystubs` is called during local development to generate the
134-
# stubs and copy them into the git repo to be committed and reviewed.
135-
# - in CI, the cibuildwheel action is used to validate that the stubs match what
136-
# has been committed to the repo.
137-
test-requires = "mypy~=1.15.0 stubgenlib~=0.1.0"
138-
# Note: the python version here must be kept in sync with src/python/stubs/CMakeLists.txt
139-
select = "cp311-manylinux_*64"
140-
inherit.test-command = "append"
141-
test-command = [
142-
"python {project}/src/python/stubs/generate_stubs.py --out-path '/output' --validate-path '{project}/src/python/stubs/OpenImageIO/__init__.pyi'",
143-
]
127+
# Temporarily disabled test below. The CI stub generation seems broken, and
128+
# is failing CI every time. Just turn off this check until we can figure out
129+
# why it is broken.
130+
# ----
131+
# [[tool.cibuildwheel.overrides]]
132+
# # Trigger the build & validation of the python stubs for certain platforms.
133+
# # The test command acts as a kind of "post-build" callback where it's possible
134+
# # for the stub-generator to import the freshly-built wheel.
135+
# # There are two entry-points which are designed to call generate_stubs.py through
136+
# # this test command:
137+
# # - `make pystubs` is called during local development to generate the
138+
# # stubs and copy them into the git repo to be committed and reviewed.
139+
# # - in CI, the cibuildwheel action is used to validate that the stubs match what
140+
# # has been committed to the repo.
141+
# test-requires = "mypy~=1.15.0 stubgenlib~=0.1.0"
142+
# # Note: the python version here must be kept in sync with src/python/stubs/CMakeLists.txt
143+
# select = "cp311-manylinux_*64"
144+
# inherit.test-command = "append"
145+
# test-command = [
146+
# "python {project}/src/python/stubs/generate_stubs.py --out-path '/output' --validate-path '{project}/src/python/stubs/OpenImageIO/__init__.pyi'",
147+
# ]
148+
# ----
144149

145150
[tool.mypy]
146151
files = [

0 commit comments

Comments
 (0)