Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/readthedocs/sphinx_rtd_theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Bach <benjamin@overtag.dk>2022-11-04 17:52:12 +0300
committerBenjamin Bach <benjamin@overtag.dk>2022-11-04 17:52:12 +0300
commit3e6488ef0a80f86264bc53224c2190104349ac7d (patch)
tree5504f72d412178e2b3ab95a584364c86d3202303
parenta66c2e87c56896a1bca8f8807953931ec6d90727 (diff)
Add comment about the terrible tox workaround
-rw-r--r--tox.ini4
1 files changed, 4 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 7653396..a6a5f17 100644
--- a/tox.ini
+++ b/tox.ini
@@ -52,6 +52,10 @@ deps =
sphinxdev: https://github.com/sphinx-doc/sphinx/archive/refs/heads/master.zip
commands =
pytest {posargs} tests/
+ # This is a short-term hack to allow us to have a Python 3-specific syntax
+ # and swap it out for a Python 2.7 version while we're building.
+ # This terrible solution is only acceptable because we will remove it again very soon
+ # See: https://github.com/readthedocs/sphinx_rtd_theme/pull/1369
py27: cp docs/demo/test_py_module/test.py docs/demo/test_py_module/test_py3.py
py27: cp docs/demo/test_py_module/test_py27.py docs/demo/test_py_module/test.py
!html4: sphinx-build -b html -Dhtml4_writer=0 -d {envtmpdir}/doctrees docs/ {envtmpdir}/html