0de2e55b13
* append appropriate urls when scaffolding * make dispatch for rest-api * fix dispatch for rest-json * fix moto/core/response to obtain path and body parameters * small fixes * remove unused import * fix get_int_param * Add features of things and thing-types * fix scaffold * basic crud of cert * support basic CRUD of policy * refactor * fix formatting of scaffold * support principal_pocicy * support thing_principal * update readme * escape service to handle service w/ hyphen like iot-data * escape service w/ hyphen * fix regexp to extract region from url * escape service * Implement basic iota-data feature * iot-data shadow delta * update readme * remove unused import * remove comment * fix syntax * specify region when creating boto3 client for test * use uuid for seed of generating cert id * specify region_name to iotdata client in test * specify region to boto3 client in moto response * excude iot and iotdata tests on server mode * fix handling of thingTypeName in describe-thing * test if server is up for iot
71 lines
1.9 KiB
Python
Executable File
71 lines
1.9 KiB
Python
Executable File
#!/usr/bin/env python
|
|
from __future__ import unicode_literals
|
|
import setuptools
|
|
from setuptools import setup, find_packages
|
|
import sys
|
|
|
|
|
|
install_requires = [
|
|
"Jinja2>=2.8",
|
|
"boto>=2.36.0",
|
|
"boto3>=1.2.1",
|
|
"botocore>=1.7.12",
|
|
"cookies",
|
|
"cryptography>=2.0.0",
|
|
"requests>=2.5",
|
|
"xmltodict",
|
|
"six>1.9",
|
|
"werkzeug",
|
|
"pyaml",
|
|
"pytz",
|
|
"python-dateutil<3.0.0,>=2.1",
|
|
"mock",
|
|
"docker>=2.5.1",
|
|
"jsondiff==1.1.1",
|
|
"aws-xray-sdk>=0.93",
|
|
]
|
|
|
|
extras_require = {
|
|
'server': ['flask'],
|
|
}
|
|
|
|
# https://hynek.me/articles/conditional-python-dependencies/
|
|
if int(setuptools.__version__.split(".", 1)[0]) < 18:
|
|
if sys.version_info[0:2] < (3, 3):
|
|
install_requires.append("backports.tempfile")
|
|
else:
|
|
extras_require[":python_version<'3.3'"] = ["backports.tempfile"]
|
|
|
|
|
|
setup(
|
|
name='moto',
|
|
version='1.1.24',
|
|
description='A library that allows your python tests to easily'
|
|
' mock out the boto library',
|
|
author='Steve Pulec',
|
|
author_email='spulec@gmail.com',
|
|
url='https://github.com/spulec/moto',
|
|
entry_points={
|
|
'console_scripts': [
|
|
'moto_server = moto.server:main',
|
|
],
|
|
},
|
|
packages=find_packages(exclude=("tests", "tests.*")),
|
|
install_requires=install_requires,
|
|
extras_require=extras_require,
|
|
include_package_data=True,
|
|
license="Apache",
|
|
test_suite="tests",
|
|
classifiers=[
|
|
"Programming Language :: Python :: 2",
|
|
"Programming Language :: Python :: 2.7",
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3.3",
|
|
"Programming Language :: Python :: 3.4",
|
|
"Programming Language :: Python :: 3.5",
|
|
"Programming Language :: Python :: 3.6",
|
|
"License :: OSI Approved :: Apache Software License",
|
|
"Topic :: Software Development :: Testing",
|
|
],
|
|
)
|