1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
# Copyright 2010 Canonical Ltd. This software is licensed under the
# GNU Affero General Public License version 3 (see the file LICENSE).
import os
from setuptools import setup
# This function was taken from the django project.
# Please see the license file in the third-party/django directory.
def fullsplit(path, result=None):
"""
Split a pathname into components (the opposite of os.path.join) in a
platform-neutral way.
"""
if result is None:
result = []
head, tail = os.path.split(path)
if head == '':
return [tail] + result
if head == path:
return result
return fullsplit(head, [tail] + result)
data_files = []
packages = []
for dirpath, dirnames, filenames in os.walk('identityprovider'):
# Ignore dirnames that start with '.'
for i, dirname in enumerate(dirnames):
if dirname.startswith('.'):
del dirnames[i]
if '__init__.py' in filenames:
packages.append('.'.join(fullsplit(dirpath)))
elif filenames:
data_files.append([os.path.join('share', dirpath),
[os.path.join(dirpath, f) for f in filenames]])
tests_require = [
'BeautifulSoup==3.1.0.1',
'NoseDjango==0.8.1',
'nosexcover',
'coverage==3.4',
'mock==0.6.0',
'wsgiref==0.1.2',
'wsgi-intercept==0.4',
'zope.testbrowser==3.5.1',
'httplib2==0.6.0',
]
setup(
name="canonical-identity-provider",
version="11.03",
author="Canonical ISD Hackers",
author_email="canonical-isd@lists.launchpad.net",
license="AGPLv3",
zip_safe=False,
packages=packages,
package_data={
'identityprovider.webservice': ['site.zcml'],
},
data_files=data_files,
entry_points={
'console_scripts': 'sso-account-merge = identityprovider.bin.accounts_merge:main'
},
install_requires=[
# These are the core requirements, pinned to versions available on
# Lucid.
'Django==1.3',
'South==0.6',
'configglue==0.10',
'django-configglue==0.4',
# need to install it via requirements.txt until a release is made:
#'django-oauth-backend',
'django-openid-auth==0.2',
'django-preflight==0.1',
# PyPi calls upstream's 1.0a "1.0.1" maybe because it doesn't
# understand letters in version strings. Lucid's package uses "1.0a"
# as upstream does.
'oauth>=1.0a,<=1.0.1',
'psycopg2==2.0.13',
'python-memcached==1.44',
'python-openid==2.2.4',
'django-piston',
'gargoyle',
],
tests_require=tests_require,
extras_require={'test': tests_require},
dependency_links=[
'http://initd.org/pub/software/psycopg/PSYCOPG-2-0/',
],
)
|