~ubuntu-branches/ubuntu/precise/keystone/precise-security

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2011-08-23 10:18:22 UTC
  • Revision ID: james.westby@ubuntu.com-20110823101822-enve6zceb3lqhuvj
Tags: upstream-1.0~d4~20110823.1078
ImportĀ upstreamĀ versionĀ 1.0~d4~20110823.1078

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/python
 
2
# Copyright (c) 2010-2011 OpenStack, LLC.
 
3
#
 
4
# Licensed under the Apache License, Version 2.0 (the "License");
 
5
# you may not use this file except in compliance with the License.
 
6
# You may obtain a copy of the License at
 
7
#
 
8
#    http://www.apache.org/licenses/LICENSE-2.0
 
9
#
 
10
# Unless required by applicable law or agreed to in writing, software
 
11
# distributed under the License is distributed on an "AS IS" BASIS,
 
12
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
 
13
# implied.
 
14
# See the License for the specific language governing permissions and
 
15
# limitations under the License.
 
16
 
 
17
from setuptools import setup, find_packages
 
18
 
 
19
version = '1.0'
 
20
 
 
21
cmdclass = {}
 
22
 
 
23
# If Sphinx is installed on the box running setup.py,
 
24
# enable setup.py to build the documentation, otherwise,
 
25
# just ignore it
 
26
try:
 
27
    from sphinx.setup_command import BuildDoc
 
28
 
 
29
    class local_BuildDoc(BuildDoc):
 
30
        def run(self):
 
31
            for builder in ['html', 'man']:
 
32
                self.builder = builder
 
33
                self.finalize_options()
 
34
                BuildDoc.run(self)
 
35
    cmdclass['build_sphinx'] = local_BuildDoc
 
36
 
 
37
except:
 
38
    pass
 
39
 
 
40
setup(
 
41
    name='keystone',
 
42
    version=version,
 
43
    description="Authentication service - proposed for OpenStack",
 
44
    license='Apache License (2.0)',
 
45
    classifiers=["Programming Language :: Python"],
 
46
    keywords='identity auth authentication openstack',
 
47
    author='OpenStack, LLC.',
 
48
    author_email='openstack@lists.launchpad.net',
 
49
    url='http://www.openstack.org',
 
50
    include_package_data=True,
 
51
    packages=find_packages(exclude=['test', 'bin']),
 
52
    scripts=['bin/keystone', 'bin/keystone-auth', 'bin/keystone-admin',
 
53
             'bin/keystone-manage'],
 
54
    zip_safe=False,
 
55
    cmdclass=cmdclass,
 
56
    install_requires=['setuptools'],
 
57
    test_suite='nose.collector',
 
58
    entry_points={
 
59
        'paste.app_factory': ['main=identity:app_factory'],
 
60
        'paste.filter_factory': [
 
61
            'extfilter=keystone.middleware.url:filter_factory',
 
62
            'remoteauth=keystone.middleware.remoteauth:remoteauth_factory',
 
63
            'tokenauth=keystone.middleware.auth_token:filter_factory',
 
64
            'swiftauth=keystone.middleware.swift_auth:filter_factory',
 
65
            ],
 
66
        },
 
67
    )