1
# Copyright 2010 Canonical Ltd. This software is licensed under the
2
# GNU Affero General Public License version 3 (see the file LICENSE).
5
from setuptools import setup
8
# This function was taken from the django project.
9
# Please see the license file in the third-party/django directory.
10
def fullsplit(path, result=None):
12
Split a pathname into components (the opposite of os.path.join) in a
17
head, tail = os.path.split(path)
19
return [tail] + result
22
return fullsplit(head, [tail] + result)
26
for dirpath, dirnames, filenames in os.walk('identityprovider'):
27
# Ignore dirnames that start with '.'
28
for i, dirname in enumerate(dirnames):
29
if dirname.startswith('.'):
31
if '__init__.py' in filenames:
32
packages.append('.'.join(fullsplit(dirpath)))
34
data_files.append([os.path.join('share', dirpath),
35
[os.path.join(dirpath, f) for f in filenames]])
38
name="canonical-identity-provider",
41
author="Canonical ISD Hackers",
42
author_email="canonical-isd@lists.launchpad.net",
51
"django==1.0.2-final",
55
"lazr.restful==0.9.17",
56
"lazr.authentication",
59
data_files=data_files,
61
'identityprovider.webservice': ['site.zcml'],