2011-04-20 13:15:13 +04:00
|
|
|
"""
|
|
|
|
WeasyPrint
|
|
|
|
----------
|
|
|
|
|
|
|
|
WeasyPrint converts web documents (HTML, CSS, SVG, ...) to PDF.
|
|
|
|
|
2011-04-28 21:15:30 +04:00
|
|
|
See the documentation at http://weasyprint.org/
|
|
|
|
|
2011-04-20 13:15:13 +04:00
|
|
|
"""
|
|
|
|
|
2012-02-07 19:11:38 +04:00
|
|
|
import re
|
|
|
|
from os import path
|
2011-10-10 17:20:26 +04:00
|
|
|
from setuptools import setup, find_packages
|
2011-04-20 13:15:13 +04:00
|
|
|
|
2012-02-14 15:49:33 +04:00
|
|
|
with open(path.join(path.dirname(__file__), 'weasyprint', '__init__.py')) as fd:
|
|
|
|
VERSION = re.search("VERSION = '([^']+)'", fd.read().strip()).group(1)
|
2012-02-07 19:11:38 +04:00
|
|
|
|
2011-04-20 13:15:13 +04:00
|
|
|
setup(
|
|
|
|
name='WeasyPrint',
|
2012-02-07 19:11:38 +04:00
|
|
|
version=VERSION,
|
2011-04-28 21:15:30 +04:00
|
|
|
url='http://weasyprint.org/',
|
2011-11-02 12:52:17 +04:00
|
|
|
license='GNU Affero General Public License v3',
|
2011-04-20 13:15:13 +04:00
|
|
|
description='WeasyPrint converts web documents to PDF.',
|
|
|
|
long_description=__doc__,
|
2011-11-02 12:52:17 +04:00
|
|
|
author='Simon Sapin',
|
|
|
|
author_email='simon.sapin@kozea.fr',
|
|
|
|
plateforms='Any',
|
|
|
|
classifiers=[
|
2011-12-08 20:13:12 +04:00
|
|
|
'Development Status :: 4 - Beta',
|
2011-11-02 12:52:17 +04:00
|
|
|
'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',
|
|
|
|
],
|
2011-10-10 17:20:26 +04:00
|
|
|
packages=find_packages(),
|
|
|
|
package_data={
|
2012-02-14 15:49:33 +04:00
|
|
|
'weasyprint.tests': ['resources/*'],
|
|
|
|
'weasyprint.css': ['*.css']},
|
2011-04-20 13:15:13 +04:00
|
|
|
zip_safe=False,
|
|
|
|
install_requires=[
|
2011-10-26 15:19:40 +04:00
|
|
|
# Keep this in sync with the "install" documentation
|
2011-04-21 12:24:21 +04:00
|
|
|
'lxml',
|
2012-02-01 13:50:04 +04:00
|
|
|
'cssutils>=0.9.9',
|
2011-08-19 17:50:03 +04:00
|
|
|
'PIL',
|
2012-01-30 20:23:25 +04:00
|
|
|
'CairoSVG>=0.3',
|
2011-10-26 15:19:40 +04:00
|
|
|
# Not installable by pip:
|
|
|
|
# Pango>=1.29.3
|
|
|
|
# PyGObject
|
|
|
|
# PyCairo
|
2011-04-20 13:15:13 +04:00
|
|
|
],
|
2011-04-21 12:24:21 +04:00
|
|
|
test_loader='attest:FancyReporter.test_loader',
|
2011-10-08 23:18:39 +04:00
|
|
|
test_suite='weasy.tests',
|
2011-09-02 19:56:52 +04:00
|
|
|
entry_points={
|
2011-08-09 14:45:51 +04:00
|
|
|
'console_scripts': [
|
2012-02-14 15:49:33 +04:00
|
|
|
'weasyprint = weasyprint.__main__:main',
|
2011-08-09 14:45:51 +04:00
|
|
|
],
|
2011-10-10 18:39:41 +04:00
|
|
|
},
|
|
|
|
use_2to3=True
|
2011-04-20 13:15:13 +04:00
|
|
|
)
|