Skip to content

Commit 7d65096

Browse files
authored
Version bump (#136)
* version bump * readme fix * doc fixes * doc fixes * readme
1 parent 53d55e2 commit 7d65096

File tree

3 files changed

+69
-54
lines changed

3 files changed

+69
-54
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,10 @@ contains great examples of how to make your plot look even better.
9090
#### Python Package Index
9191

9292
matplotlib2tikz is [available from the Python Package
93-
Index](https://pypi.python.org/pypi/matplotlib2tikz/), so simply type
93+
Index](https://pypi.python.org/pypi/matplotlib2tikz/), so to install/upgrade
94+
simply type
9495
```
95-
pip install matplotlib2tikz
96+
pip install -U matplotlib2tikz
9697
```
9798

9899
#### Manual installation
@@ -187,7 +188,7 @@ please visit
187188
188189
matplotlib2tikz has automatic unit testing to make sure that the software
189190
doesn't accidentally get worse over time. In `test/testfunctions/`, a number of
190-
test cases are specified. Those are
191+
test cases are specified. Those
191192
192193
* run through matplotlib2tikz,
193194
* the resulting LaTeX file is compiled into a PDF (`pdflatex`),
@@ -204,14 +205,14 @@ The final pHash may depend on any of the tools used during the process. For
204205
example, if your version of [Pillow](https://pypi.python.org/pypi/Pillow/3.0.0)
205206
is too old, the pHash function might operate slightly differently and produce a
206207
slightly different pHash, resulting in a failing test. If tests are failing on
207-
your local machine, you should first make sure to have an up-to-date Pillow, .
208+
your local machine, you should first make sure to have an up-to-date Pillow.
208209
209210
If you would like to contribute a test, just take a look at the examples in
210211
`test/testfunctions/`. Essentially a test consists of three things:
211212
212213
* a description,
213-
* a function that creates the image in matplotlib, and
214-
* a pHash.
214+
* a pHash, and
215+
* a function that creates the image in matplotlib.
215216
216217
Just add your file, add it to `test/testfunction/__init__.py`, and run the
217218
tests. A failing test will always print out the pHash, so you can leave it

doc/conf.py

Lines changed: 61 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@
33
# matplotlib2tikz documentation build configuration file, created by
44
# sphinx-quickstart on Mon May 10 14:00:31 2010.
55
#
6-
# This file is execfile()d with the current directory set to its containing dir.
6+
# This file is execfile()d with the current directory set to its containing
7+
# dir.
78
#
89
# Note that not all possible configuration values are present in this
910
# autogenerated file.
1011
#
1112
# All configuration values have a default; values that are commented out
1213
# serve to show the default.
1314

14-
import sys, os
15+
import sys
16+
import os
1517

1618
import mock
1719
MOCK_MODULES = ['matplotlib']
@@ -23,11 +25,17 @@
2325
# documentation root, use os.path.abspath to make it absolute, like shown here.
2426
sys.path.append(os.path.abspath('../src'))
2527

26-
# -- General configuration -----------------------------------------------------
28+
# -- General configuration ----------------------------------------------------
2729

28-
# Add any Sphinx extension module names here, as strings. They can be extensions
29-
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
30-
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.pngmath']
30+
# Add any Sphinx extension module names here, as strings. They can be
31+
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
32+
extensions = [
33+
'sphinx.ext.autodoc',
34+
'sphinx.ext.doctest',
35+
'sphinx.ext.todo',
36+
'sphinx.ext.coverage',
37+
'sphinx.ext.pngmath'
38+
]
3139

3240
# Add any paths that contain templates here, relative to this directory.
3341
templates_path = ['_templates']
@@ -36,64 +44,70 @@
3644
source_suffix = '.rst'
3745

3846
# The encoding of source files.
39-
#source_encoding = 'utf-8'
47+
# source_encoding = 'utf-8'
4048

4149
# The master toctree document.
4250
master_doc = 'index'
4351

4452
# General information about the project.
4553
project = u'matplotlib2tikz'
46-
copyright = u'2010, Nico Schlömer'
54+
copyright = u'2010-2017, Nico Schlömer'
4755

4856
# The version info for the project you're documenting, acts as replacement for
4957
# |version| and |release|, also used in various other places throughout the
5058
# built documents.
5159
#
52-
from matplotlib2tikz import __version__
60+
# https://packaging.python.org/single_source_version/
61+
this_dir = os.path.abspath(os.path.dirname(__file__))
62+
about = {}
63+
about_file = os.path.join(this_dir, '..', 'matplotlib2tikz', '__about__.py')
64+
with open(about_file) as f:
65+
exec(f.read(), about)
5366
# The short X.Y version.
54-
version = '.'.join(__version__.split('.')[:2])
67+
version = '.'.join(about['__version__'].split('.')[:2])
5568
# The full version, including alpha/beta/rc tags.
56-
release = __version__
69+
release = about['__version__']
5770

5871
# The language for content autogenerated by Sphinx. Refer to documentation
5972
# for a list of supported languages.
60-
#language = None
73+
# language = None
6174

6275
# There are two options for replacing |today|: either, you set today to some
6376
# non-false value, then it is used:
64-
#today = ''
77+
# today = ''
6578
# Else, today_fmt is used as the format for a strftime call.
66-
#today_fmt = '%B %d, %Y'
79+
# today_fmt = '%B %d, %Y'
6780

6881
# List of documents that shouldn't be included in the build.
69-
#unused_docs = []
82+
# unused_docs = []
7083

7184
# List of directories, relative to source directory, that shouldn't be searched
7285
# for source files.
7386
exclude_trees = ['_build']
7487

75-
# The reST default role (used for this markup: `text`) to use for all documents.
76-
#default_role = None
88+
# The reST default role (used for this markup: `text`) to use for all
89+
# documents.
90+
# default_role = None
7791

7892
# If true, '()' will be appended to :func: etc. cross-reference text.
79-
#add_function_parentheses = True
93+
# add_function_parentheses = True
8094

8195
# If true, the current module name will be prepended to all description
8296
# unit titles (such as .. function::).
83-
#add_module_names = True
97+
# add_module_names = True
8498

8599
# If true, sectionauthor and moduleauthor directives will be shown in the
86100
# output. They are ignored by default.
87-
#show_authors = False
101+
# show_authors = False
88102

89103
# The name of the Pygments (syntax highlighting) style to use.
90104
pygments_style = 'sphinx'
91105

92106
# A list of ignored prefixes for module index sorting.
93-
#modindex_common_prefix = []
107+
# modindex_common_prefix = []
94108

95109

96-
# -- Options for HTML output ---------------------------------------------------
110+
# -- Options for HTML output --------------------------------------------------
97111

98112
# The theme to use for HTML and HTML Help pages. Major themes that come with
99113
# Sphinx are currently 'default' and 'sphinxdoc'.
@@ -102,26 +116,26 @@
102116
# Theme options are theme-specific and customize the look and feel of a theme
103117
# further. For a list of options available for each theme, see the
104118
# documentation.
105-
#html_theme_options = {}
119+
# html_theme_options = {}
106120

107121
# Add any paths that contain custom themes here, relative to this directory.
108-
#html_theme_path = []
122+
# html_theme_path = []
109123

110124
# The name for this set of Sphinx documents. If None, it defaults to
111125
# "<project> v<release> documentation".
112-
#html_title = None
126+
# html_title = None
113127

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

117131
# The name of an image file (relative to this directory) to place at the top
118132
# of the sidebar.
119-
#html_logo = None
133+
# html_logo = None
120134

121135
# The name of an image file (within the static path) to use as favicon of the
122136
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
123137
# pixels large.
124-
#html_favicon = None
138+
# html_favicon = None
125139

126140
# Add any paths that contain custom static files (such as style sheets) here,
127141
# relative to this directory. They are copied after the builtin static files,
@@ -130,71 +144,71 @@
130144

131145
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
132146
# using the given strftime format.
133-
#html_last_updated_fmt = '%b %d, %Y'
147+
# html_last_updated_fmt = '%b %d, %Y'
134148

135149
# If true, SmartyPants will be used to convert quotes and dashes to
136150
# typographically correct entities.
137-
#html_use_smartypants = True
151+
# html_use_smartypants = True
138152

139153
# Custom sidebar templates, maps document names to template names.
140-
#html_sidebars = {}
154+
# html_sidebars = {}
141155

142156
# Additional templates that should be rendered to pages, maps page names to
143157
# template names.
144-
#html_additional_pages = {}
158+
# html_additional_pages = {}
145159

146160
# If false, no module index is generated.
147-
#html_use_modindex = True
161+
# html_use_modindex = True
148162

149163
# If false, no index is generated.
150-
#html_use_index = True
164+
# html_use_index = True
151165

152166
# If true, the index is split into individual pages for each letter.
153-
#html_split_index = False
167+
# html_split_index = False
154168

155169
# If true, links to the reST sources are added to the pages.
156-
#html_show_sourcelink = True
170+
# html_show_sourcelink = True
157171

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

163177
# If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
164-
#html_file_suffix = ''
178+
# html_file_suffix = ''
165179

166180
# Output file base name for HTML help builder.
167181
htmlhelp_basename = 'matplotlib2tikzdoc'
168182

169183

170-
# -- Options for LaTeX output --------------------------------------------------
184+
# -- Options for LaTeX output -------------------------------------------------
171185

172186
# The paper size ('letter' or 'a4').
173187
latex_paper_size = 'a4'
174188

175189
# The font size ('10pt', '11pt' or '12pt').
176-
#latex_font_size = '10pt'
190+
# latex_font_size = '10pt'
177191

178-
# Grouping the document tree into LaTeX files. List of tuples
179-
# (source start file, target name, title, author, documentclass [howto/manual]).
192+
# Grouping the document tree into LaTeX files. List of tuples (source start
193+
# file, target name, title, author, documentclass [howto/manual]).
180194
latex_documents = [
181195
('index', 'matplotlib2tikz.tex', u'matplotlib2tikz Documentation',
182196
u'Nico Schlömer', 'manual'),
183197
]
184198

185199
# The name of an image file (relative to this directory) to place at the top of
186200
# the title page.
187-
#latex_logo = None
201+
# latex_logo = None
188202

189203
# For "manual" documents, if this is true, then toplevel headings are parts,
190204
# not chapters.
191-
#latex_use_parts = False
205+
# latex_use_parts = False
192206

193207
# Additional stuff for the LaTeX preamble.
194-
#latex_preamble = ''
208+
# latex_preamble = ''
195209

196210
# Documents to append as an appendix to all manuals.
197-
#latex_appendices = []
211+
# latex_appendices = []
198212

199213
# If false, no module index is generated.
200-
#latex_use_modindex = True
214+
# latex_use_modindex = True

matplotlib2tikz/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
__copyright__ = 'Copyright (c) 2010-2016, %s <%s>' % (__author__, __email__)
66
__credits__ = []
77
__license__ = 'MIT License'
8-
__version__ = '0.6.0'
8+
__version__ = '0.6.1'
99
__maintainer__ = 'Nico Schlömer'
1010
__status__ = 'Production'

0 commit comments

Comments
 (0)