Add support for Python 3.14
python3.14 -m pip install gcp-sphinx-docfx-yaml fails with the following stack trace. This bug tracks adding support for Python 3.14
root@3252f8d9d420:/# python3.14 -m pip install gcp-sphinx-docfx-yaml
Collecting gcp-sphinx-docfx-yaml
Downloading gcp_sphinx_docfx_yaml-3.2.4-py3-none-any.whl.metadata (957 bytes)
Collecting black (from gcp-sphinx-docfx-yaml)
Downloading black-26.1.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (88 kB)
Collecting gcp-docuploader (from gcp-sphinx-docfx-yaml)
Downloading gcp_docuploader-0.7.2-py3-none-any.whl.metadata (728 bytes)
Collecting PyYAML (from gcp-sphinx-docfx-yaml)
Downloading pyyaml-6.0.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (2.4 kB)
Collecting recommonmark (from gcp-sphinx-docfx-yaml)
Downloading recommonmark-0.7.1-py2.py3-none-any.whl.metadata (463 bytes)
Collecting sphinxcontrib-applehelp==1.0.4 (from gcp-sphinx-docfx-yaml)
Downloading sphinxcontrib_applehelp-1.0.4-py3-none-any.whl.metadata (2.7 kB)
Collecting sphinxcontrib-devhelp==1.0.2 (from gcp-sphinx-docfx-yaml)
Downloading sphinxcontrib_devhelp-1.0.2-py2.py3-none-any.whl.metadata (1.4 kB)
Collecting sphinxcontrib-htmlhelp==2.0.1 (from gcp-sphinx-docfx-yaml)
Downloading sphinxcontrib_htmlhelp-2.0.1-py3-none-any.whl.metadata (2.8 kB)
Collecting sphinxcontrib-qthelp==1.0.3 (from gcp-sphinx-docfx-yaml)
Downloading sphinxcontrib_qthelp-1.0.3-py2.py3-none-any.whl.metadata (1.4 kB)
Collecting sphinxcontrib-serializinghtml==1.1.5 (from gcp-sphinx-docfx-yaml)
Downloading sphinxcontrib_serializinghtml-1.1.5-py2.py3-none-any.whl.metadata (1.5 kB)
Collecting sphinx==4.5.0 (from gcp-sphinx-docfx-yaml)
Downloading Sphinx-4.5.0-py3-none-any.whl.metadata (7.9 kB)
Collecting sphinx-markdown-builder==0.5.5 (from gcp-sphinx-docfx-yaml)
Downloading sphinx_markdown_builder-0.5.5-py2.py3-none-any.whl.metadata (4.2 kB)
Collecting sphinxcontrib.napoleon (from gcp-sphinx-docfx-yaml)
Downloading sphinxcontrib_napoleon-0.7-py2.py3-none-any.whl.metadata (6.2 kB)
Collecting unidecode (from gcp-sphinx-docfx-yaml)
Downloading Unidecode-1.4.0-py3-none-any.whl.metadata (13 kB)
Collecting wheel>=0.24.0 (from gcp-sphinx-docfx-yaml)
Using cached wheel-0.46.3-py3-none-any.whl.metadata (2.4 kB)
Collecting sphinxcontrib-jsmath (from sphinx==4.5.0->gcp-sphinx-docfx-yaml)
Downloading sphinxcontrib_jsmath-1.0.1-py2.py3-none-any.whl.metadata (1.4 kB)
Collecting Jinja2>=2.3 (from sphinx==4.5.0->gcp-sphinx-docfx-yaml)
Downloading jinja2-3.1.6-py3-none-any.whl.metadata (2.9 kB)
Collecting Pygments>=2.0 (from sphinx==4.5.0->gcp-sphinx-docfx-yaml)
Downloading pygments-2.19.2-py3-none-any.whl.metadata (2.5 kB)
Collecting docutils<0.18,>=0.14 (from sphinx==4.5.0->gcp-sphinx-docfx-yaml)
Downloading docutils-0.17.1-py2.py3-none-any.whl.metadata (2.9 kB)
Collecting snowballstemmer>=1.1 (from sphinx==4.5.0->gcp-sphinx-docfx-yaml)
Downloading snowballstemmer-3.0.1-py3-none-any.whl.metadata (7.9 kB)
Collecting babel>=1.3 (from sphinx==4.5.0->gcp-sphinx-docfx-yaml)
Downloading babel-2.18.0-py3-none-any.whl.metadata (2.2 kB)
Collecting alabaster<0.8,>=0.7 (from sphinx==4.5.0->gcp-sphinx-docfx-yaml)
Downloading alabaster-0.7.16-py3-none-any.whl.metadata (2.9 kB)
Collecting imagesize (from sphinx==4.5.0->gcp-sphinx-docfx-yaml)
Downloading imagesize-1.4.1-py2.py3-none-any.whl.metadata (1.5 kB)
Collecting requests>=2.5.0 (from sphinx==4.5.0->gcp-sphinx-docfx-yaml)
Downloading requests-2.32.5-py3-none-any.whl.metadata (4.9 kB)
Collecting packaging (from sphinx==4.5.0->gcp-sphinx-docfx-yaml)
Using cached packaging-26.0-py3-none-any.whl.metadata (3.3 kB)
Collecting html2text (from sphinx-markdown-builder==0.5.5->gcp-sphinx-docfx-yaml)
Downloading html2text-2025.4.15-py3-none-any.whl.metadata (4.1 kB)
Collecting pydash (from sphinx-markdown-builder==0.5.5->gcp-sphinx-docfx-yaml)
Downloading pydash-8.0.6-py3-none-any.whl.metadata (3.4 kB)
Collecting unify (from sphinx-markdown-builder==0.5.5->gcp-sphinx-docfx-yaml)
Downloading unify-0.5.tar.gz (4.4 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [24 lines of output]
Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
main()
~~~~^^
File "/usr/local/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel
return hook(config_settings)
File "/tmp/pip-build-env-h44911tp/overlay/lib/python3.14/site-packages/setuptools/build_meta.py", line 333, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-h44911tp/overlay/lib/python3.14/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires
self.run_setup()
~~~~~~~~~~~~~~^^
File "/tmp/pip-build-env-h44911tp/overlay/lib/python3.14/site-packages/setuptools/build_meta.py", line 520, in run_setup
super().run_setup(setup_script=setup_script)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-h44911tp/overlay/lib/python3.14/site-packages/setuptools/build_meta.py", line 317, in run_setup
exec(code, locals())
~~~~^^^^^^^^^^^^^^^^
File "<string>", line 22, in <module>
File "<string>", line 16, in version
AttributeError: 'Constant' object has no attribute 's'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed to build 'unify' when getting requirements to build wheel
root@3252f8d9d420:/#
We'll need to upgrade sphinx-markdown-builder from 0.5.5 to the latest version, which removes the dependency on unify.
We may also need to upgrade sphinx.
This issue was moved from the following repo as part of the monorepo migration: googleapis/sphinx-docfx-yaml
It looks like the solution should be to upgrade the sphinx-markdown-builder dependency to the latest version as mentioned above. However, upgrading that dependency has caused problems in the past. See googleapis/sphinx-docfx-yaml#306. I'll chat with @dandhlee.
@ricalo: Were you able to talk to @dandhlee about this? I believe this is blocking the monorepo consolidation of sphinx-docfx-yaml
We just synced earlier today. There might be some speed bumps getting this done. We are investigating.
Bumping to P2 since this is no longer blocking the monorepo consolidation. cc @ohmayr
See https://github.com/googleapis/google-cloud-python/issues/16176. We should also be running tests on all Python runtimes.
https://github.com/googleapis/google-cloud-python/blob/3390cf4c07c0fc8e1116d60e50d6a6fa8d75d279/packages/gcp-sphinx-docfx-yaml/noxfile.py#L138-L141
Closing as obsolete.