7da3790160
CloudRoast was initially written to support both setuptools and distutils. CloudRoast requires CloudCafe and OpenCafe, neither of which support distutils. If a user is able to install OpenCafe and CloudCafe, they will not require a workaround to install CloudRoast. Additionally the use of Distutils complicates the creation / instantiation of tests for the library. Change-Id: Ib2bbbf57832963695c7966aab64e717dca900ba7
79 lines
2.6 KiB
Python
79 lines
2.6 KiB
Python
"""
|
|
Copyright 2013 Rackspace
|
|
|
|
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 sys
|
|
|
|
from setuptools import setup, find_packages
|
|
from setuptools.command.install import install as _install
|
|
|
|
|
|
if sys.argv[-1] == 'publish':
|
|
os.system('python setup.py sdist upload')
|
|
sys.exit()
|
|
|
|
requires = open('pip-requires').readlines()
|
|
|
|
|
|
#Post-install engine configuration
|
|
def _post_install(dir):
|
|
print('\n'.join(["\t\t (----) (----)--)",
|
|
"\t\t (--(----) (----) --)",
|
|
"\t\t (----) (--(----) (----)",
|
|
"\t\t -----------------------",
|
|
"\t\t \ /",
|
|
"\t\t \ /",
|
|
"\t\t \_________________/",
|
|
"\t\t === CloudRoast ===",
|
|
"\t\t= A CloudCAFE Test Repository ="]))
|
|
|
|
|
|
#cmdclass hook allows setup to make post install call
|
|
class install(_install):
|
|
def run(self):
|
|
_install.run(self)
|
|
self.execute(
|
|
_post_install, (self.install_lib,),
|
|
msg="Running post install tasks...")
|
|
|
|
setup(
|
|
name='cloudroast',
|
|
version='0.0.1',
|
|
description='CloudCAFE based automated test repository for OpenStack',
|
|
long_description='{0}\n\n{1}'.format(
|
|
open('README.md').read(),
|
|
open('HISTORY.md').read()),
|
|
author='Rackspace Cloud QE',
|
|
author_email='cloud-cafe@lists.rackspace.com',
|
|
url='http://rackspace.com',
|
|
packages=find_packages(exclude=[]),
|
|
package_data={'': ['LICENSE', 'NOTICE']},
|
|
package_dir={'cloudroast': 'cloudroast'},
|
|
include_package_data=True,
|
|
install_requires=requires,
|
|
license=open('LICENSE').read(),
|
|
zip_safe=False,
|
|
classifiers=(
|
|
'Development Status :: 1 - Planning',
|
|
'Intended Audience :: Developers',
|
|
'Natural Language :: English',
|
|
'License :: Other/Proprietary License',
|
|
'Operating System :: POSIX :: Linux',
|
|
'Programming Language :: Python',
|
|
'Programming Language :: Python :: 2.6',
|
|
'Programming Language :: Python :: 2.7',),
|
|
cmdclass={'install': install})
|