docs/support/requirements_to_rst.py
def def_links(mobj):
    """Define Sphinx requirements links."""
    fdict = json_load(os.path.join("data", "requirements.json"))
    sdeps = sorted(fdict.keys())
    olines = []
    for item in sdeps:
        olines.append(
            ".. _{name}: {url}\n".format(
                name=fdict[item]["name"], url=fdict[item]["url"]
            )
        )
    ret = []
    for line in olines:
        wobj = textwrap.wrap(line, width=LINE_WIDTH, subsequent_indent="   ")
        ret.append("\n".join([item for item in wobj]))
    mobj.out("\n".join(ret))
def def_links(mobj):
    """Define Sphinx requirements links."""
    fdict = json_load(os.path.join("data", "requirements.json"))
    sdeps = sorted(fdict.keys())
    olines = []
    for item in sdeps:
        olines.append(
            ".. _{name}: {url}\n".format(
                name=fdict[item]["name"], url=fdict[item]["url"]
            )
        )
    ret = []
    for line in olines:
        wobj = textwrap.wrap(line, width=LINE_WIDTH, subsequent_indent="   ")
        ret.append("\n".join([item for item in wobj]))
    mobj.out("\n".join(ret))
Define Sphinx requirements links.