Skip to content
This repository was archived by the owner on Feb 10, 2023. It is now read-only.

Commit 131ab9c

Browse files
committed
Revert "Don't use autoprogram for now"
This reverts commit 5659966. Readthedocs supports Python 3.5 now
1 parent f393ca5 commit 131ab9c

File tree

3 files changed

+7
-17
lines changed

3 files changed

+7
-17
lines changed

docs/source/conf.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
# Add any Sphinx extension module names here, as strings. They can be extensions
2727
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
2828
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.coverage',
29-
'sphinx.ext.viewcode', 'sphinx.ext.intersphinx']
29+
'sphinx.ext.viewcode', 'sphinx.ext.intersphinx',
30+
'sphinxcontrib.autoprogram']
3031
sys.path.insert(0, os.path.abspath("../../"))
3132
from abzer import __version__
3233
autodoc_default_flags = ["members", "undoc-members", "show-inheritance"]

docs/source/usage.rst

+4-15
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,8 @@
11
Usage
22
=====
33

4-
For now, here's the `--help` output::
4+
Command line options
5+
--------------------
56

6-
usage: abzer [-h] [-c CONFIG] [-p PROCESSES] [-v] FILENAME [FILENAME ...]
7-
8-
positional arguments:
9-
FILENAME
10-
11-
optional arguments:
12-
-h, --help show this help message and exit
13-
-c CONFIG, --config CONFIG
14-
The path to the config file. (default:
15-
/home/<username>/.abzsubmit/abzsubmit.conf)
16-
-p PROCESSES, --processes PROCESSES
17-
The number of processes to use for analyzing files.
18-
(default: <number of cpus>)
19-
-v, --verbose Be more verbose. (default: False)
7+
.. autoprogram:: abzer.__main__:make_argparser()
8+
:prog: abzer

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
use_scm_version={"write_to": "abzer/version.py"},
2424
install_requires=["aiohttp"],
2525
extras_require={
26-
'docs': ['sphinx']},
26+
'docs': ['sphinx', 'sphinxcontrib-autoprogram']},
2727
entry_points={
2828
'console_scripts': ['abzer=abzer.__main__:main']
2929
}

0 commit comments

Comments
 (0)