-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
54 lines (47 loc) · 1.44 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
"""
sphinx-json-schema
JSON Schema renderer for Sphinx
"""
from setuptools import setup, find_packages
import os
PACKAGE = 'sphinx_json_schema'
# credentials
AUTHOR = 'Thomas Khyn'
AUTHOR_EMAIL = 'thomas@ksytek.com'
URL = 'https://github.com/tkhyn/sphinx-json-schema/'
# imports __version__ and __version_info__ variables
exec(open('sphinx_json_schema/version.py').read())
dev_status = __version_info__[3]
if dev_status == 'alpha' and not __version_info__[4]:
dev_status = 'pre'
DEV_STATUS = {'pre': '2 - Pre-Alpha',
'alpha': '3 - Alpha',
'beta': '4 - Beta',
'rc': '4 - Beta',
'final': '5 - Production/Stable'}
setup(
name=PACKAGE,
version=__version__,
description='JSON Schema renderer for Sphinx',
long_description=open(os.path.join('README.rst')).read(),
author=AUTHOR,
author_email=AUTHOR_EMAIL,
url=URL,
keywords=['sphinx', 'json', 'schema'],
classifiers=[
'Programming Language :: Python :: 3',
'Development Status :: %s' % DEV_STATUS[dev_status],
'License :: OSI Approved :: MIT License',
'Environment :: Plugins',
'Framework :: Sphinx :: Extension',
'Intended Audience :: Developers',
'Topic :: Software Development :: Documentation',
'Topic :: Documentation :: Sphinx'
],
packages=find_packages(),
install_requires=(
'sphinx',
'jsonpointer'
),
zip_safe=True
)