Skip to content

Commit 0ec4e08

Browse files
committed
clean code
1 parent 702b01f commit 0ec4e08

File tree

12 files changed

+133
-308
lines changed

12 files changed

+133
-308
lines changed

.moban.d/docs/source/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
{%block custom_doc_theme%}
44
html_theme = 'default'
5+
6+
57
def setup(app):
68
app.add_stylesheet('theme_overrides.css')
79
{%endblock%}

.moban.d/setup.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{% extends 'setup.py.jj2' %}
22
{%block additional_keywords%}
3-
'http'
3+
'http'
44
{%endblock %}
55

66
{%block additional_classifiers%}
7-
'Environment :: Web Environment',
8-
'Topic :: Internet :: WWW/HTTP',
9-
'Topic :: Software Development :: Libraries :: Python Modules',
10-
'Development Status :: 3 - Alpha',
11-
'Programming Language :: Python :: 2',
12-
'Programming Language :: Python :: 2.6',
13-
'Programming Language :: Python :: 2.7',
14-
'Programming Language :: Python :: 3',
15-
'Programming Language :: Python :: 3.3',
16-
'Programming Language :: Python :: 3.4',
17-
'Programming Language :: Python :: 3.5',
18-
'Programming Language :: Python :: Implementation :: PyPy'
7+
'Environment :: Web Environment',
8+
'Topic :: Internet :: WWW/HTTP',
9+
'Topic :: Software Development :: Libraries :: Python Modules',
10+
'Development Status :: 3 - Alpha',
11+
'Programming Language :: Python :: 2',
12+
'Programming Language :: Python :: 2.6',
13+
'Programming Language :: Python :: 2.7',
14+
'Programming Language :: Python :: 3',
15+
'Programming Language :: Python :: 3.3',
16+
'Programming Language :: Python :: 3.4',
17+
'Programming Language :: Python :: 3.5',
18+
'Programming Language :: Python :: Implementation :: PyPy'
1919
{%endblock%}}
2020

.moban.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,7 @@ targets:
1111
- requirements.txt: requirements.txt
1212
- LICENSE: LICENSE.jj2
1313
- MANIFEST.in: MANIFEST.in.jj2
14-
- .gitignore: .gitignore.jj2
14+
- .gitignore: .gitignore.jj2
15+
- test.sh: test.sh.jj2
16+
- test.bat: test.sh.jj2
17+
- "tests/requirements.txt": "tests/requirements.txt"

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ before_install:
1212
- if [[ -f min_requirements.txt && "$MINREQ" -eq 1 ]]; then
1313
mv min_requirements.txt requirements.txt ;
1414
fi
15-
- test ! -f rnd_requirements.txt || pip install --upgrade "setuptools" "pip==7.1"
15+
- pip install --upgrade "setuptools" "pip==7.1"
1616
- test ! -f rnd_requirements.txt || pip install --no-deps -r rnd_requirements.txt
1717
- test ! -f rnd_requirements.txt || pip install -r rnd_requirements.txt ;
1818
- pip install -r tests/requirements.txt
1919
script:
20-
make test
20+
- make test
2121
after_success:
2222
codecov

docs/source/conf.py

Lines changed: 9 additions & 221 deletions
Original file line numberDiff line numberDiff line change
@@ -1,251 +1,39 @@
11
# -*- coding: utf-8 -*-
2-
import sys
3-
import os
4-
5-
# If extensions (or modules to document with autodoc) are in another directory,
6-
# add these directories to sys.path here. If the directory is relative to the
7-
# documentation root, use os.path.abspath to make it absolute, like shown here.
8-
#sys.path.insert(0, os.path.abspath('.'))
9-
10-
# -- General configuration ------------------------------------------------
11-
12-
# If your documentation needs a minimal Sphinx version, state it here.
13-
#needs_sphinx = '1.0'
14-
15-
# Add any Sphinx extension module names here, as strings. They can be
16-
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
17-
# ones.
182
extensions = [
193
'sphinx.ext.autodoc',
204
'sphinx.ext.doctest',
215
'sphinx.ext.intersphinx',
226
'sphinx.ext.viewcode',
237
]
248

25-
intersphinx_mapping = {'pyexcel': ('http://pyexcel.readthedocs.org/en/latest/', None)}
9+
intersphinx_mapping = {
10+
'pyexcel': ('http://pyexcel.readthedocs.org/en/latest/', None)
11+
}
2612

27-
# Add any paths that contain templates here, relative to this directory.
2813
templates_path = ['_templates']
29-
30-
# The suffix of source filenames.
3114
source_suffix = '.rst'
32-
33-
# The encoding of source files.
34-
#source_encoding = 'utf-8-sig'
35-
36-
# The master toctree document.
3715
master_doc = 'index'
3816

39-
# General information about the project.
4017
project = u'pyexcel-webio'
4118
copyright = u'2015-2016 Onni Software Ltd.'
42-
43-
# The version info for the project you're documenting, acts as replacement for
44-
# |version| and |release|, also used in various other places throughout the
45-
# built documents.
46-
#
47-
# The short X.Y version.
4819
version = '0.0.7'
49-
# The full version, including alpha/beta/rc tags.
5020
release = '0.0.7'
51-
52-
# The language for content autogenerated by Sphinx. Refer to documentation
53-
# for a list of supported languages.
54-
#language = None
55-
56-
# There are two options for replacing |today|: either, you set today to some
57-
# non-false value, then it is used:
58-
#today = ''
59-
# Else, today_fmt is used as the format for a strftime call.
60-
#today_fmt = '%B %d, %Y'
61-
62-
# List of patterns, relative to source directory, that match files and
63-
# directories to ignore when looking for source files.
6421
exclude_patterns = []
65-
66-
# The reST default role (used for this markup: `text`) to use for all
67-
# documents.
68-
#default_role = None
69-
70-
# If true, '()' will be appended to :func: etc. cross-reference text.
71-
#add_function_parentheses = True
72-
73-
# If true, the current module name will be prepended to all description
74-
# unit titles (such as .. function::).
75-
#add_module_names = True
76-
77-
# If true, sectionauthor and moduleauthor directives will be shown in the
78-
# output. They are ignored by default.
79-
#show_authors = False
80-
81-
# The name of the Pygments (syntax highlighting) style to use.
8222
pygments_style = 'sphinx'
83-
84-
# A list of ignored prefixes for module index sorting.
85-
#modindex_common_prefix = []
86-
87-
# If true, keep warnings as "system message" paragraphs in the built documents.
88-
#keep_warnings = False
89-
90-
91-
# -- Options for HTML output ----------------------------------------------
92-
93-
# The theme to use for HTML and HTML Help pages. See the documentation for
94-
# a list of builtin themes.
9523
html_theme = 'default'
96-
97-
# Theme options are theme-specific and customize the look and feel of a theme
98-
# further. For a list of options available for each theme, see the
99-
# documentation.
100-
#html_theme_options = {}
101-
# Add any paths that contain custom themes here, relative to this directory.
102-
#html_theme_path = []
103-
104-
# The name for this set of Sphinx documents. If None, it defaults to
105-
# "<project> v<release> documentation".
106-
#html_title = None
107-
108-
# A shorter title for the navigation bar. Default is the same as html_title.
109-
#html_short_title = None
110-
111-
# The name of an image file (relative to this directory) to place at the top
112-
# of the sidebar.
113-
#html_logo = None
114-
115-
# The name of an image file (within the static path) to use as favicon of the
116-
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
117-
# pixels large.
118-
#html_favicon = None
119-
120-
# Add any paths that contain custom static files (such as style sheets) here,
121-
# relative to this directory. They are copied after the builtin static files,
122-
# so a file named "default.css" will overwrite the builtin "default.css".
12324
html_static_path = ['_static']
124-
125-
# Add any extra paths that contain custom files (such as robots.txt or
126-
# .htaccess) here, relative to this directory. These files are copied
127-
# directly to the root of the documentation.
128-
#html_extra_path = []
129-
130-
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
131-
# using the given strftime format.
132-
#html_last_updated_fmt = '%b %d, %Y'
133-
134-
# If true, SmartyPants will be used to convert quotes and dashes to
135-
# typographically correct entities.
136-
#html_use_smartypants = True
137-
138-
# Custom sidebar templates, maps document names to template names.
139-
#html_sidebars = {}
140-
141-
# Additional templates that should be rendered to pages, maps page names to
142-
# template names.
143-
#html_additional_pages = {}
144-
145-
# If false, no module index is generated.
146-
#html_domain_indices = True
147-
148-
# If false, no index is generated.
149-
#html_use_index = True
150-
151-
# If true, the index is split into individual pages for each letter.
152-
#html_split_index = False
153-
154-
# If true, links to the reST sources are added to the pages.
155-
#html_show_sourcelink = True
156-
157-
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
158-
#html_show_sphinx = True
159-
160-
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
161-
#html_show_copyright = True
162-
163-
# If true, an OpenSearch description file will be output, and all pages will
164-
# contain a <link> tag referring to it. The value of this option must be the
165-
# base URL from which the finished HTML is served.
166-
#html_use_opensearch = ''
167-
168-
# This is the file name suffix for HTML files (e.g. ".xhtml").
169-
#html_file_suffix = None
170-
171-
# Output file base name for HTML help builder.
17225
htmlhelp_basename = 'pyexcel-webiodoc'
173-
174-
175-
# -- Options for LaTeX output ---------------------------------------------
176-
177-
latex_elements = {
178-
# The paper size ('letterpaper' or 'a4paper').
179-
#'papersize': 'letterpaper',
180-
181-
# The font size ('10pt', '11pt' or '12pt').
182-
#'pointsize': '10pt',
183-
184-
# Additional stuff for the LaTeX preamble.
185-
#'preamble': '',
186-
}
187-
188-
# Grouping the document tree into LaTeX files. List of tuples
189-
# (source start file, target name, title,
190-
# author, documentclass [howto, manual, or own class]).
26+
latex_elements = {}
19127
latex_documents = [
192-
('index', 'pyexcel-webio.tex', u'pyexcel-webio Documentation',
193-
u'Onni Software Ltd.', 'manual'),
28+
('index', 'pyexcel-webio.tex', u'pyexcel-webio Documentation',
29+
'Onni Software Ltd.', 'manual'),
19430
]
195-
196-
# The name of an image file (relative to this directory) to place at the top of
197-
# the title page.
198-
#latex_logo = None
199-
200-
# For "manual" documents, if this is true, then toplevel headings are parts,
201-
# not chapters.
202-
#latex_use_parts = False
203-
204-
# If true, show page references after internal links.
205-
#latex_show_pagerefs = False
206-
207-
# If true, show URL addresses after external links.
208-
#latex_show_urls = False
209-
210-
# Documents to append as an appendix to all manuals.
211-
#latex_appendices = []
212-
213-
# If false, no module index is generated.
214-
#latex_domain_indices = True
215-
216-
217-
# -- Options for manual page output ---------------------------------------
218-
219-
# One entry per manual page. List of tuples
220-
# (source start file, name, description, authors, manual section).
22131
man_pages = [
22232
('index', 'pyexcel-webio', u'pyexcel-webio Documentation',
22333
[u'Onni Software Ltd.'], 1)
22434
]
225-
226-
# If true, show URL addresses after external links.
227-
#man_show_urls = False
228-
229-
230-
# -- Options for Texinfo output -------------------------------------------
231-
232-
# Grouping the document tree into Texinfo files. List of tuples
233-
# (source start file, target name, title, author,
234-
# dir menu entry, description, category)
23535
texinfo_documents = [
236-
('index', 'pyexcel-webio', u'pyexcel-webio Documentation',
237-
u'Onni Software Ltd.', 'pyexcel-webio', 'One line description of project.',
238-
'Miscellaneous'),
36+
('index', 'pyexcel-webio', u'pyexcel-webio Documentation',
37+
'Onni Software Ltd.', 'pyexcel-webio', 'One line description of project.',
38+
'Miscellaneous'),
23939
]
240-
241-
# Documents to append as an appendix to all manuals.
242-
#texinfo_appendices = []
243-
244-
# If false, no module index is generated.
245-
#texinfo_domain_indices = True
246-
247-
# How to display URL addresses: 'footnote', 'no', or 'inline'.
248-
#texinfo_show_urls = 'footnote'
249-
250-
# If true, do not generate a @detailmenu in the "Top" node's menu.
251-
#texinfo_no_detailmenu = False

0 commit comments

Comments
 (0)