diff --git a/MANIFEST.in b/MANIFEST.in index 3099c98..74b68dd 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,2 +1,3 @@ include pygal/css/*.css include pygal/js/*.js +include pygal_gen.py diff --git a/pygal/__init__.py b/pygal/__init__.py index 00f475c..ef72c4a 100644 --- a/pygal/__init__.py +++ b/pygal/__init__.py @@ -16,7 +16,7 @@ # # You should have received a copy of the GNU Lesser General Public License # along with pygal. If not, see . -__version__ = '0.9.18' +from pygal._version import __version__ from pygal.graph.bar import Bar from pygal.graph.horizontal import HorizontalBar from pygal.graph.stackedbar import StackedBar diff --git a/pygal/_version.py b/pygal/_version.py new file mode 100644 index 0000000..47c3353 --- /dev/null +++ b/pygal/_version.py @@ -0,0 +1 @@ +__version__ = '0.9.19' diff --git a/pygal/style.py b/pygal/style.py index 0edae19..bb7f3dd 100644 --- a/pygal/style.py +++ b/pygal/style.py @@ -69,7 +69,7 @@ NeonStyle = Style( transition='1s ease-out') CleanStyle = Style( background='transparent', - plot_background='rgba(0, 0, 0, 0.05)', + plot_background='rgba(240, 240, 240, 0.7)', foreground='rgba(0, 0, 0, 0.9)', foreground_light='rgba(0, 0, 0, 0.9)', foreground_dark='rgba(0, 0, 0, 0.5)', diff --git a/pygal/svg.py b/pygal/svg.py index 18f05d3..0b648ee 100644 --- a/pygal/svg.py +++ b/pygal/svg.py @@ -19,6 +19,7 @@ import os from lxml import etree from pygal.util import template +from pygal._version import __version__ class Svg(object): @@ -36,7 +37,8 @@ class Svg(object): 'xlink': 'http://www.w3.org/1999/xlink', }, onload="svg_load();") - self.root.append(etree.Comment(u'Generated with pygal ©Kozea 2012')) + self.root.append(etree.Comment( + u'Generated with pygal %s ©Kozea 2012' % __version__)) self.root.append(etree.Comment(u'http://github.com/Kozea/pygal')) self.defs = self.node(tag='defs') diff --git a/setup.py b/setup.py index 44f058b..d345eb0 100644 --- a/setup.py +++ b/setup.py @@ -18,10 +18,11 @@ # You should have received a copy of the GNU Lesser General Public License # along with pygal. If not, see . from setuptools import setup, find_packages +from pygal._version import __version__ setup( name="pygal", - version='0.9.18', + version=__version__, description="A python svg graph plotting library", author="Kozea", url="http://pygal.org/", @@ -31,7 +32,8 @@ setup( packages=find_packages(), provides=['pygal'], scripts=["pygal_gen.py"], - keywords=["svg", "chart", "graph", "diagram", "plot", "histogram", "kiviat"], + keywords=[ + "svg", "chart", "graph", "diagram", "plot", "histogram", "kiviat"], tests_require=["pytest", "pyquery", "flask"], package_data={'pygal': ['css/*', 'js/*']}, install_requires=['lxml'],