Adding MANIFEST.in, test-requirements.txt, tox.ini to pass gate
Change-Id: I7e05401b1f6b46829d8ab64fe3580b16719ec5f3
This commit is contained in:
parent
93203f5810
commit
11bb15178c
|
@ -0,0 +1,4 @@
|
||||||
|
[gerrit]
|
||||||
|
host=review.openstack.org
|
||||||
|
port=29418
|
||||||
|
project=openstack/syntribos
|
|
@ -0,0 +1 @@
|
||||||
|
include README.md LICENSE pip-requires HISTORY.rst
|
|
@ -1 +1 @@
|
||||||
opencafe
|
opencafe>=0.2.1,<0.2.2
|
||||||
|
|
10
setup.py
10
setup.py
|
@ -14,22 +14,24 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
"""
|
"""
|
||||||
from setuptools import setup, find_packages
|
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(
|
setup(
|
||||||
name='syntribos',
|
name='syntribos',
|
||||||
version='0.0.1',
|
version='0.0.1',
|
||||||
description=('API Security Scanner'),
|
description=('API Security Scanner'),
|
||||||
long_description='{0}\n\n{1}'.format(
|
long_description='{0}\n\n{1}'.format(
|
||||||
open('README.md').read(),
|
open(os.path.join(base_path, 'README.md')).read(),
|
||||||
open('HISTORY.rst').read()),
|
open(os.path.join(base_path, 'HISTORY.rst')).read()),
|
||||||
author='Rackspace Cloud QE',
|
author='Rackspace Cloud QE',
|
||||||
author_email='nathan.buckner@rackspace.com',
|
author_email='nathan.buckner@rackspace.com',
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
install_requires=requires,
|
install_requires=requires,
|
||||||
license=open('LICENSE').read(),
|
license=open(os.path.join(base_path, 'LICENSE')).read(),
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
entry_points={'console_scripts': [
|
entry_points={'console_scripts': [
|
||||||
'syntribos = syntribos.runner:entry_point']},
|
'syntribos = syntribos.runner:entry_point']},
|
||||||
|
|
|
@ -40,7 +40,7 @@ class RequestCreator(object):
|
||||||
break
|
break
|
||||||
method, url, params, version = cls._parse_url_line(lines[0], endpoint)
|
method, url, params, version = cls._parse_url_line(lines[0], endpoint)
|
||||||
headers = cls._parse_headers(lines[1:index])
|
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(
|
return cls.request_model_type(
|
||||||
method=method, url=url, headers=headers, params=params, data=data,
|
method=method, url=url, headers=headers, params=params, data=data,
|
||||||
action_field=action_field)
|
action_field=action_field)
|
||||||
|
|
|
@ -49,7 +49,7 @@ class FuzzMixin(object):
|
||||||
start, stop = match.span()
|
start, stop = match.span()
|
||||||
yield "{0}{1}{2}".format(
|
yield "{0}{1}{2}".format(
|
||||||
cls.remove_braces(data[:start]),
|
cls.remove_braces(data[:start]),
|
||||||
string, cls.remove_braces(data[stop+1:]))
|
string, cls.remove_braces(data[stop + 1:]))
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _build_combinations(cls, stri, dic, skip_var):
|
def _build_combinations(cls, stri, dic, skip_var):
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
flake8>=2.2.4,<=2.4.1
|
||||||
|
nose
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue