Changeset View
Changeset View
Standalone View
Standalone View
tox.ini
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | extras = | ||||||||
logging | logging | ||||||||
db | db | ||||||||
testing-db | testing-db | ||||||||
http | http | ||||||||
deps = | deps = | ||||||||
mypy | mypy | ||||||||
commands = | commands = | ||||||||
mypy swh | mypy swh | ||||||||
[testenv:sphinx] | |||||||||
vlorentz: Could you also explain this is used on the CI because it does not have `../swh-docs/`? | |||||||||
Done Inline ActionsI mentioned this is to build the doc outside swh-environment which is equivalent. anlambert: I mentioned this is to build the doc outside swh-environment which is equivalent. | |||||||||
whitelist_externals = make | |||||||||
usedevelop = true | |||||||||
extras = | |||||||||
testing-core | |||||||||
logging | |||||||||
db | |||||||||
testing-db | |||||||||
http | |||||||||
deps = | |||||||||
# fetch and install swh-docs in develop mode | |||||||||
-e git+https://forge.softwareheritage.org/source/swh-docs#egg=swh.docs | |||||||||
setenv = | |||||||||
SWH_PACKAGE_DOC_TOX_BUILD = 1 | |||||||||
# turn warnings into errors | |||||||||
SPHINXOPTS = -W | |||||||||
commands = | |||||||||
Not Done Inline Actions
the leading slash in /../.tox/sphinx/... is weird; not sure the {envdir} substitution will work there? olasd: the leading slash in `/../.tox/sphinx/...` is weird; not sure the `{envdir}` substitution will… | |||||||||
make -I {envdir}/src/swh-docs/swh/ -C docs | |||||||||
Not Done Inline Actions
olasd: | |||||||||
Done Inline ActionsI already tried but for some reasons it does not work: (swh) ✘-1 /tmp/swh-core [tox-sphinx L|✚ 1⚑ 1] 16:54 $ tox -e sphinx sphinx develop-inst-noop: /tmp/swh-core sphinx installed: aiohttp==3.7.4.post0,aiohttp-utils==3.1.1,alabaster==0.7.12,appdirs==1.4.4,async-timeout==3.0.1,attrs==20.3.0,Babel==2.9.0,blinker==1.4,certifi==2020.12.5,cfgv==3.2.0,chardet==4.0.0,click==7.1.2,Deprecated==1.2.12,distlib==0.3.1,docutils==0.16,filelock==3.0.12,Flask==1.1.2,gunicorn==20.1.0,hypothesis==6.10.0,identify==2.2.4,idna==2.10,imagesize==1.2.0,importlib-metadata==4.0.1,iniconfig==1.1.1,iso8601==0.1.14,itsdangerous==1.1.0,Jinja2==2.11.3,markdown-it-py==0.6.2,MarkupSafe==1.1.1,mdit-py-plugins==0.2.6,mirakuru==2.3.0,msgpack==1.0.2,multidict==5.1.0,myst-parser==0.13.6,nodeenv==1.6.0,packaging==20.9,pluggy==0.13.1,port-for==0.4,pre-commit==2.12.1,psutil==5.8.0,psycopg2==2.8.6,py==1.10.0,Pygments==2.8.1,pyparsing==2.4.7,pytest==6.2.3,pytest-mock==3.5.1,pytest-postgresql==2.6.1,python-mimeparse==1.6.0,pytz==2021.1,PyYAML==5.4.1,requests==2.25.1,requests-mock==1.8.0,sentry-sdk==1.0.0,six==1.15.0,snowballstemmer==2.1.0,sortedcontainers==2.3.0,Sphinx==3.5.4,sphinx-celery==2.0.0,sphinx-click==2.7.1,sphinx-reredirects==0.0.0,sphinx-rtd-theme==0.5.2,sphinx-tabs==2.1.0,sphinxcontrib-applehelp==1.0.2,sphinxcontrib-devhelp==1.0.2,sphinxcontrib-htmlhelp==1.0.3,sphinxcontrib-httpdomain==1.7.0,sphinxcontrib-images==0.9.2,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-programoutput==0.17,sphinxcontrib-qthelp==1.0.3,sphinxcontrib-serializinghtml==1.1.4,-e git+https://forge.softwareheritage.org/source/swh-core.git@3ad3315a657bb79109daf4610a92d32c18e61b9c#egg=swh.core,-e git+file:///home/anlambert/swh/swh-environment/swh-docs@ea3ceb6b60fc113a40bd0501c9d1b31a518338e1#egg=swh.docs,systemd-python==234,toml==0.10.2,typing-extensions==3.7.4.3,urllib3==1.26.4,virtualenv==20.4.4,Werkzeug==1.0.1,wrapt==1.12.1,yarl==1.6.3,zipp==3.4.1 sphinx run-test-pre: PYTHONHASHSEED='2758786654' sphinx run-test: commands[0] | make -I /tmp/swh-core/.tox/sphinx/src/swh-docs/swh/ -C docs make: Entering directory '/tmp/swh-core/docs' Makefile:1: ../../swh-docs/Makefile.sphinx: No such file or directory make: *** No rule to make target '../../swh-docs/Makefile.sphinx'. Stop. make: Leaving directory '/tmp/swh-core/docs' ERROR: InvocationError for command /usr/bin/make -I .tox/sphinx/src/swh-docs/swh -C docs (exited with code 2) ____________________________________________________________________________________________________ summary _____________________________________________________________________________________________________ ERROR: sphinx: commands failed anlambert: I already tried but for some reasons it does not work:
```
(swh) ✘-1 /tmp/swh-core [tox-sphinx… |
Could you also explain this is used on the CI because it does not have ../swh-docs/?