From c71f3a2c9539dd0f96c60afda4b65b3ba75cb7ff Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.dos.anjos@gmail.com> Date: Sat, 23 Apr 2016 21:02:02 +0200 Subject: [PATCH] [setup] Streamlining packages --- buildout.cfg | 32 +++++++++++++++++++++++--------- doc/admin/conf.py | 6 +++++- doc/api/conf.py | 4 +++- doc/user/conf.py | 3 +++ setup.py | 1 + 5 files changed, 35 insertions(+), 11 deletions(-) diff --git a/buildout.cfg b/buildout.cfg index 54ece3175..2b98d21dd 100644 --- a/buildout.cfg +++ b/buildout.cfg @@ -24,20 +24,30 @@ django-activity-stream = >= 0.6.1 recipe = syseggrecipe ;force-sysegg = true eggs = alabaster + appnope Babel colorlog + coverage cycler - Django - django_activity_stream - django_guardian + decorator + django + django-activity-stream + django-guardian djangorestframework - django_rest_swagger - django_jsonfield + django-rest-swagger + django-jsonfield docopt docutils funcsigs functools32 + gevent graphviz + greenlet + gnureadline + ipdb + ipython + ipython-genutils + imagesize Jinja2 jsonschema MarkupSafe @@ -46,17 +56,22 @@ eggs = alabaster mock numpy oset + pathlib2 + pexpect pbr - Pillow + pickleshare pip psutil + ptyprocess psycopg2 Pygments pyparsing - python_dateutil + python-archive + python-dateutil pytz PyYAML pyzmq + simplegeneric simplejson six snowballstemmer @@ -65,10 +80,9 @@ eggs = alabaster sphinxcontrib-httpdomain sphinxcontrib-mscgen sphinxcontrib-programoutput - sphinx-numfig sphinx-rtd-theme - subprocess32 termcolor + traitlets uwsgi wsgiref diff --git a/doc/admin/conf.py b/doc/admin/conf.py index ee02b36fa..5c7ed1270 100644 --- a/doc/admin/conf.py +++ b/doc/admin/conf.py @@ -46,7 +46,8 @@ extensions = [ 'sphinx.ext.autosummary', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', - 'sphinx_numfig', + 'sphinx.ext.napoleon', + 'sphinx.ext.viewcode', ] # The viewcode extension appeared only on Sphinx >= 1.0.0 @@ -57,6 +58,9 @@ if sphinx.__version__ >= "1.0": # Always includes todos todo_include_todos = True +# Create numbers on figures with captions +numfig = True + # If we are on OSX, the 'dvipng' path maybe different dvipng_osx = '/opt/local/libexec/texlive/binaries/dvipng' if os.path.exists(dvipng_osx): pngmath_dvipng = dvipng_osx diff --git a/doc/api/conf.py b/doc/api/conf.py index 80b081cef..7e21dad85 100644 --- a/doc/api/conf.py +++ b/doc/api/conf.py @@ -64,7 +64,6 @@ extensions = [ 'sphinx.ext.napoleon', 'sphinx.ext.viewcode', - 'sphinx_numfig', 'sphinxcontrib.ansi', 'sphinxcontrib.programoutput', 'sphinxcontrib.httpdomain', @@ -74,6 +73,9 @@ extensions = [ # Always includes todos todo_include_todos = True +# Create numbers on figures with captions +numfig = True + # Generates auto-summary automatically autosummary_generate = True diff --git a/doc/user/conf.py b/doc/user/conf.py index c76e8c9f9..324bc7178 100644 --- a/doc/user/conf.py +++ b/doc/user/conf.py @@ -60,6 +60,9 @@ extensions = [ # Always includes todos todo_include_todos = True +# Create numbers on figures with captions +numfig = True + # Generates auto-summary automatically autosummary_generate = True diff --git a/setup.py b/setup.py index aa3c93b33..c8c2b043b 100644 --- a/setup.py +++ b/setup.py @@ -70,6 +70,7 @@ setup( "sphinxcontrib-programoutput", "sphinxcontrib-ansi", "sphinxcontrib-httpdomain", + "sphinx-rtd-theme", "matplotlib", ], -- GitLab