Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Packaging changes.

commit a2656a16354d1354e7e37462eb2443fddcf95547 1 parent 7262b67
Chris Glass authored
Showing with 44 additions and 104 deletions.
  1. +2 −29 MANIFEST.in
  2. +14 −0 README.txt
  3. +28 −75 setup.py
31 MANIFEST.in
View
@@ -1,30 +1,3 @@
-include pisa.py
-exclude doc/*
-include doc/pisa-en.pdf
-include doc/pisa-en.html
-include doc/pisa.css
-include doc/screen.css
-include demo/*
-exclude demo/tgproject/*
-recursive-include test *.html *.jpg *.py *.css *.txt
-include test/pdf/background-sample.pdf
-exclude test/archive/*
-global-exclude .ropeproject* *.odt *.bak *.pyc .svn* *.pyo *.ttf sitecustomize.py
-exclude license/*
-exclude dist/*
-exclude lib/*
-exclude test/font/*
-include test/font/README.txt
-exclude *.bat
-exclude check*
-exclude *.jar
-exclude tests/*
-exclude xhtml2pdf/*
-exclude setup_version.py
-exclude setup_exe.py
-exclude MANIFEST.in
-include README.txt
-include CHANGELOG.txt
include LICENSE.txt
-recursive-include tests *.html *.jpg *.py *.css *.txt *.pdf
-exclude tests/tmp/*
+include VERSION.txt
+include CHANGELOG.txt
14 README.txt
View
@@ -1,3 +1,17 @@
+ABOUT
+=====
+
+xhtml2pdf is a html2pdf converter using the ReportLab Toolkit,
+the HTML5lib and pyPdf. It supports HTML 5 and CSS 2.1 (and some of CSS 3).
+It is completely written in pure Python so it is platform independent.
+
+The main benefit of this tool that a user with Web skills like HTML and CSS
+is able to generate PDF templates very quickly without learning new
+technologies.
+
+Easy integration into Python frameworks like CherryPy,
+KID Templating, TurboGears, Django, Zope, Plone, Google AppEngine (GAE) etc.
+
HELP
====
103 setup.py
View
@@ -1,5 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
+import os
# Copyright 2010 Dirk Holtwick, holtwick.it
#
@@ -16,7 +17,7 @@
# limitations under the License.
try:
- from setuptools import setup
+ from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
@@ -36,12 +37,9 @@
install_requires = ["html5lib", "pypdf", "pil", "reportlab"],
- include_package_data = False,
+ include_package_data = True,
- packages = [
- 'xhtml2pdf',
- 'xhtml2pdf.w3c',
- ],
+ packages=find_packages(exclude=["tests", "tests.*"]),
# test_suite = "tests", They're not even working yet
@@ -52,73 +50,28 @@
# ]
# },
- long_description = """
-pisa is a html2pdf converter using the ReportLab Toolkit,
-the HTML5lib and pyPdf. It supports HTML 5 and CSS 2.1 (and some of CSS 3).
-It is completely written in pure Python so it is platform independent.
-The main benefit of this tool that a user with Web skills like HTML and CSS
-is able to generate PDF templates very quickly without learning new
-technologies. Easy integration into Python frameworks like CherryPy,
-KID Templating, TurboGears, Django, Zope, Plone, Google AppEngine (GAE) etc.
-(see 'demo' folder for examples)
- """.strip(),
-
- classifiers = [x.strip() for x in """
- License :: Freeware
- License :: OSI Approved
- License :: OSI Approved :: Apache Software License
- Development Status :: 5 - Production/Stable
- Development Status :: 6 - Mature
- Environment :: Console
- Environment :: MacOS X
- Environment :: Other Environment
- Environment :: Web Environment
- Environment :: Win32 (MS Windows)
- Framework :: Django
- Framework :: Plone
- Framework :: Pylons
- Framework :: TurboGears
- Framework :: Zope2
- Framework :: Zope3
- Intended Audience :: Customer Service
- Intended Audience :: Developers
- Intended Audience :: Education
- Intended Audience :: Financial and Insurance Industry
- Intended Audience :: Healthcare Industry
- Intended Audience :: Information Technology
- Intended Audience :: Legal Industry
- Intended Audience :: Manufacturing
- Intended Audience :: Science/Research
- Intended Audience :: System Administrators
- Intended Audience :: Telecommunications Industry
- Natural Language :: English
- Natural Language :: German
- Operating System :: MacOS
- Operating System :: MacOS :: MacOS X
- Operating System :: Microsoft
- Operating System :: Microsoft :: MS-DOS
- Operating System :: Microsoft :: Windows
- Operating System :: Other OS
- Operating System :: POSIX
- Operating System :: POSIX :: Linux
- Operating System :: Unix
- Topic :: Documentation
- Topic :: Internet
- Topic :: Multimedia
- Topic :: Office/Business
- Topic :: Office/Business :: Financial
- Topic :: Office/Business :: Financial :: Accounting
- Topic :: Printing
- Topic :: Text Processing
- Topic :: Text Processing :: Filters
- Topic :: Text Processing :: Fonts
- Topic :: Text Processing :: General
- Topic :: Text Processing :: Indexing
- Topic :: Text Processing :: Linguistic
- Topic :: Text Processing :: Markup
- Topic :: Text Processing :: Markup :: HTML
- Topic :: Text Processing :: Markup :: XML
- Topic :: Utilities
- """.strip().splitlines()],
-
+ long_description=open(os.path.join(os.path.dirname(__file__), 'README.txt')).read(),
+ classifiers =[
+ 'License :: OSI Approved :: Apache Software License',
+ 'Development Status :: 4 - Beta',
+ 'Environment :: Console',
+ 'Environment :: Other Environment',
+ 'Intended Audience :: Developers',
+ 'Intended Audience :: System Administrators',
+ 'Natural Language :: English',
+ 'Operating System :: OS Independent',
+ 'Topic :: Documentation',
+ 'Topic :: Multimedia',
+ 'Topic :: Office/Business',
+ 'Topic :: Printing',
+ 'Topic :: Text Processing',
+ 'Topic :: Text Processing :: Filters',
+ 'Topic :: Text Processing :: Fonts',
+ 'Topic :: Text Processing :: General',
+ 'Topic :: Text Processing :: Indexing',
+ 'Topic :: Text Processing :: Markup',
+ 'Topic :: Text Processing :: Markup :: HTML',
+ 'Topic :: Text Processing :: Markup :: XML',
+ 'Topic :: Utilities',
+ ]
)
Please sign in to comment.
Something went wrong with that request. Please try again.