
Final set of changes to remove the diffs carried to make UFO work with OpenStack Swift. The code is now a complete layering on top of OpenStack Swift where we either "monkey patch" or subclass as necessary. See BZ 870589 (https://bugzilla.redhat.com/show_bug.cgi?id=870589). There are a lot of changes here due for the most part to rearranging the directory hierarchy to have create a proper python module hierarchy under the "gluster" namespace. Plugin references have been removed. The differences that used to be in the swift.diff file are now replaced with server implementations for account, container, object, and proxy that subclass the swift versions. Additionally, the plugins/conf directory has been moved to the "etc" directory, and the plugins/bin directory promoted a level. Unit tests pass. A new setup.py file is provided so that the install process can use it for creating all the necessary python install infrastructure (eggs and paste support). A new RPM spec file is provided which to properly install the new code, and the sample configuration files have been modified to reference the new python egg. Change-Id: I4316c1b66dca80f847fe9b0d583174689c175599 BUG: 870589 Signed-off-by: Peter Portante <peter.portante@redhat.com> Reviewed-on: http://review.gluster.org/4180 Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com> Reviewed-by: Mohammed Junaid <junaid@redhat.com> Tested-by: Kaleb KEITHLEY <kkeithle@redhat.com>
58 lines
1.9 KiB
Python
58 lines
1.9 KiB
Python
#!/usr/bin/python
|
|
# Copyright (c) 2012 Red Hat, Inc.
|
|
#
|
|
# 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, find_packages
|
|
|
|
from gluster.swift import __canonical_version__ as version
|
|
|
|
|
|
name = 'gluster_swift_ufo'
|
|
|
|
|
|
setup(
|
|
name=name,
|
|
version=version,
|
|
description='Gluster Swift/UFO',
|
|
license='Apache License (2.0)',
|
|
author='Red Hat, Inc.',
|
|
author_email='gluster-users@gluster.org',
|
|
url='https://gluster.org/',
|
|
packages=find_packages(exclude=['test', 'bin']),
|
|
test_suite='nose.collector',
|
|
classifiers=[
|
|
'Development Status :: 4 - Beta',
|
|
'License :: OSI Approved :: Apache Software License',
|
|
'Operating System :: POSIX :: Linux',
|
|
'Programming Language :: Python :: 2.6',
|
|
'Environment :: No Input/Output (Daemon)',
|
|
],
|
|
install_requires=[], # removed for better compat
|
|
scripts=[
|
|
'bin/gluster-swift-gen-builders',
|
|
],
|
|
entry_points={
|
|
'paste.app_factory': [
|
|
'proxy=gluster.swift.proxy.server:app_factory',
|
|
'object=gluster.swift.obj.server:app_factory',
|
|
'container=gluster.swift.container.server:app_factory',
|
|
'account=gluster.swift.account.server:app_factory',
|
|
],
|
|
'paste.filter_factory': [
|
|
'gluster=gluster.swift.common.middleware.gluster:filter_factory',
|
|
],
|
|
},
|
|
)
|