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

Commit

Permalink
Don't use autoprogram for now
Browse files Browse the repository at this point in the history
RTD doesn't support Python 3.5 yet, so imports and whatnot fail.
  • Loading branch information
mineo committed May 20, 2016
1 parent 133029c commit 5659966
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
3 changes: 1 addition & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.coverage',
'sphinx.ext.viewcode', 'sphinx.ext.intersphinx',
'sphinxcontrib.autoprogram']
'sphinx.ext.viewcode', 'sphinx.ext.intersphinx']
sys.path.insert(0, os.path.abspath("../../"))
from abzer import __version__
autodoc_default_flags = ["members", "undoc-members", "show-inheritance"]
Expand Down
19 changes: 15 additions & 4 deletions docs/source/usage.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
Usage
=====

Command line options
--------------------
For now, here's the `--help` output::

.. autoprogram:: abzer.__main__:make_argparser()
:prog: abzer
usage: abzer [-h] [-c CONFIG] [-p PROCESSES] [-v] FILENAME [FILENAME ...]

positional arguments:
FILENAME

optional arguments:
-h, --help show this help message and exit
-c CONFIG, --config CONFIG
The path to the config file. (default:
/home/<username>/.abzsubmit/abzsubmit.conf)
-p PROCESSES, --processes PROCESSES
The number of processes to use for analyzing files.
(default: <number of cpus>)
-v, --verbose Be more verbose. (default: False)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
use_scm_version={"write_to": "abzer/version.py"},
install_requires=["aiohttp"],
extras_require={
'docs': ['sphinx', 'sphinxcontrib-autoprogram']},
'docs': ['sphinx']},
entry_points={
'console_scripts': ['abzer=abzer.__main__:main']
}
Expand Down

0 comments on commit 5659966

Please sign in to comment.