1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-06 00:47:13 +03:00
WeasyPrint/setup.py
2012-02-07 16:11:38 +01:00

64 lines
1.7 KiB
Python

"""
WeasyPrint
----------
WeasyPrint converts web documents (HTML, CSS, SVG, ...) to PDF.
See the documentation at http://weasyprint.org/
"""
import re
from os import path
from setuptools import setup, find_packages
with open(path.join(path.dirname(__file__), 'weasy', 'version.py')) as fd:
VERSION = re.match("VERSION = '([^']+)'", fd.read().strip()).group(1)
setup(
name='WeasyPrint',
version=VERSION,
url='http://weasyprint.org/',
license='GNU Affero General Public License v3',
description='WeasyPrint converts web documents to PDF.',
long_description=__doc__,
author='Simon Sapin',
author_email='simon.sapin@kozea.fr',
plateforms='Any',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Programming Language :: Python :: 2.7',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Text Processing :: Markup :: HTML',
'Topic :: Printing',
],
packages=find_packages(),
package_data={
'weasy.tests': ['resources/*',
# Make sure the directories are created
'*_results/.gitignore'],
'weasy.css': ['*.css']},
zip_safe=False,
install_requires=[
# Keep this in sync with the "install" documentation
'lxml',
'cssutils>=0.9.9',
'PIL',
'CairoSVG>=0.3',
# Not installable by pip:
# Pango>=1.29.3
# PyGObject
# PyCairo
],
test_loader='attest:FancyReporter.test_loader',
test_suite='weasy.tests',
entry_points={
'console_scripts': [
'weasyprint = weasy:main',
],
},
use_2to3=True
)