Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
*.egg-info/
*.egg
*.egg*
*.pyc
.coverage
.tox/
build/
cover/
dist/
4 changes: 4 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
include README.md
exclude .gitignore

global-exclude *.pyc
2 changes: 0 additions & 2 deletions build/.gitignore

This file was deleted.

44 changes: 25 additions & 19 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,33 @@
# swagger-py documentation build configuration file, created by
# sphinx-quickstart on Wed Oct 16 09:33:48 2013.
#
# This file is execfile()d with the current directory set to its containing dir.
# This file is execfile()d with the current directory set to its containing
# dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values have a default; values that are commented out
# serve to show the default.

import sys, os

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#sys.path.insert(0, os.path.abspath('.'))

# -- General configuration -----------------------------------------------------
# -- General configuration ----------------------------------------------------

# If your documentation needs a minimal Sphinx version, state it here.
#needs_sphinx = '1.0'

# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.todo']
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.doctest',
'sphinx.ext.intersphinx',
'sphinx.ext.todo'
]

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
Expand Down Expand Up @@ -66,7 +70,8 @@
# directories to ignore when looking for source files.
exclude_patterns = []

# The reST default role (used for this markup: `text`) to use for all documents.
# The reST default role (used for this markup: `text`) to use for all
# documents.
#default_role = None

# If true, '()' will be appended to :func: etc. cross-reference text.
Expand All @@ -87,7 +92,7 @@
#modindex_common_prefix = []


# -- Options for HTML output ---------------------------------------------------
# -- Options for HTML output --------------------------------------------------

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
Expand Down Expand Up @@ -167,9 +172,8 @@
htmlhelp_basename = 'swagger-pydoc'


# -- Options for LaTeX output --------------------------------------------------
# -- Options for LaTeX output -------------------------------------------------

latex_elements = {
# The paper size ('letterpaper' or 'a4paper').
#'papersize': 'letterpaper',

Expand All @@ -178,13 +182,15 @@

# Additional stuff for the LaTeX preamble.
#'preamble': '',
latex_elements = {
}

# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, documentclass [howto/manual]).
# (source start file, target name, title, author, documentclass
# [howto/manual]).
latex_documents = [
('index', 'swagger-py.tex', u'swagger-py Documentation',
u'Digium, Inc.', 'manual'),
('index', 'swagger-py.tex', u'swagger-py Documentation',
u'Digium, Inc.', 'manual'),
]

# The name of an image file (relative to this directory) to place at the top of
Expand All @@ -208,7 +214,7 @@
#latex_domain_indices = True


# -- Options for manual page output --------------------------------------------
# -- Options for manual page output -------------------------------------------

# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
Expand All @@ -221,15 +227,15 @@
#man_show_urls = False


# -- Options for Texinfo output ------------------------------------------------
# -- Options for Texinfo output -----------------------------------------------

# Grouping the document tree into Texinfo files. List of tuples
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
('index', 'swagger-py', u'swagger-py Documentation',
u'Digium, Inc.', 'swagger-py', 'One line description of project.',
'Miscellaneous'),
('index', 'swagger-py', u'swagger-py Documentation',
u'Digium, Inc.', 'swagger-py', 'One line description of project.',
'Miscellaneous'),
]

# Documents to append as an appendix to all manuals.
Expand Down
13 changes: 0 additions & 13 deletions nose.cfg

This file was deleted.

2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
requests
websocket-client
5 changes: 4 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@
description-file = README.md

[nosetests]
config = nose.cfg
cover-package = swaggerpy
cover-html = true
cover-erase = true
verbosity=2
3 changes: 0 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@
"Operating System :: OS Independent",
"Programming Language :: Python",
],
setup_requires=["nose>=1.3", "tissue"],
tests_require=["coverage", "httpretty"],
install_requires=["requests", "websocket-client"],
entry_points="""
[console_scripts]
swagger-codegen = swaggerpy.codegen:main
Expand Down
4 changes: 4 additions & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
coverage
flake8
httpretty
nose>=1.3
23 changes: 23 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[tox]
envlist = py27,pep8

[testenv]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = nosetests {posargs}

[testenv:cover]
setenv = NOSE_WITH_COVERAGE=1

[testenv:pep8]
commands =
flake8

[testenv:venv]
commands = {posargs}

[flake8]
builtins = _
exclude = .git,.tox,dist,*lib/python*,*egg,build,tools
ignore = F401,F841
show-source = True