Skip to content

Commit

Permalink
Update name
Browse files Browse the repository at this point in the history
  • Loading branch information
paradoxxxzero committed Sep 23, 2011
1 parent 9b4b240 commit 6398f26
Show file tree
Hide file tree
Showing 14 changed files with 37 additions and 40 deletions.
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# svg.charts documentation build configuration file, created by
# pygal documentation build configuration file, created by
# sphinx-quickstart on Tue May 11 10:51:55 2010.
#
# This file is execfile()d with the current directory set to its containing dir
Expand Down Expand Up @@ -180,7 +180,7 @@
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, documentclass [howto/manual])
latex_documents = [
('index', 'svgcharts.tex', u'svg.charts Documentation',
('index', 'svgcharts.tex', u'pygal Documentation',
setup_params['author'], 'manual'),
]

Expand Down
17 changes: 7 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class DisabledTestCommand(Command):

def __init__(self, dist):
raise RuntimeError(
"test command not supported on svg.charts."
"test command not supported on pygal."
" Use setup.py nosetests instead")

_this_dir = os.path.dirname(__file__)
Expand All @@ -25,16 +25,16 @@ def __init__(self, dist):
else ['python-dateutil>=2.0'])

setup_params = dict(
name="svg.charts",
name="pygal",
use_hg_version=True,
description="Python SVG Charting Library",
description="Python svg graph abstract layer",
long_description=_long_description,
author="Jason R. Coombs",
author_email="[email protected]",
url="http://svg-charts.sourceforge.net",
author="Jason R. Coombs, Kozea",
author_email="[email protected], [email protected]",
url="https://github.com/Kozea/pygal",
packages=find_packages(),
zip_safe=True,
namespace_packages=['svg'],
namespace_packages=['pygal'],
include_package_data=True,
install_requires=[
'cssutils>=0.9.8a3',
Expand All @@ -57,9 +57,6 @@ def __init__(self, dist):
cmdclass=dict(
test=DisabledTestCommand,
),
setup_requires=[
'hgtools',
],
use_2to3=True,
)

Expand Down
2 changes: 1 addition & 1 deletion svg/charts/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# -*- coding: UTF-8 -*-

"""
svg.charts package.
pygal package.
"""

__all__ = ('graph', 'plot', 'time_series', 'bar', 'pie', 'schedule', 'util')
2 changes: 1 addition & 1 deletion svg/charts/bar.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!python
from itertools import chain
from lxml import etree
from svg.charts.graph import Graph
from pygal.graph import Graph

__all__ = ('VerticalBar', 'HorizontalBar')

Expand Down
2 changes: 1 addition & 1 deletion svg/charts/graph.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
$Id$
Base styles for svg.charts.Graph
Base styles for pygal.Graph
*/

.svgBackground{
Expand Down
18 changes: 9 additions & 9 deletions svg/charts/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# -*- coding: utf-8 -*-

"""
svg.charts.graph
pygal.graph
The base module for `svg.charts` classes.
The base module for `pygal` classes.
"""

from operator import itemgetter
Expand All @@ -16,7 +16,7 @@
from lxml import etree
from xml import xpath

from svg.charts import css # causes the SVG profile to be loaded
from pygal import css # causes the SVG profile to be loaded

try:
import zlib
Expand Down Expand Up @@ -44,11 +44,11 @@ class Graph(object):
For examples of how to subclass this class, see the existing specific
subclasses, such as svn.charts.Pie.
* svg.charts.bar
* svg.charts.line
* svg.charts.pie
* svg.charts.plot
* svg.charts.time_series
* pygal.bar
* pygal.line
* pygal.pie
* pygal.plot
* pygal.time_series
"""
width = 500
Expand Down Expand Up @@ -698,7 +698,7 @@ def calculate_graph_dimensions(self):

@staticmethod
def load_resource_stylesheet(name, subs=dict()):
css_stream = pkg_resources.resource_stream('svg.charts', name)
css_stream = pkg_resources.resource_stream('pygal', name)
css_string = css_stream.read().decode('utf-8')
css_string = css_string % subs
sheet = cssutils.parseString(css_string)
Expand Down
2 changes: 1 addition & 1 deletion svg/charts/line.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from lxml import etree

from util import flatten, float_range
from svg.charts.graph import Graph
from pygal.graph import Graph


class Line(Graph):
Expand Down
4 changes: 2 additions & 2 deletions svg/charts/pie.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import math
import itertools
from lxml import etree
from svg.charts.graph import Graph
from pygal.graph import Graph


def robust_add(a, b):
Expand All @@ -22,7 +22,7 @@ class Pie(Graph):
Synopsis
========
from svg.charts.pie import Pie
from pygal.pie import Pie
fields = ['Jan', 'Feb', 'Mar']
data_sales_02 = [12, 45, 21]
Expand Down
2 changes: 1 addition & 1 deletion svg/charts/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from itertools import izip, count, chain
from lxml import etree

from svg.charts.graph import Graph
from pygal.graph import Graph

from .util import float_range

Expand Down
2 changes: 1 addition & 1 deletion svg/charts/schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from dateutil.relativedelta import relativedelta
from lxml import etree

from svg.charts.graph import Graph
from pygal.graph import Graph
from util import grouper, date_range, divide_timedelta_float, TimeScale

__all__ = ('Schedule')
Expand Down
6 changes: 3 additions & 3 deletions svg/charts/time_series.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python
import svg.charts.plot
import pygal.plot
import re
import pkg_resources
pkg_resources.require("python-dateutil>=1.1")
Expand All @@ -11,7 +11,7 @@
from .util import float_range


class Plot(svg.charts.plot.Plot):
class Plot(pygal.plot.Plot):
"""=== For creating SVG plots of scalar temporal data
= Synopsis
Expand Down Expand Up @@ -149,7 +149,7 @@ def process_data(self, data):
# the date should be in the first element, so parse it out
data['data'][0] = map(self.parse_date, data['data'][0])

_min_x_value = svg.charts.plot.Plot.min_x_value
_min_x_value = pygal.plot.Plot.min_x_value

def get_min_x_value(self):
return self._min_x_value
Expand Down
12 changes: 6 additions & 6 deletions tests/samples.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
import os
import sys

from svg.charts.plot import Plot
from svg.charts import bar
from svg.charts import time_series
from svg.charts import pie
from svg.charts import schedule
from svg.charts import line
from pygal.plot import Plot
from pygal import bar
from pygal import time_series
from pygal import pie
from pygal import schedule
from pygal import line


def sample_Plot():
Expand Down
2 changes: 1 addition & 1 deletion tests/test_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def test_index_error_2010_04(self):
Credit to Jean for the test code as well.
"""
from svg.charts.plot import Plot
from pygal.plot import Plot
g = Plot(dict(scale_y_integers=True))
g.add_data(dict(data=[1, 0, 2, 1], title='foo'))
res = g.burn()
Expand Down
2 changes: 1 addition & 1 deletion tests/test_time_series.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from svg.charts import time_series
from pygal import time_series


def test_field_width():
Expand Down

0 comments on commit 6398f26

Please sign in to comment.