-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
56 lines (50 loc) · 1.73 KB
/
setup.py
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
from setuptools import setup, find_packages
from xml.dom.minidom import parse
from os import path
import sys
# Get version from common file
pom = parse('pom.xml')
for t in pom.getElementsByTagName('project')[0].childNodes:
if t.nodeName == 'version':
version = t.childNodes[0].nodeValue.rstrip('-SNAPSHOT')
break
extra_deps = []
if sys.version_info[0] == 2:
if sys.version_info[1] < 6:
extra_deps.append('httpsproxy-urllib2')
setup(name='sibboleth',
version=version,
description="Shibboleth authentication handler",
long_description=".. contents::\n\n" + \
open(path.join("docs", "intro.rst")).read() + "\n" + \
open(path.join("docs", "history.rst")).read(),
# Get more strings from
# http://www.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
"Programming Language :: Python",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Systems Administration :: Authentication/Directory",
],
keywords='jython',
author='Russell Sim',
author_email='[email protected]',
url='https://github.com/grith/sibboleth',
license='GPL',
packages=find_packages('src/main/python', exclude=['ez_setup']),
package_dir={'': 'src/main/python'},
test_suite="sibboleth.tests",
include_package_data=True,
zip_safe=False,
install_requires=[
'setuptools',
'lxml',
'BeautifulSoup',
# -*- Extra requirements: -*-
] + extra_deps,
entry_points="""
# -*- Entry points: -*-
[console_scripts]
shib-login = sibboleth.client.shiblogin:main
shib-logout = sibboleth.client.shiblogout:main
""",
)