From efebd86ce0de77f88ab562d509e678a247a2f42a Mon Sep 17 00:00:00 2001 From: Patrick Maupin Date: Sun, 21 Jun 2015 15:56:25 -0500 Subject: [PATCH] Fix setup.py and add test info to readme --- README.rst | 18 +++++++++++++++++- setup.py | 6 ++++-- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index f0e6074..2c91345 100644 --- a/README.rst +++ b/README.rst @@ -641,6 +641,22 @@ Python 2 and Python 3. __ https://github.com/pmaupin/pdfrw/tree/master/pdfrw/py23_diffs.py +Testing +=============== + +The tests associated with pdfrw require a large number of PDFs, +which are not distributed with the library. + +To run the tests: + +* Download or clone the full package from github.com/pmaupin/pdfrw +* cd into the tests directory, and then clone the package + github.com/pmaupin/static_pdfs into a subdirectory (also named + static_pdfs). +* Now the tests may be run from that directory using unittest, or + py.test, or nose. +* travisci is used at github, and runs the tests with py.test + Other libraries ===================== @@ -713,7 +729,7 @@ Release information Revisions: -0.2 -- In development. Will support Python 2.6, 2.7, 3.3, and 3.4. +0.2 -- Released 21 June, 2015. Supports Python 2.6, 2.7, 3.3, and 3.4. - Several bugs have been fixed - New regression test functionally tests core with dozens of diff --git a/setup.py b/setup.py index 17a468f..7d94f95 100644 --- a/setup.py +++ b/setup.py @@ -1,12 +1,14 @@ #!/usr/bin/env python from setuptools import setup +from pdfrw import __version__ as version +from pdfrw.py23_diffs import convert_load setup( name='pdfrw', - version='0.2', + version=version, description='PDF file reader/writer library', - long_description=open("README.rst", 'rb').read(), + long_description=convert_load(open("README.rst", 'rb').read()), author='Patrick Maupin', author_email='pmaupin@gmail.com', platforms='Independent',