File: noxfile.py

package info (click to toggle)
python-aio-pika 9.5.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 1,460 kB
  • sloc: python: 8,003; makefile: 37; xml: 1
file content (15 lines) | stat: -rw-r--r-- 423 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import nox
from nox import Session


@nox.session
def docs(session: Session) -> None:
    session.install(".")
    session.install("sphinx", "sphinx-autobuild")
    session.run("rm", "-rf", "build/html", external=True)
    sphinx_args = ["-W", "docs/source", "build/html"]

    if "serve" in session.posargs:
        session.run("sphinx-autobuild", *sphinx_args)
    else:
        session.run("sphinx-build", *sphinx_args)