Release 0.20.1
[docutils.git] / docutils / setup.py
blob1c0ad7e6d29023a9d1aaa38a095f0d996bde8262
1 #!/usr/bin/env python3
2 # $Id$
3 # Copyright: This file has been placed in the public domain.
5 import sys
7 try:
8 from setuptools import setup
9 except ImportError:
10 print("""\
11 Error: The "setuptools" module, which is required for the
12 installation of Docutils, could not be found.
14 You may install it with `python -m pip install setuptools`
15 or from a package called "python-setuptools" (or similar)
16 using your system\'s package manager.
18 Alternatively, install a release from PyPi with
19 `python -m pip install docutils`.'
21 If all this fails, try a "manual install".
22 https://docutils.sourceforge.io/docs/dev/repository.html#install-manually
23 """)
24 sys.exit(1)
27 package_data = {
28 'name': 'docutils',
29 'description': 'Docutils -- Python Documentation Utilities',
30 'long_description': """\
31 Docutils is a modular system for processing documentation
32 into useful formats, such as HTML, XML, and LaTeX. For
33 input Docutils supports reStructuredText, an easy-to-read,
34 what-you-see-is-what-you-get plaintext markup syntax.""", # wrap at col 60
35 'url': 'https://docutils.sourceforge.io/',
36 'version': '0.20.1',
37 'author': 'David Goodger',
38 'author_email': 'goodger@python.org',
39 'maintainer': 'docutils-develop list',
40 'maintainer_email': 'docutils-develop@lists.sourceforge.net',
41 'license': 'public domain, Python, 2-Clause BSD, GPL 3 (see COPYING.txt)',
42 'platforms': 'OS-independent',
43 'python_requires': '>=3.7',
44 'include_package_data': True,
45 'exclude_package_data': {"": ["docutils.conf"]},
46 'package_dir': {
47 'docutils': 'docutils',
48 'docutils.tools': 'tools'
50 'packages': [
51 'docutils',
52 'docutils.languages',
53 'docutils.parsers',
54 'docutils.parsers.rst',
55 'docutils.parsers.rst.directives',
56 'docutils.parsers.rst.include',
57 'docutils.parsers.rst.languages',
58 'docutils.readers',
59 'docutils.transforms',
60 'docutils.utils',
61 'docutils.utils.math',
62 'docutils.writers',
63 'docutils.writers.html4css1',
64 'docutils.writers.html5_polyglot',
65 'docutils.writers.pep_html',
66 'docutils.writers.s5_html',
67 'docutils.writers.s5_html.themes',
68 'docutils.writers.s5_html.themes.default',
69 'docutils.writers.latex2e',
70 'docutils.writers.xetex',
71 'docutils.writers.odf_odt',
73 'entry_points': {
74 'console_scripts': ['docutils=docutils.__main__:main']
76 'scripts': [
77 'tools/rst2html.py',
78 'tools/rst2html4.py',
79 'tools/rst2html5.py',
80 'tools/rst2s5.py',
81 'tools/rst2latex.py',
82 'tools/rst2xetex.py',
83 'tools/rst2man.py',
84 'tools/rst2xml.py',
85 'tools/rst2pseudoxml.py',
86 'tools/rstpep2html.py',
87 'tools/rst2odt.py',
88 'tools/rst2odt_prepstyles.py',
90 'classifiers': [
91 'Development Status :: 4 - Beta',
92 'Environment :: Console',
93 'Intended Audience :: End Users/Desktop',
94 'Intended Audience :: Other Audience',
95 'Intended Audience :: Developers',
96 'Intended Audience :: System Administrators',
97 'License :: Public Domain',
98 'License :: OSI Approved :: Python Software Foundation License',
99 'License :: OSI Approved :: BSD License',
100 'License :: OSI Approved :: GNU General Public License (GPL)',
101 'Operating System :: OS Independent',
102 'Programming Language :: Python :: 3',
103 'Programming Language :: Python :: 3.7',
104 'Programming Language :: Python :: 3.8',
105 'Programming Language :: Python :: 3.9',
106 'Programming Language :: Python :: 3.10',
107 'Programming Language :: Python :: 3.11',
108 'Topic :: Documentation',
109 'Topic :: Software Development :: Documentation',
110 'Topic :: Text Processing',
111 'Natural Language :: English', # main/default language, keep first
112 'Natural Language :: Afrikaans',
113 'Natural Language :: Arabic',
114 'Natural Language :: Catalan',
115 'Natural Language :: Chinese (Simplified)',
116 'Natural Language :: Chinese (Traditional)',
117 'Natural Language :: Czech',
118 'Natural Language :: Danish',
119 'Natural Language :: Dutch',
120 'Natural Language :: Esperanto',
121 'Natural Language :: Finnish',
122 'Natural Language :: French',
123 'Natural Language :: Galician',
124 'Natural Language :: German',
125 'Natural Language :: Hebrew',
126 'Natural Language :: Italian',
127 'Natural Language :: Japanese',
128 'Natural Language :: Korean',
129 'Natural Language :: Latvian',
130 'Natural Language :: Lithuanian',
131 'Natural Language :: Persian',
132 'Natural Language :: Polish',
133 'Natural Language :: Portuguese (Brazilian)',
134 'Natural Language :: Russian',
135 'Natural Language :: Slovak',
136 'Natural Language :: Spanish',
137 'Natural Language :: Swedish',
138 'Natural Language :: Ukrainian',
141 """Distutils setup parameters."""
144 def do_setup():
145 # Install data files properly.
146 return setup(**package_data)
149 if __name__ == '__main__':
150 do_setup()