-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
45 lines (41 loc) · 1.19 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
from setuptools import setup, find_packages
from sphinx_sql import __version__, __release__
cmdclass = {}
try:
from sphinx.setup_command import BuildDoc
cmdclass['build_sphinx'] = BuildDoc
except ImportError:
print("Warning: sphinx is not available, not building docs.")
with open('README.rst') as file:
long_description = file.read()
version = __version__
release = __release__
name = 'sphinx-sql'
setup(
name=name,
version=release,
packages=find_packages(),
url='https://github.com/jackscodemonkey/sphinx-sql',
license='MIT',
author='Marcus Robb',
description="Sphinx extension for autodoc of SQL files.",
long_description=long_description,
long_description_content_type="text/x-rst",
install_requires=[
'ddlparse',
'pytest',
'sphinx',
'sphinx_rtd_theme'
],
include_package_data=True,
cmdclass=cmdclass,
command_options={
'build_sphinx': {
'project': ('setup.py', name),
'version': ('setup.py', version),
'release': ('setup.py', release),
'source_dir': ('setup.py', 'docs/source'),
'build_dir': ('setup.py', 'docs/build')
}
}
)