mplanchard / pydecor

Easy peasy Python decorators

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Too much tasks in tox

Paebbels opened this issue · comments

It looks like tox is solving to much tasks, because it was formerly setup for local / manual execution.

E.g. tox has settings to run sphinx to build and zip documentation files. This task is already solved by ReadTheDocs. I suggest to clean this up.


[testenv:docs]

whitelist_externals =
  make

setenv =
  SPHINX_APIDOC_OPTIONS = members,private-members,undoc-members,show-inheritance
  PACKAGE_NAME = pydecor

commands =
  pip install -r requirements-dev.txt
  pip install -r requirements.txt
  sphinx-apidoc -o docs {env:PACKAGE_NAME:} --separate --private -f
  make text --directory=docs
  make html --directory=docs


[testenv:zip_docs]

skipsdist = True

skip_install = True

deps =

setenv =

whitelist_externals =
  zip

changedir =
  {toxinidir}/docs/_build/html

commands =
  zip -r docs.zip *

Related to #11.

Resolved by #15