build_release: Add --no-asciidoc
This commit is contained in:
parent
9417ed6c8e
commit
7a8110c83e
@ -375,6 +375,8 @@ def pypi_upload(artifacts):
|
|||||||
|
|
||||||
def main():
|
def main():
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
|
parser.add_argument('--no-asciidoc', action='store_true',
|
||||||
|
help="Don't generate docs")
|
||||||
parser.add_argument('--asciidoc', help="Full path to python and "
|
parser.add_argument('--asciidoc', help="Full path to python and "
|
||||||
"asciidoc.py. If not given, it's searched in PATH.",
|
"asciidoc.py. If not given, it's searched in PATH.",
|
||||||
nargs=2, required=False,
|
nargs=2, required=False,
|
||||||
@ -392,7 +394,9 @@ def main():
|
|||||||
import github3 # pylint: disable=unused-variable
|
import github3 # pylint: disable=unused-variable
|
||||||
read_github_token()
|
read_github_token()
|
||||||
|
|
||||||
run_asciidoc2html(args)
|
if not args.no_asciidoc:
|
||||||
|
run_asciidoc2html(args)
|
||||||
|
|
||||||
if os.name == 'nt':
|
if os.name == 'nt':
|
||||||
artifacts = build_windows()
|
artifacts = build_windows()
|
||||||
elif sys.platform == 'darwin':
|
elif sys.platform == 'darwin':
|
||||||
|
Loading…
Reference in New Issue
Block a user