DiamondLightSource / python-copier-template

Diamond's opinionated copier template for pure Python projects managed by pip
Apache License 2.0
4 stars 2 forks source link

tox -p tries to build docs when you have selected readme only #57

Closed gilesknap closed 7 months ago

gilesknap commented 7 months ago

pmac[domain-services-template]$ pip install -e . Obtaining file:///workspaces/domain-services-template Installing build dependencies ... done Checking if build backend supports build_editable ... done Getting requirements to build editable ... done Preparing editable metadata (pyproject.toml) ... done Building wheels for collected packages: domain-services-template Building editable for domain-services-template (pyproject.toml) ... done Created wheel for domain-services-template: filename=domain_services_template-0.1.dev2+g91c8fb4-0.editable-py3-none-any.whl size=11024 sha256=24a9d0b2e2c42ad388b8219ad9723806b05e9f0c12bad4553cd5ac4bbfa251e4 Stored in directory: /tmp/pip-ephem-wheel-cache-dgwy7j4h/wheels/3b/d4/1c/d5f2ecd6f844f9317a3e7f3b64c5e0a85866118052556f179e Successfully built domain-services-template Installing collected packages: domain-services-template Successfully installed domain-services-template-0.1.dev2+g91c8fb4 pmac[domain-services-template]$ tox -p ⠋ [4] pre-commit | mypy | pytest | docsERROR: invocation failed (exit code 1), logfile: /workspaces/domain-services-template/.tox/docs/log/docs-0.log ====================================================================================== log start ====================================================================================== docs create: /workspaces/domain-services-template/.tox/docs docs installed: accessible-pygments==0.0.4,alabaster==0.7.16,annotated-types==0.6.0,apischema==0.18.1,appdirs==1.4.4,attrs==23.2.0,Babel==2.14.0,beautifulsoup4==4.12.3,black==24.1.1,cachetools==5.3.2,certifi==2023.11.17,cfgv==3.4.0,charset-normalizer==3.3.2,click==8.1.7,colorama==0.4.6,copier==9.1.1,coverage==7.4.1,decorator==5.1.1,distlib==0.3.8,docutils==0.19,-e git+ssh://git@github.com/epics-containers/domain-services-template.git@91c8fb4954310974b0cef612181d4d2c189067a1#egg=domain_services_template,dunamai==1.19.0,-e git+ssh://git@github.com/epics-containers/epics-containers.github.io.git@1a3e19aedd5daedf7cfd87bda9e20ab1691762d0#egg=epics_containers,exceptiongroup==1.2.0,exif==1.6.0,filelock==3.13.1,flake8==7.0.0,flake8-isort==6.1.1,Flake8-pyproject==1.2.3,funcy==2.0,gitdb==4.0.11,GitPython==3.1.40,google-auth==2.27.0,google-auth-oauthlib==1.2.0,gphotos-sync==3.2.1,-e git+ssh://git@github.com/epics-containers/ibek.git@44d4a622d494e348fdefee073ec14d771630f7d3#egg=ibek,identify==2.5.33,idna==3.6,imagesize==1.4.1,iniconfig==2.0.0,isort==5.13.2,Jinja2==3.1.3,jinja2-ansible-filters==1.3.2,livereload==2.6.3,lxml==4.9.3,MarkupSafe==2.1.3,mccabe==0.7.0,mypy==1.8.0,mypy-extensions==1.0.0,nodeenv==1.8.0,oauthlib==3.2.2,packaging==23.2,pathlib2==2.3.7.post1,pathspec==0.12.1,pipdeptree==2.13.2,platformdirs==4.1.0,pluggy==1.4.0,plum-py==0.8.7,plumbum==1.8.2,pre-commit==3.6.0,prompt-toolkit==3.0.36,psutil==5.9.8,-e git+ssh://git@github.com/epics-containers/pvi.git@e2530b0c29e41295544a05426e80f616c38bf533#egg=pvi,py==1.11.0,pyasn1==0.5.1,pyasn1-modules==0.3.0,pycodestyle==2.11.1,pydantic==2.5.3,pydantic_core==2.14.6,pydata-sphinx-theme==0.15.2,pyflakes==3.2.0,Pygments==2.17.2,pytest==8.0.0,pytest-cov==4.1.0,pytest-mock==3.12.0,PyYAML==6.0.1,pyyaml-include==1.3.2,questionary==2.0.1,requests==2.31.0,requests-oauthlib==1.3.1,rsa==4.9,ruamel.yaml==0.18.5,ruamel.yaml.clib==0.2.8,ruff==0.2.0,six==1.16.0,smmap==5.0.1,snowballstemmer==2.2.0,soupsieve==2.5,Sphinx==6.2.1,sphinx-autobuild==2021.3.14,sphinx-copybutton==0.5.2,sphinx_design==0.5.0,sphinxcontrib-applehelp==1.0.8,sphinxcontrib-devhelp==1.0.6,sphinxcontrib-htmlhelp==2.0.5,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-qthelp==1.0.7,sphinxcontrib-serializinghtml==1.1.10,tomli==2.0.1,tornado==6.4,tox==3.28.0,tox-direct==0.4,typer==0.9.0,types-mock==5.1.0.20240106,types-requests==2.31.0.20240125,typing_extensions==4.8.0,urllib3==2.1.0,virtualenv==20.25.0,wcwidth==0.2.13 docs run-test-pre: PYTHONHASHSEED='3476085095' docs run-test: commands[0] | sphinx-build -EW --keep-going -T docs build/html

Traceback (most recent call last): File "/venv/lib/python3.10/site-packages/sphinx/cmd/build.py", line 280, in build_main app = Sphinx(args.sourcedir, args.confdir, args.outputdir, File "/venv/lib/python3.10/site-packages/sphinx/application.py", line 153, in init raise ApplicationError(__('Cannot find source directory (%s)') % sphinx.errors.ApplicationError: Cannot find source directory (/workspaces/domain-services-template/docs)

Application error: Cannot find source directory (/workspaces/domain-services-template/docs) ERROR: InvocationError for command /venv/bin/sphinx-build -EW --keep-going -T docs build/html (exited with code 2)

======================================================================================= log end ======================================================================================= ✖ FAIL docs in 1.994 seconds ✔ OK pytest in 2.417 seconds ✔ OK mypy in 3.288 seconds ✔ OK pre-commit in 8.482 seconds summary pre-commit: commands succeeded mypy: commands succeeded pytest: commands succeeded ERROR: docs: parallel child exit code 1