File tree Expand file tree Collapse file tree 6 files changed +15
-8
lines changed
Expand file tree Collapse file tree 6 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,10 @@ install:
1818script :
1919- coverage run --source=pydf setup.py test
2020- flake8 pydf/
21+ - if [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then python setup.py check -rms; fi
2122- python setup.py install
2223- tests/check_file_permissions.py
2324- python -c "import pydf; print(pydf.get_version())"
24- - if [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then python setup.py check -rms; fi
2525
2626after_success :
2727- ls -lha
Original file line number Diff line number Diff line change @@ -103,6 +103,11 @@ Changelog
103103- uprev wkhtmltopdf from **0.12.2 (beta) ** to **0.12.4 **.
104104- code cleanup
105105
106+ 0.21
107+ ~~~~
108+
109+ - correct permissions on wkhtmltopdf binary.
110+
106111.. |Build Status | image :: https://travis-ci.org/tutorcruncher/pydf.svg?branch=master
107112 :target: https://travis-ci.org/tutorcruncher/pydf
108113.. |codecov.io | image :: https://codecov.io/github/tutorcruncher/pydf/coverage.svg?branch=master
Original file line number Diff line number Diff line change 11from .wkhtmltopdf import * # noqa
2+ from .version import VERSION # noqa
Original file line number Diff line number Diff line change 1+ from distutils .version import StrictVersion
2+
3+ VERSION = StrictVersion ('0.3.0' )
Original file line number Diff line number Diff line change 11import os
22import subprocess
33from tempfile import NamedTemporaryFile
4-
5- __version__ = '0.3'
4+ from .version import VERSION
65
76
87def execute_wk (* args ):
@@ -132,14 +131,12 @@ def get_version():
132131
133132 :return: version string
134133 """
135- v = 'pydf version: %s\n ' % __version__
136134 try :
137135 wk_version = _string_execute ('-V' )
138136 except Exception as e :
139137 # we catch all errors here to make sure we get a version no matter what
140- wk_version = 'Error: %s' % str (e )
141- v += 'wkhtmltopdf version: %s' % wk_version
142- return v
138+ wk_version = '%s: %s' % (e .__class__ .__name__ , e )
139+ return 'pydf version: %s\n wkhtmltopdf version: %s' % (VERSION , wk_version )
143140
144141
145142def get_help ():
Original file line number Diff line number Diff line change 11import os
22from setuptools import setup
33from setuptools .command .install import install
4+ from pydf .version import VERSION
45
56description = 'PDF generation in python using wkhtmltopdf suitable for heroku'
67THIS_DIR = os .path .dirname (os .path .abspath (__file__ ))
@@ -19,7 +20,7 @@ def run(self):
1920setup (
2021 name = 'python-pdf' ,
2122 cmdclass = {'install' : OverrideInstall },
22- version = '0.23' ,
23+ version = str ( VERSION ) ,
2324 description = description ,
2425 long_description = long_description ,
2526 author = 'Samuel Colvin' ,
You can’t perform that action at this time.
0 commit comments