-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
51 lines (48 loc) · 1.8 KB
/
setup.py
File metadata and controls
51 lines (48 loc) · 1.8 KB
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
from setuptools import setup, find_packages
from xml.dom.minidom import parse
import os
ex_req = []
# a hack because redhat setuptools can't detect m2crypto
if not os.path.exists('/etc/redhat-release'):
ex_req.append('M2Crypto')
# 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
setup(name='gsindl',
version=version,
description="Library to assist GSI authentication and certificate handling in python.",
long_description=".. contents::\n\n" +
open(os.path.join("docs", "introduction.rst")).read() + "\n" +
open(os.path.join("docs", "changes.rst")).read(),
# Get more strings from http://www.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
"Programming Language :: Python",
"Topic :: Software Development :: Libraries :: Python Modules",
"License :: OSI Approved :: GNU General Public License (GPL)",
"Topic :: Security :: Cryptography",
"Intended Audience :: Developers",
"Topic :: System :: Distributed Computing",
],
keywords='',
author='Russell Sim',
author_email='russell.sim@gmail.com',
url='https://github.com/russell/gsindl',
download_url='',
license='GPL',
packages=find_packages('src/main/python', exclude=['ez_setup']),
package_dir = {'': 'src/main/python'},
include_package_data=True,
zip_safe=False,
install_requires=[
'setuptools',
# -*- Extra requirements: -*-
] + ex_req,
entry_points="""
# -*- Entry points: -*-
[console_scripts]
proxy-init = gsindl.proxyinit:main
""",
)