-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 1897ed2
Showing
7 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
build/ | ||
dist/ | ||
*.egg-info/ | ||
__pycache__/ | ||
*.pyc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
graft requires |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
sphinx-swagger | ||
============== | ||
|
||
Generates a swagger API definition directly from `httpdomain`_ based | ||
documentation. | ||
|
||
.. _httpdomain: https://pythonhosted.org/sphinxcontrib-httpdomain/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-r installation.txt | ||
wheel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Sphinx>=1.4,<2 | ||
sphinxcontrib.httpdomain==1.5.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/env python | ||
|
||
import os.path | ||
|
||
import setuptools | ||
|
||
import sphinxswagger | ||
|
||
|
||
def read_requirements(name): | ||
requirements = [] | ||
with open(os.path.join('requires', name)) as req_file: | ||
for line in req_file: | ||
if '#' in line: | ||
line = line[:line.index('#')] | ||
line = line.strip() | ||
if line.startswith('-r'): | ||
requirements.extend(read_requirements(line[2:].strip())) | ||
elif line and not line.startswith('-'): | ||
requirements.append(line) | ||
return requirements | ||
|
||
|
||
setuptools.setup( | ||
name='sphinx-swagger', | ||
version=sphinxswagger.__version__, | ||
description='Generate swagger definitions from sphinx docs', | ||
long_description='\n'+open('README.rst').read(), | ||
author='Dave Shawley', | ||
author_email='[email protected]', | ||
packages=setuptools.find_packages(), | ||
install_requires=read_requirements('installation.txt'), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
version_info = (0, 0, 0) | ||
__version__ = '.'.join(str(v) for v in version_info) |