diff options
author | George Hickman <george@ghickman.co.uk> | 2012-03-20 17:26:25 +0000 |
---|---|---|
committer | George Hickman <george@ghickman.co.uk> | 2012-03-20 17:26:49 +0000 |
commit | d3a3522cea3cf553ddf2f9345b01b548ddd6cf0c (patch) | |
tree | 58b720625f8e56466c7c498a81bbe1891a7bae59 | |
parent | def2d8ddd05ae0b8526f8fa1ee80beea01006619 (diff) | |
download | django-wkhtmltopdf-d3a3522cea3cf553ddf2f9345b01b548ddd6cf0c.tar.gz django-wkhtmltopdf-d3a3522cea3cf553ddf2f9345b01b548ddd6cf0c.tar.bz2 django-wkhtmltopdf-d3a3522cea3cf553ddf2f9345b01b548ddd6cf0c.zip |
Make the docs rest
l--------- | README | 1 | ||||
-rw-r--r-- | README.md | 32 | ||||
-rw-r--r-- | README.rst | 34 | ||||
-rw-r--r-- | setup.py | 10 |
4 files changed, 43 insertions, 34 deletions
@@ -1 +0,0 @@ -README.md
\ No newline at end of file diff --git a/README.md b/README.md deleted file mode 100644 index 285d987..0000000 --- a/README.md +++ /dev/null @@ -1,32 +0,0 @@ -django-wkhtmltopdf -================== - - -Converts html to PDF --------------------- - -Provides a thin wrapper to the wkhtmltopdf binary from http://code.google.com/p/wkhtmltopdf/ - - -Requirements ------------- - -Install the [wkhtmltopdf](http://code.google.com/p/wkhtmltopdf/) binary. -This requires libfontconfig (on Ububtu: `sudo aptitude install libfontconfig`). - - -Installation ------------- - -Run `pip install django-wkhtmltopdf`. - -Add `'wkhtmltopdf'` to `INSTALLED_APPS` in your `settings.py`. - -By default it will execute the first wkhtmltopdf command found on your `PATH`. - -If you can't add wkhtmltopdf to your `PATH`, you can set `WKHTMLTOPDF_CMD` to a -specific execuatable: - -e.g.: in `settings.py` - - WKHTMLTOPDF_CMD = '/path/to/my/wkhtmltopdf' diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..8e978fe --- /dev/null +++ b/README.rst @@ -0,0 +1,34 @@ +django-wkhtmltopdf +================== + + +Converts html to PDF +-------------------- + +Provides a thin wrapper to the wkhtmltopdf binary from http://code.google.com/p/wkhtmltopdf/ + + +Requirements +------------ + +Install the `wkhtmltopdf`_ binary. +This requires libfontconfig (on Ububtu: ``sudo aptitude install libfontconfig``). + +.. _wkhtmltopdf: http://code.google.com/p/wkhtmltopdf/downloads/list + + +Installation +------------ + +Run ``pip install django-wkhtmltopdf``. + +Add ``'wkhtmltopdf'`` to ``INSTALLED_APPS`` in your ``settings.py``. + +By default it will execute the first wkhtmltopdf command found on your ``PATH``. + +If you can't add wkhtmltopdf to your ``PATH``, you can set ``WKHTMLTOPDF_CMD`` to a +specific execuatable: + +e.g.: in ``settings.py`` + + WKHTMLTOPDF_CMD = '/path/to/my/wkhtmltopdf' @@ -1,14 +1,22 @@ +from os.path import dirname, join from setuptools import setup, find_packages from wkhtmltopdf import get_version + + +def fread(fn): + with open(join(dirname(__file__), fn), 'r') as f: + return f.read() + setup( name = "django-wkhtmltopdf", packages = find_packages(), include_package_data=True, - #install_requires=[], version = get_version(), description = "Converts html to PDF using http://code.google.com/p/wkhtmltopdf/.", + long_description = fread('README.rst'), author = "Incuna Ltd", author_email = "admin@incuna.com", url = "http://incuna.com/", ) + |