Skip to content

Commit

Permalink
Use latest svglib
Browse files Browse the repository at this point in the history
  • Loading branch information
msom committed Jan 30, 2017
1 parent 61bb632 commit 6212ed5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 14 deletions.
3 changes: 2 additions & 1 deletion HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Changelog
0.3.1 (unreleased)
~~~~~~~~~~~~~~~~~~

Nothing yet.
- Use latest svglib.
[msom]


0.3 (2015-12-14)
Expand Down
7 changes: 0 additions & 7 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@ Usage
Create a subclass of ReportZug and provide the populate method. To generate
the PDF, call build.

SVG
---
This package uses svglib which does not run properly with Python 3. To use
SVG files with Python 2, install the svglib package. To use this package with
Python 3, make sure get_logo of your report return None.


Run the Tests
-------------

Expand Down
3 changes: 0 additions & 3 deletions kantonzugpdf/tests/test_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@

class TestReport(ReportZug):

def get_logo(self):
return None

def populate(self):
self.title = u'report title'
self.adjust_style()
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ def get_long_description():
platforms='any',
install_requires=[
'pdfdocument',
'reportlab'
'reportlab',
'svglib>=0.8'
],
extras_require=dict(
test=[
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py27,py33,py34,pep8
envlist = py27,py35,pep8

[testenv]
deps=
Expand All @@ -13,4 +13,4 @@ deps = flake8
commands = flake8

[flake8]
exclude = .venv,.git,.tox,dist,docs,*lib/python*,*egg,build
exclude = .venv,.git,.tox,dist,docs,*lib/python*,*egg,build,bin

0 comments on commit 6212ed5

Please sign in to comment.