
Spyglass was originally built with a web-based YAML editor. Unfortunately, the presence of the editor has caused some problems. It can cause the Docker container to freeze before creating the intermediary YAML file. The execution of the flask app is also the root cause for the Bandit B104 errors and B605 error. Since the target audience for Spyglass is developers, it can be assumed that they will have access to an editor with support for YAML files. Having a web-based version of the YAML editor is unnecessary and will just result in more code to maintain in the future. Removes the editor script from utils. Removes the yaml-editor entry point from the package. Removes references to the yaml-editor from the CLI and engine. Resolves all known Bandit errors. In the future, a pause in execution could be provided to allow users to make quick edits. Log messages could also notify users when a placeholder value is inserted in the intermediary so they can fix it. Change-Id: Ibc37e61f93b33904ea839e12fe5a8d586985e0b1
45 lines
1.4 KiB
Python
45 lines
1.4 KiB
Python
# Copyright 2018 AT&T Intellectual Property. All other rights reserved.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
from setuptools import setup
|
|
from setuptools import find_packages
|
|
|
|
setup(
|
|
name='spyglass',
|
|
version='0.0.1',
|
|
description='Generate Airship specific yaml manifests from data sources',
|
|
url='http://github.com/openstack/airship-spyglass',
|
|
python_requires='>=3.5.0',
|
|
license='Apache 2.0',
|
|
packages=find_packages(),
|
|
install_requires=[
|
|
'jsonschema',
|
|
'Click',
|
|
'openpyxl',
|
|
'netaddr',
|
|
'pyyaml',
|
|
'jinja2',
|
|
],
|
|
entry_points={
|
|
'console_scripts': [
|
|
'spyglass=spyglass.spyglass:main',
|
|
],
|
|
'data_extractor_plugins':
|
|
['formation=spyglass.data_extractor.plugins.formation:FormationPlugin',
|
|
'tugboat=spyglass.data_extractor.plugins.tugboat.tugboat:TugboatPlugin',
|
|
]
|
|
},
|
|
include_package_data=True,
|
|
)
|