Skip to content

Commit fdce9ca

Browse files
committed
Fixes issue #1070, Sphinx fails python 2.7
Fixes an issue where Sphinx fails with python < 3.5 because of an update to docutils to 0.18. Limited docutils for python 3.5. We also set some of the Sphinx limits from pywbem dev_requirements.txt.
1 parent 6b7c3f1 commit fdce9ca

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

dev-requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ PyYAML>=5.3.1; python_version > '3.4'
6464

6565
# Sphinx (no imports, invoked via sphinx-build script):
6666
Sphinx>=1.7.6
67+
# Issue #1070 docutils v=0.18/Sphinx < 1 incompatibility
68+
docutils<0.18; python_version <= '3.4'
6769
sphinx-git>=10.1.1
6870
GitPython>=2.1.1;
6971
sphinxcontrib-fulltoc>=1.2.0

docs/changes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ Released: not yet
6363
* Fixed install error of wrapt 1.13.0 on Python 2.7 on Windows due to lack of
6464
MS Visual C++ 9.0 on GitHub Actions, by pinning it to <1.13.
6565

66+
* Fixed issue with Sphinx and python 2.7. (see issue #1070)
67+
6668
**Enhancements:**
6769

6870
* Added a 'pywbemlistener' command for running and managing WBEM listeners.

rtd-requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@ ply>=3.10
66
PyYAML>=3.13
77
# M2Crypto>=0.30.1 # we cannot install M2Crypto because RTD does not have Swig
88
Sphinx>=1.7.6
9+
# Issue #1070 docutils v=0.18/Sphinx < 1 incompatibility
10+
docutils<0.18; python_version <= '3.4'
911
sphinx-git>=10.1.1
1012
sphinxcontrib-fulltoc>=1.2.0

0 commit comments

Comments
 (0)