diff --git a/tox.ini b/tox.ini index 049206426..31118f5af 100644 --- a/tox.ini +++ b/tox.ini @@ -72,14 +72,14 @@ commands = [testenv:cpython-apidocs] -description = Build CPython API documentation +description = Build CPython 3.11 API documentation deps = pytest commands = sh -c "if [ ! -d {toxworkdir}/cpython ]; then \ - git clone --depth 1 https://github.com/python/cpython.git {toxworkdir}/cpython; \ + git clone https://github.com/python/cpython.git {toxworkdir}/cpython; \ fi" - sh -c "cd {toxworkdir}/cpython && git pull" + sh -c "cd {toxworkdir}/cpython && git checkout 3.11" touch {toxworkdir}/cpython/Lib/__init__.py rm -rf {toxworkdir}/cpython-output - pydoctor \ @@ -160,13 +160,13 @@ commands = assert code in [0,2], 'pydoctor exited with code %s, expected code 0 or 2.'%code" [testenv:cpython-summary] -description = Parse CPython code and write a summary only +description = Parse CPython 3.11 code and write a summary only commands = sh -c "if [ ! -d {toxworkdir}/cpython ]; then \ - git clone --depth 1 https://github.com/python/cpython.git {toxworkdir}/cpython; \ + git clone https://github.com/python/cpython.git {toxworkdir}/cpython; \ fi" - sh -c "cd {toxworkdir}/cpython && git pull" + sh -c "cd {toxworkdir}/cpython && git checkout 3.11" touch {toxworkdir}/cpython/Lib/__init__.py rm -rf {toxworkdir}/cpython-summary-output # TODO: Switch to restructuredtext when #261 is fixed.