Adding MANIFEST.in, test-requirements.txt, tox.ini to pass gate

Change-Id: I7e05401b1f6b46829d8ab64fe3580b16719ec5f3
This commit is contained in:
Nathan Buckner 2015-09-28 16:18:25 -05:00
parent 93203f5810
commit 11bb15178c
8 changed files with 36 additions and 7 deletions

4
.gitreview Normal file
View File

@ -0,0 +1,4 @@
[gerrit]
host=review.openstack.org
port=29418
project=openstack/syntribos

1
MANIFEST.in Normal file
View File

@ -0,0 +1 @@
include README.md LICENSE pip-requires HISTORY.rst

View File

@ -1 +1 @@
opencafe
opencafe>=0.2.1,<0.2.2

View File

@ -14,22 +14,24 @@ See the License for the specific language governing permissions and
limitations under the License.
"""
from setuptools import setup, find_packages
import os
requires = open('pip-requires').readlines()
base_path = os.path.dirname(os.path.abspath(__file__))
requires = open(os.path.join(base_path, 'pip-requires')).readlines()
setup(
name='syntribos',
version='0.0.1',
description=('API Security Scanner'),
long_description='{0}\n\n{1}'.format(
open('README.md').read(),
open('HISTORY.rst').read()),
open(os.path.join(base_path, 'README.md')).read(),
open(os.path.join(base_path, 'HISTORY.rst')).read()),
author='Rackspace Cloud QE',
author_email='nathan.buckner@rackspace.com',
packages=find_packages(),
include_package_data=True,
install_requires=requires,
license=open('LICENSE').read(),
license=open(os.path.join(base_path, 'LICENSE')).read(),
zip_safe=False,
entry_points={'console_scripts': [
'syntribos = syntribos.runner:entry_point']},

View File

@ -40,7 +40,7 @@ class RequestCreator(object):
break
method, url, params, version = cls._parse_url_line(lines[0], endpoint)
headers = cls._parse_headers(lines[1:index])
data = cls._parse_data(lines[index+1:])
data = cls._parse_data(lines[index + 1:])
return cls.request_model_type(
method=method, url=url, headers=headers, params=params, data=data,
action_field=action_field)

View File

@ -49,7 +49,7 @@ class FuzzMixin(object):
start, stop = match.span()
yield "{0}{1}{2}".format(
cls.remove_braces(data[:start]),
string, cls.remove_braces(data[stop+1:]))
string, cls.remove_braces(data[stop + 1:]))
@classmethod
def _build_combinations(cls, stri, dic, skip_var):

2
test-requirements.txt Normal file
View File

@ -0,0 +1,2 @@
flake8>=2.2.4,<=2.4.1
nose

20
tox.ini Normal file
View File

@ -0,0 +1,20 @@
[tox]
envlist=pep8,py27,py34
[testenv]
setenv=VIRTUAL_ENV={envdir}
deps=-r{toxinidir}/pip-requires
-r{toxinidir}/test-requirements.txt
[testenv:py27]
commands=nosetests
[testenv:py34]
commands=nosetests
[testenv:pep8]
commands=flake8
[flake8]
ignore=F401,E402