1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
|
# -*- coding: utf-8 -*-
import os
from setuptools import find_packages
from setuptools import setup
def read(*rnames):
with open(os.path.join(os.path.dirname(__file__), *rnames)) as fh:
return fh.read()
setup(
name='rst2pdf',
python_requires='>=3.8',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
package_dir={'': '.'},
package_data={
'rst2pdf': [
'styles/*.json',
'styles/*.yaml',
'images/*png',
'images/*jpg',
'templates/*tmpl',
],
},
dependency_links=[],
use_scm_version=True,
install_requires=[
'docutils',
'importlib_metadata',
'jinja2',
'packaging',
'pygments',
'pyyaml',
'reportlab',
'smartypants',
],
extras_require={
'aafiguresupport': ['aafigure'],
'mathsupport': ['matplotlib'],
'plantumlsupport': ['plantuml'],
'rawhtmlsupport': ['xhtml2pdf'],
'sphinx': ['sphinx'],
'svgsupport': ['svglib'],
'tests': ['pymupdf', 'pytest'],
},
# metadata for upload to PyPI
# Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Topic :: Documentation',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Text Processing',
'Topic :: Utilities',
],
author='rst2pdf maintainers',
author_email='maintainers@rstpdf.org',
description='Convert reStructured Text to PDF via ReportLab.',
long_description=read('README.rst'),
long_description_content_type='text/x-rst',
license='MIT',
keywords='restructured convert rst pdf docutils pygments reportlab',
url='https://rst2pdf.org',
project_urls={
'Bug Reports': 'https://github.com/rst2pdf/rst2pdf/issues',
'Source': 'https://github.com/rst2pdf/rst2pdf',
},
download_url='https://github.com/rst2pdf/rst2pdf/releases',
entry_points={'console_scripts': ['rst2pdf = rst2pdf.createpdf:main']},
)
|