pegleg/setup.py
Ian H. Pittwood fff70ad861 Refactors pegleg CLI to use single commands
Debugging pegleg can currently be difficult and the Click CLI does not
easily allow debuggers like pdb or PyCharm to use breakpoints. By moving
all CLI command calls into singular functions, we can easily create an
"if __name__ == '__main__'" entry point to call these functions and
investigate any bugs that may arise.

We also gain the ability to reuse more portions of our code by
refactoring these methods.

Change-Id: Ia9739931273eb6458f82dbb7e702a505ae397ae3
2019-12-17 19:32:28 +00:00

41 lines
1.3 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='pegleg',
python_requires='>=3.5.0',
version='0.1.0',
description=('Pegleg is a document aggregator that provides early '
'linting and validations via Deckhand, a document '
'management micro-service within Airship.'),
url='https://opendev.org/airship/pegleg',
author='The Airship Authors',
license='Apache 2.0',
packages=find_packages(),
entry_points={
'console_scripts': [
'pegleg=pegleg.cli.commands:main',
]},
include_package_data=True,
package_dir={'pegleg': 'pegleg'},
package_data={
'pegleg': [
'schemas/*.yaml',
],
},
)