Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8261328

Browse files
some pycodestyle fixes in py files
1 parent b0b0878 commit 8261328

File tree

3 files changed

+111
-113
lines changed

3 files changed

+111
-113
lines changed

‎conf.py‎

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
# If extensions (or modules to document with autodoc) are in another directory,
1616
# add these directories to sys.path here. If the directory is relative to the
1717
# documentation root, use os.path.abspath to make it absolute, like shown here.
18-
#sys.path.insert(0, os.path.abspath('.'))
18+
#sys.path.insert(0, os.path.abspath('.'))
1919

2020
# -- General configuration ------------------------------------------------
2121

2222
# If your documentation needs a minimal Sphinx version, state it here.
23-
#needs_sphinx = '1.0'
23+
#needs_sphinx = '1.0'
2424

2525
# Add any Sphinx extension module names here, as strings. They can be
2626
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
@@ -30,7 +30,7 @@
3030
'sphinx.ext.ifconfig',
3131
'sage_package.sphinx',
3232
'nbsphinx',
33-
#'sphinxcontrib.jupyter'
33+
#'sphinxcontrib.jupyter'
3434
]
3535

3636
# Add any paths that contain templates here, relative to this directory.
@@ -42,7 +42,7 @@
4242
source_suffix = '.rst'
4343

4444
# The encoding of source files.
45-
#source_encoding = 'utf-8-sig'
45+
#source_encoding = 'utf-8-sig'
4646

4747
# The master toctree document.
4848
master_doc = 'index'
@@ -70,9 +70,9 @@
7070

7171
# There are two options for replacing |today|: either, you set today to some
7272
# non-false value, then it is used:
73-
#today = ''
73+
#today = ''
7474
# Else, today_fmt is used as the format for a strftime call.
75-
#today_fmt = '%B %d, %Y'
75+
#today_fmt = '%B %d, %Y'
7676

7777
# List of patterns, relative to source directory, that match files and
7878
# directories to ignore when looking for source files.
@@ -83,24 +83,24 @@
8383
default_role = 'math'
8484

8585
# If true, '()' will be appended to :func: etc. cross-reference text.
86-
#add_function_parentheses = True
86+
#add_function_parentheses = True
8787

8888
# If true, the current module name will be prepended to all description
8989
# unit titles (such as .. function::).
90-
#add_module_names = True
90+
#add_module_names = True
9191

9292
# If true, sectionauthor and moduleauthor directives will be shown in the
9393
# output. They are ignored by default.
94-
#show_authors = False
94+
#show_authors = False
9595

9696
# The name of the Pygments (syntax highlighting) style to use.
9797
pygments_style = 'sphinx'
9898

9999
# A list of ignored prefixes for module index sorting.
100-
#modindex_common_prefix = []
100+
#modindex_common_prefix = []
101101

102102
# If true, keep warnings as "system message" paragraphs in the built documents.
103-
#keep_warnings = False
103+
#keep_warnings = False
104104

105105
# If true, `todo` and `todoList` produce output, else they produce nothing.
106106
todo_include_todos = True
@@ -111,12 +111,12 @@
111111
# The theme to use for HTML and HTML Help pages. See the documentation for
112112
# a list of builtin themes.
113113
html_theme = 'sage' # force `sage` theme (the setting in sage_package.sphinx seems to be ignored by RTD)
114-
#html_theme_path = ['themes']
114+
#html_theme_path = ['themes']
115115

116116
# Theme options are theme-specific and customize the look and feel of a theme
117117
# further. For a list of options available for each theme, see the
118118
# documentation.
119-
#html_theme_options = {}
119+
#html_theme_options = {}
120120

121121
# Add any paths that contain custom themes here, relative to this directory.
122122
html_theme_path = ['themes']
@@ -126,16 +126,16 @@
126126
html_title = "More SageMath Tutorials"
127127

128128
# A shorter title for the navigation bar. Default is the same as html_title.
129-
#html_short_title = None
129+
#html_short_title = None
130130

131131
# The name of an image file (relative to this directory) to place at the top
132132
# of the sidebar.
133-
#html_logo = None
133+
#html_logo = None
134134

135135
# The name of an image file (relative to this directory) to use as a favicon of
136136
# the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
137137
# pixels large.
138-
#html_favicon = None
138+
#html_favicon = None
139139

140140
# Add any paths that contain custom static files (such as style sheets) here,
141141
# relative to this directory. They are copied after the builtin static files,
@@ -149,59 +149,59 @@
149149

150150
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
151151
# using the given strftime format.
152-
#html_last_updated_fmt = '%b %d, %Y'
152+
#html_last_updated_fmt = '%b %d, %Y'
153153

154154
# If true, SmartyPants will be used to convert quotes and dashes to
155155
# typographically correct entities.
156-
#html_use_smartypants = True
156+
#html_use_smartypants = True
157157

158158
# Custom sidebar templates, maps document names to template names.
159-
html_sidebars = {'**': ['title.html', 'ipynblink.html', 'localtoc.html', 'relations.html', 'searchbox.html']}
159+
html_sidebars = {'**': ['title.html', 'ipynblink.html', 'localtoc.html', 'relations.html', 'searchbox.html']}
160160

161161
# Additional templates that should be rendered to pages, maps page names to
162162
# template names.
163-
#html_additional_pages = {}
163+
#html_additional_pages = {}
164164

165165
# If false, no module index is generated.
166-
#html_domain_indices = True
166+
#html_domain_indices = True
167167

168168
# If false, no index is generated.
169-
#html_use_index = True
169+
#html_use_index = True
170170

171171
# If true, the index is split into individual pages for each letter.
172-
#html_split_index = False
172+
#html_split_index = False
173173

174174
# If true, links to the reST sources are added to the pages.
175175
html_show_sourcelink = True
176176
html_copy_source = True
177177

178178
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
179-
#html_show_sphinx = True
179+
#html_show_sphinx = True
180180

181181
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
182-
#html_show_copyright = True
182+
#html_show_copyright = True
183183

184184
# If true, an OpenSearch description file will be output, and all pages will
185185
# contain a <link> tag referring to it. The value of this option must be the
186186
# base URL from which the finished HTML is served.
187-
#html_use_opensearch = ''
187+
#html_use_opensearch = ''
188188

189189
# This is the file name suffix for HTML files (e.g. ".xhtml").
190-
#html_file_suffix = None
190+
#html_file_suffix = None
191191

192192
# Language to be used for generating the HTML full-text search index.
193193
# Sphinx supports the following languages:
194194
# 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja'
195195
# 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr'
196-
#html_search_language = 'en'
196+
#html_search_language = 'en'
197197

198198
# A dictionary with options for the search language support, empty by default.
199199
# Now only 'ja' uses this config value
200-
#html_search_options = {'type': 'default'}
200+
#html_search_options = {'type': 'default'}
201201

202202
# The name of a javascript file (relative to the configuration directory) that
203203
# implements a search results scorer. If empty, the default will be used.
204-
#html_search_scorer = 'scorer.js'
204+
#html_search_scorer = 'scorer.js'
205205

206206
# Output file base name for HTML help builder.
207207
htmlhelp_basename = 'MoreSageThematicTutorialsdoc'
@@ -210,13 +210,13 @@
210210

211211
latex_elements = {
212212
# The paper size ('letterpaper' or 'a4paper').
213-
#'papersize': 'letterpaper',
213+
#'papersize': 'letterpaper',
214214

215215
# The font size ('10pt', '11pt' or '12pt').
216-
#'pointsize': '10pt',
216+
#'pointsize': '10pt',
217217

218218
# Additional stuff for the LaTeX preamble.
219-
'preamble': r'''
219+
'preamble': r'''
220220
\usepackage{amsmath}
221221
\usepackage{amssymb}
222222
\newcommand{\ZZ}{\mathbb{Z}}
@@ -227,7 +227,7 @@
227227
''',
228228

229229
# Latex figure (float) alignment
230-
#'figure_align': 'htbp',
230+
#'figure_align': 'htbp',
231231
}
232232

233233
# Grouping the document tree into LaTeX files. List of tuples
@@ -240,23 +240,23 @@
240240

241241
# The name of an image file (relative to this directory) to place at the top of
242242
# the title page.
243-
#latex_logo = None
243+
#latex_logo = None
244244

245245
# For "manual" documents, if this is true, then toplevel headings are parts,
246246
# not chapters.
247-
#latex_use_parts = False
247+
#latex_use_parts = False
248248

249249
# If true, show page references after internal links.
250-
#latex_show_pagerefs = False
250+
#latex_show_pagerefs = False
251251

252252
# If true, show URL addresses after external links.
253-
#latex_show_urls = False
253+
#latex_show_urls = False
254254

255255
# Documents to append as an appendix to all manuals.
256-
#latex_appendices = []
256+
#latex_appendices = []
257257

258258
# If false, no module index is generated.
259-
#latex_domain_indices = True
259+
#latex_domain_indices = True
260260

261261

262262
# -- Options for manual page output ---------------------------------------
@@ -269,7 +269,7 @@
269269
]
270270

271271
# If true, show URL addresses after external links.
272-
#man_show_urls = False
272+
#man_show_urls = False
273273

274274

275275
# -- Options for Texinfo output -------------------------------------------
@@ -284,29 +284,32 @@
284284
]
285285

286286
# Documents to append as an appendix to all manuals.
287-
#texinfo_appendices = []
287+
#texinfo_appendices = []
288288

289289
# If false, no module index is generated.
290-
#texinfo_domain_indices = True
290+
#texinfo_domain_indices = True
291291

292292
# How to display URL addresses: 'footnote', 'no', or 'inline'.
293-
#texinfo_show_urls = 'footnote'
293+
#texinfo_show_urls = 'footnote'
294294

295295
# If true, do not generate a @detailmenu in the "Top" node's menu.
296-
#texinfo_no_detailmenu = False
296+
# texinfo_no_detailmenu = False
297+
297298

298299
def rtd_finalize(app, exception):
299300
import subprocess
300301
if exception is None:
301-
#subprocess.call("make jupyter", shell=True)
302+
#subprocess.call("make jupyter", shell=True)
302303
subprocess.call("make ipynb", shell=True)
303304
subprocess.call("make web", shell=True)
304305

306+
305307
def setup(app):
306308
import os
307309
if os.environ.get('READTHEDOCS') == 'True':
308310
app.connect('build-finished', rtd_finalize)
309311

312+
310313
# -- Options for Jupyter output ------------------------------------------
311314

312315
# Conversion Mode Settings
@@ -325,24 +328,21 @@ def setup(app):
325328
"kernelspec": {
326329
"display_name": "SageMath",
327330
"language": "SageMath",
328-
"name": "sagemath"
329-
},
331+
"name": "sagemath"},
330332
"file_extension": ".sage",
331333
},
332334
"python3": {
333335
"kernelspec": {
334336
"display_name": "Python",
335337
"language": "python3",
336-
"name": "python3"
337-
},
338+
"name": "python3"},
338339
"file_extension": ".py",
339340
},
340341
"julia": {
341342
"kernelspec": {
342343
"display_name": "Julia 0.6.0",
343344
"language": "julia",
344-
"name": "julia-0.6"
345-
},
345+
"name": "julia-0.6"},
346346
"file_extension": ".jl"
347347
}
348348
}

‎setup.py‎

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
## -*- encoding: utf-8 -*-
2-
import os
3-
import sys
1+
# -*- encoding: utf-8 -*-
42
from setuptools import setup, find_packages
5-
from codecs import open # To open the README file with proper encoding
3+
from codecs import open # To open the README file with proper encoding
64

75
description = 'More SageMath Thematic Tutorials'
86
version = "0.0.1"
@@ -11,29 +9,29 @@
119
license = 'GPLv2+'
1210

1311
setup(
14-
name="more_sagemath_tutorials",
15-
version=version,
16-
description=description,
12+
name="more_sagemath_tutorials",
13+
version=version,
14+
description=description,
1715
# get the long description from the README
18-
long_description=open("README.rst", encoding='utf-8').read(),
16+
long_description=open("README.rst", encoding='utf-8').read(),
1917
url='https://github.com/sagemath/more-sagemath-tutorials',
2018
author=author,
21-
author_email='nthiery@users.sf.net', # choose a main contact email
22-
license=license, # This should be consistent with the LICENCE file
19+
author_email='nthiery@users.sf.net', # choose a main contact email
20+
license=license, # This should be consistent with the LICENCE file
2321
classifiers=[
24-
'Development Status :: 4 - Beta',
25-
'Intended Audience :: Science/Research',
26-
'Topic :: Software Development :: Build Tools',
27-
'Topic :: Scientific/Engineering :: Mathematics',
28-
'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',
29-
'Programming Language :: Python :: 2.7',
30-
], # classifiers list: https://pypi.python.org/pypi?%3Aaction=list_classifiers
31-
keywords="SageMath tutorials",
32-
packages=find_packages(),
33-
setup_requires=['sage-package'],
34-
install_requires=['sage-package', 'sphinx', 'pygments>=2.4.1', 'rst2ipynb','nbsphinx','PyYAML', 'sphinxcontrib-jupyter'],
35-
#dependency_links=['http://github.com/nthiery/rst2ipynb/tarball/master#egg=dev'],
36-
entry_points={
22+
'Development Status :: 4 - Beta',
23+
'Intended Audience :: Science/Research',
24+
'Topic :: Software Development :: Build Tools',
25+
'Topic :: Scientific/Engineering :: Mathematics',
26+
'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',
27+
'Programming Language :: Python :: 2.7',
28+
], # classifiers list: https://pypi.python.org/pypi?%3Aaction=list_classifiers
29+
keywords="SageMath tutorials",
30+
packages=find_packages(),
31+
setup_requires=['sage-package'],
32+
install_requires=['sage-package', 'sphinx', 'pygments>=2.4.1', 'rst2ipynb','nbsphinx','PyYAML', 'sphinxcontrib-jupyter'],
33+
#dependency_links=['http://github.com/nthiery/rst2ipynb/tarball/master#egg=dev'],
34+
entry_points={
3735
"distutils.commands": [
3836
"test = sage_package.setuptools:SageTest",
3937
"html = sphinx.setup_command:BuildDoc",
@@ -52,9 +50,9 @@
5250
'version': ('setup.py', version),
5351
'release': ('setup.py', version),
5452
'copyright': ('setup.py', copyright),
55-
#'master_doc': ('setup.py', 'index'),
56-
'build_dir': ('setup.py', '_build'),
57-
#'authors': ('setup.py', author),
53+
#'master_doc': ('setup.py', 'index'),
54+
'build_dir': ('setup.py', '_build'),
55+
#'authors': ('setup.py', author),
5856
},
5957
}
6058
)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /