-
-
Notifications
You must be signed in to change notification settings - Fork 34
/
setup.py
executable file
·73 lines (64 loc) · 2.46 KB
/
setup.py
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
#!/usr/bin/env python
import os
from setuptools import setup
def read(filename):
with open(os.path.join(os.path.dirname(__file__), filename)) as f:
return f.read()
def get_version(filename='src/restview/restviewhttp.py'):
for line in read(filename).splitlines():
if line.startswith('__version__'):
d = {}
exec(line, d)
return d['__version__']
raise AssertionError("couldn't find __version__ in %s" % filename)
version = get_version()
setup(
name='restview',
version=version,
author='Marius Gedminas',
author_email='marius@gedmin.as',
url='https://mg.pov.lt/restview/',
project_urls={
'Source': 'https://github.com/mgedmin/restview',
},
description='ReStructuredText viewer',
long_description=read('README.rst') + '\n\n' + read('CHANGES.rst'),
long_description_content_type='text/x-rst',
license='GPL-3.0-or-later',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Programming Language :: Python',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Operating System :: OS Independent',
'Topic :: Documentation',
'Topic :: Internet :: WWW/HTTP :: HTTP Servers',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Documentation',
'Topic :: Text Processing :: Markup',
],
keywords='rst restructuredtext preview',
packages=['restview'],
package_dir={'': 'src'},
package_data={'restview': ['*.css', '*.ico']},
include_package_data=True,
python_requires=">=3.7",
install_requires=['docutils', 'readme_renderer < 37', 'pygments'],
extras_require={'syntax': [], 'test': []},
zip_safe=False,
entry_points="""
[console_scripts]
restview = restview.restviewhttp:main
""",
)