~canonical-isd-hackers/canonical-identity-provider/sst-changes

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Danny Tamez
  • Date: 2010-04-21 15:29:24 UTC
  • Revision ID: danny.tamez@canonical.com-20100421152924-lq1m92tstk2iz75a
Canonical SSO Provider (Open Source) - Initial Commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright 2010 Canonical Ltd.  This software is licensed under the
 
2
# GNU Affero General Public License version 3 (see the file LICENSE).
 
3
 
 
4
import os
 
5
from setuptools import setup
 
6
 
 
7
 
 
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):
 
11
    """
 
12
    Split a pathname into components (the opposite of os.path.join) in a
 
13
    platform-neutral way.
 
14
    """
 
15
    if result is None:
 
16
        result = []
 
17
    head, tail = os.path.split(path)
 
18
    if head == '':
 
19
        return [tail] + result
 
20
    if head == path:
 
21
        return result
 
22
    return fullsplit(head, [tail] + result)
 
23
 
 
24
data_files = []
 
25
packages = []
 
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('.'):
 
30
            del dirnames[i]
 
31
    if '__init__.py' in filenames:
 
32
        packages.append('.'.join(fullsplit(dirpath)))
 
33
    elif filenames:
 
34
        data_files.append([os.path.join('share', dirpath),
 
35
                           [os.path.join(dirpath, f) for f in filenames]])
 
36
 
 
37
setup(
 
38
    name="canonical-identity-provider",
 
39
    version="2.3.2.dev3",
 
40
 
 
41
    author="Canonical ISD Hackers",
 
42
    author_email="canonical-isd@lists.launchpad.net",
 
43
 
 
44
    license="AGPLv3",
 
45
 
 
46
    packages=packages,
 
47
 
 
48
    zip_safe=False,
 
49
 
 
50
    install_requires=[
 
51
        "django==1.0.2-final",
 
52
        "pytz",
 
53
        "openid",
 
54
        "psycopg2>=2.0.9",
 
55
        "lazr.restful==0.9.17",
 
56
        "lazr.authentication",
 
57
    ],
 
58
 
 
59
    data_files=data_files,
 
60
    package_data={
 
61
        'identityprovider.webservice': ['site.zcml'],
 
62
    }
 
63
)