73fb88e931
PEP8 E126 wants continued strings to line up vertically, totally destroying the readability and visual indication of the beginning of a string in a list * Ignore PEP8 E126 in order to indent the entry point strings in a readable manner. * Sort the enrty point command strings by object then verb. * Bring other ignores from run_tests.sh to tox.ini Change-Id: I2593de7d6c058322101bc68636317cdba29fe664
239 lines
11 KiB
Python
239 lines
11 KiB
Python
# Copyright 2012-2013 OpenStack, LLC.
|
|
#
|
|
# 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.
|
|
#
|
|
|
|
import os
|
|
|
|
import setuptools
|
|
|
|
from openstackclient.openstack.common import setup
|
|
|
|
|
|
project = "python-openstackclient"
|
|
requires = setup.parse_requirements()
|
|
dependency_links = setup.parse_dependency_links()
|
|
|
|
|
|
def read(fname):
|
|
return open(os.path.join(os.path.dirname(__file__), fname)).read()
|
|
|
|
|
|
setuptools.setup(
|
|
name=project,
|
|
version=setup.get_version(project),
|
|
description="OpenStack command-line client",
|
|
long_description=read('README.rst'),
|
|
url='https://github.com/openstack/python-openstackclient',
|
|
license="Apache License, Version 2.0",
|
|
author='OpenStack Client Contributors',
|
|
author_email='openstack@lists.launchpad.net',
|
|
packages=setuptools.find_packages(exclude=['tests', 'tests.*']),
|
|
classifiers=[
|
|
'Development Status :: 2 - Pre-Alpha',
|
|
'Environment :: Console',
|
|
'Environment :: OpenStack',
|
|
'Intended Audience :: Developers',
|
|
'Intended Audience :: Information Technology',
|
|
'License :: OSI Approved :: Apache Software License',
|
|
'Operating System :: OS Independent',
|
|
'Programming Language :: Python',
|
|
],
|
|
install_requires=requires,
|
|
dependency_links=dependency_links,
|
|
cmdclass=setup.get_cmdclass(),
|
|
entry_points={
|
|
'console_scripts': ['openstack=openstackclient.shell:main'],
|
|
'openstack.cli': [
|
|
],
|
|
'openstack.identity.v2_0': [
|
|
'create_endpoint='
|
|
'openstackclient.identity.v2_0.endpoint:CreateEndpoint',
|
|
'delete_endpoint='
|
|
'openstackclient.identity.v2_0.endpoint:DeleteEndpoint',
|
|
'list_endpoint='
|
|
'openstackclient.identity.v2_0.endpoint:ListEndpoint',
|
|
'show_endpoint='
|
|
'openstackclient.identity.v2_0.endpoint:ShowEndpoint',
|
|
|
|
'add_role='
|
|
'openstackclient.identity.v2_0.role:AddRole',
|
|
'create_role='
|
|
'openstackclient.identity.v2_0.role:CreateRole',
|
|
'delete_role='
|
|
'openstackclient.identity.v2_0.role:DeleteRole',
|
|
'list_role=openstackclient.identity.v2_0.role:ListRole',
|
|
'remove_role='
|
|
'openstackclient.identity.v2_0.role:RemoveRole',
|
|
'show_role=openstackclient.identity.v2_0.role:ShowRole',
|
|
|
|
'create_service='
|
|
'openstackclient.identity.v2_0.service:CreateService',
|
|
'delete_service='
|
|
'openstackclient.identity.v2_0.service:DeleteService',
|
|
'list_service=openstackclient.identity.v2_0.service:ListService',
|
|
'show_service=openstackclient.identity.v2_0.service:ShowService',
|
|
|
|
'create_tenant='
|
|
'openstackclient.identity.v2_0.tenant:CreateTenant',
|
|
'delete_tenant='
|
|
'openstackclient.identity.v2_0.tenant:DeleteTenant',
|
|
'list_tenant=openstackclient.identity.v2_0.tenant:ListTenant',
|
|
'set_tenant=openstackclient.identity.v2_0.tenant:SetTenant',
|
|
'show_tenant=openstackclient.identity.v2_0.tenant:ShowTenant',
|
|
|
|
'list_user-role=openstackclient.identity.v2_0.role:ListUserRole',
|
|
|
|
'create_user='
|
|
'openstackclient.identity.v2_0.user:CreateUser',
|
|
'delete_user='
|
|
'openstackclient.identity.v2_0.user:DeleteUser',
|
|
'list_user=openstackclient.identity.v2_0.user:ListUser',
|
|
'set_user=openstackclient.identity.v2_0.user:SetUser',
|
|
'show_user=openstackclient.identity.v2_0.user:ShowUser',
|
|
],
|
|
'openstack.identity.v3': [
|
|
'create_credential='
|
|
'openstackclient.identity.v3.credential:CreateCredential',
|
|
'delete_credential='
|
|
'openstackclient.identity.v3.credential:DeleteCredential',
|
|
'list_credential='
|
|
'openstackclient.identity.v3.credential:ListCredential',
|
|
'set_credential='
|
|
'openstackclient.identity.v3.credential:SetCredential',
|
|
'show_credential='
|
|
'openstackclient.identity.v3.credential:ShowCredential',
|
|
|
|
'create_domain=openstackclient.identity.v3.domain:CreateDomain',
|
|
'delete_domain=openstackclient.identity.v3.domain:DeleteDomain',
|
|
'list_domain=openstackclient.identity.v3.domain:ListDomain',
|
|
'set_domain=openstackclient.identity.v3.domain:SetDomain',
|
|
'show_domain=openstackclient.identity.v3.domain:ShowDomain',
|
|
|
|
'create_endpoint='
|
|
'openstackclient.identity.v3.endpoint:CreateEndpoint',
|
|
'delete_endpoint='
|
|
'openstackclient.identity.v3.endpoint:DeleteEndpoint',
|
|
'set_endpoint=openstackclient.identity.v3.endpoint:SetEndpoint',
|
|
'show_endpoint=openstackclient.identity.v3.endpoint:ShowEndpoint',
|
|
'list_endpoint=openstackclient.identity.v3.endpoint:ListEndpoint',
|
|
|
|
'create_group=openstackclient.identity.v3.group:CreateGroup',
|
|
'delete_group=openstackclient.identity.v3.group:DeleteGroup',
|
|
'list_group=openstackclient.identity.v3.group:ListGroup',
|
|
'set_group=openstackclient.identity.v3.group:SetGroup',
|
|
'show_group=openstackclient.identity.v3.group:ShowGroup',
|
|
|
|
'create_project='
|
|
'openstackclient.identity.v3.project:CreateProject',
|
|
'delete_project='
|
|
'openstackclient.identity.v3.project:DeleteProject',
|
|
'list_project=openstackclient.identity.v3.project:ListProject',
|
|
'set_project=openstackclient.identity.v3.project:SetProject',
|
|
'show_project=openstackclient.identity.v3.project:ShowProject',
|
|
|
|
'add_role=openstackclient.identity.v3.role:AddRole',
|
|
'create_role='
|
|
'openstackclient.identity.v3.role:CreateRole',
|
|
'delete_role='
|
|
'openstackclient.identity.v3.role:DeleteRole',
|
|
'list_role=openstackclient.identity.v3.role:ListRole',
|
|
'show_role=openstackclient.identity.v3.role:ShowRole',
|
|
'set_role=openstackclient.identity.v3.role:SetRole',
|
|
|
|
'create_service='
|
|
'openstackclient.identity.v3.service:CreateService',
|
|
'delete_service='
|
|
'openstackclient.identity.v3.service:DeleteService',
|
|
'list_service=openstackclient.identity.v3.service:ListService',
|
|
'show_service=openstackclient.identity.v3.service:ShowService',
|
|
'set_service=openstackclient.identity.v3.service:SetService',
|
|
|
|
'create_user='
|
|
'openstackclient.identity.v3.user:CreateUser',
|
|
'delete_user='
|
|
'openstackclient.identity.v3.user:DeleteUser',
|
|
'list_user=openstackclient.identity.v3.user:ListUser',
|
|
'set_user=openstackclient.identity.v3.user:SetUser',
|
|
'show_user=openstackclient.identity.v3.user:ShowUser',
|
|
],
|
|
'openstack.image.v2': [
|
|
'list_image=openstackclient.image.v2.image:ListImage',
|
|
'save_image=openstackclient.image.v2.image:SaveImage',
|
|
'show_image=openstackclient.image.v2.image:ShowImage',
|
|
],
|
|
'openstack.compute.v2': [
|
|
'create_agent=openstackclient.compute.v2.agent:CreateAgent',
|
|
'delete_agent=openstackclient.compute.v2.agent:DeleteAgent',
|
|
'list_agent=openstackclient.compute.v2.agent:ListAgent',
|
|
'set_agent=openstackclient.compute.v2.agent:SetAgent',
|
|
|
|
'list_compute-service='
|
|
'openstackclient.compute.v2.service:ListService',
|
|
'set_compute-service='
|
|
'openstackclient.compute.v2.service:SetService',
|
|
|
|
'create_flavor=openstackclient.compute.v2.flavor:CreateFlavor',
|
|
'delete_flavor=openstackclient.compute.v2.flavor:DeleteFlavor',
|
|
'list_flavor=openstackclient.compute.v2.flavor:ListFlavor',
|
|
'show_flavor=openstackclient.compute.v2.flavor:ShowFlavor',
|
|
|
|
'list_host=openstackclient.compute.v2.host:ListHost',
|
|
'show_host=openstackclient.compute.v2.host:ShowHost',
|
|
|
|
'list_hypervisor='
|
|
'openstackclient.compute.v2.hypervisor:ListHypervisor',
|
|
'show_hypervisor='
|
|
'openstackclient.compute.v2.hypervisor:ShowHypervisor',
|
|
|
|
'create_server=openstackclient.compute.v2.server:CreateServer',
|
|
'delete_server=openstackclient.compute.v2.server:DeleteServer',
|
|
'list_server=openstackclient.compute.v2.server:ListServer',
|
|
'pause_server=openstackclient.compute.v2.server:PauseServer',
|
|
'reboot_server=openstackclient.compute.v2.server:RebootServer',
|
|
'rebuild_server=openstackclient.compute.v2.server:RebuildServer',
|
|
'resume_server=openstackclient.compute.v2.server:ResumeServer',
|
|
'show_server=openstackclient.compute.v2.server:ShowServer',
|
|
'suspend_server=openstackclient.compute.v2.server:SuspendServer',
|
|
'unpause_server=openstackclient.compute.v2.server:UnpauseServer',
|
|
],
|
|
'openstack.volume.v1': [
|
|
'list_quota=openstackclient.volume.v1.quota:ListQuota',
|
|
'set_quota=openstackclient.volume.v1.quota:SetQuota',
|
|
'show_quota=openstackclient.volume.v1.quota:ShowQuota',
|
|
|
|
'create_snapshot='
|
|
'openstackclient.volume.v1.snapshot:CreateSnapshot',
|
|
'delete_snapshot='
|
|
'openstackclient.volume.v1.snapshot:DeleteSnapshot',
|
|
'list_snapshot=openstackclient.volume.v1.snapshot:ListSnapshot',
|
|
'set_snapshot=openstackclient.volume.v1.snapshot:SetSnapshot',
|
|
'show_snapshot=openstackclient.volume.v1.snapshot:ShowSnapshot',
|
|
|
|
'create_volume=openstackclient.volume.v1.volume:CreateVolume',
|
|
'delete_volume=openstackclient.volume.v1.volume:DeleteVolume',
|
|
'list_volume=openstackclient.volume.v1.volume:ListVolume',
|
|
'set_volume=openstackclient.volume.v1.volume:SetVolume',
|
|
'show_volume=openstackclient.volume.v1.volume:ShowVolume',
|
|
|
|
'create_volume-type='
|
|
'openstackclient.volume.v1.type:CreateVolumeType',
|
|
'delete_volume-type='
|
|
'openstackclient.volume.v1.type:DeleteVolumeType',
|
|
'list_volume-type=openstackclient.volume.v1.type:ListVolumeType',
|
|
'set_volume-type=openstackclient.volume.v1.type:SetVolumeType',
|
|
'unset_volume-type=openstackclient.volume.v1.type:UnsetVolumeType',
|
|
]
|
|
}
|
|
)
|