Beispiel #1
0
def documentation():
    try:
        if hp.has_release():
            hp.update_changelog_and_version()
        pip_tool(
            # See https://www.sphinx-doc.org/en/stable/man/sphinx-build.html
            "sphinx-build",
            "-n",
            "-W",
            "--keep-going",
            "-T",
            "-E",
            "-b",
            "html",
            "docs",
            "docs/_build/html",
            cwd=hp.HYPOTHESIS_PYTHON,
        )
    finally:
        subprocess.check_call(
            [
                "git", "checkout", "docs/changes.rst",
                "src/hypothesis/version.py"
            ],
            cwd=hp.HYPOTHESIS_PYTHON,
        )
Beispiel #2
0
def documentation():
    try:
        if hp.has_release():
            hp.update_changelog_and_version()
        hp.build_docs()
    finally:
        subprocess.check_call(
            ["git", "checkout", "docs/changes.rst", "src/hypothesis/version.py"],
            cwd=hp.HYPOTHESIS_PYTHON,
        )
Beispiel #3
0
def documentation():
    os.chdir(hp.HYPOTHESIS_PYTHON)
    try:
        if hp.has_release():
            hp.update_changelog_and_version()
        pip_tool('sphinx-build', '-W', '-b', 'html', '-d',
                 'docs/_build/doctrees', 'docs', 'docs/_build/html')
    finally:
        subprocess.check_call([
            'git', 'checkout', 'docs/changes.rst', 'src/hypothesis/version.py'
        ])
Beispiel #4
0
def documentation():
    os.chdir(hp.HYPOTHESIS_PYTHON)
    try:
        if hp.has_release():
            hp.update_changelog_and_version()
        pip_tool(
            # See http://www.sphinx-doc.org/en/stable/man/sphinx-build.html
            'sphinx-build', '-n', '-W', '--keep-going', '-T', '-E',
            '-b', 'html', 'docs', 'docs/_build/html'
        )
    finally:
        subprocess.check_call([
            'git', 'checkout', 'docs/changes.rst', 'src/hypothesis/version.py'
        ])
def documentation():
    try:
        if hp.has_release():
            hp.update_changelog_and_version()
        pip_tool(
            # See https://www.sphinx-doc.org/en/stable/man/sphinx-build.html
            "sphinx-build",
            "-n",
            "-W",
            "--keep-going",
            "-T",
            "-E",
            "-b",
            "html",
            "docs",
            "docs/_build/html",
            cwd=hp.HYPOTHESIS_PYTHON,
        )
    finally:
        subprocess.check_call(
            ["git", "checkout", "docs/changes.rst", "src/hypothesis/version.py"],
            cwd=hp.HYPOTHESIS_PYTHON,
        )