1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-05 08:27:22 +03:00
WeasyPrint/setup.py

62 lines
1.7 KiB
Python
Raw Normal View History

2011-04-20 13:15:13 +04:00
"""
WeasyPrint
----------
WeasyPrint converts web documents (HTML, CSS, SVG, ...) to PDF.
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
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,
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={
'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
'lxml',
2012-02-01 13:50:04 +04:00
'cssutils>=0.9.9',
2011-08-19 17:50:03 +04:00
'PIL',
'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
],
test_loader='attest:FancyReporter.test_loader',
2011-10-08 23:18:39 +04:00
test_suite='weasy.tests',
entry_points={
2011-08-09 14:45:51 +04:00
'console_scripts': [
'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
)