forked from privacyidea/privacyideaadm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
39 lines (33 loc) · 1.17 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
# -*- coding: utf-8 -*-
from distutils.core import setup
import os
import sys
#VERSION="2.1dev4"
VERSION = "2.15"
# Taken from kennethreitz/requests/setup.py
package_directory = os.path.realpath(os.path.dirname(__file__))
def get_file_contents(file_path):
"""Get the context of the file using full path name."""
content = ""
try:
full_path = os.path.join(package_directory, file_path)
content = open(full_path, 'r').read()
except:
print >> sys.stderr, "### could not open file %r" % file_path
return content
setup(name='privacyideaadm',
version=VERSION,
description='privacyIDEA admin Client',
author='Cornelius Kölbel',
author_email='[email protected]',
url='http://www.privacyidea.org',
packages=['privacyideautils'],
install_requires=["requests", "pysqlite"],
scripts=['scripts/privacyidea',
'scripts/privacyidea-luks-assign',
'scripts/privacyidea-authorizedkeys'],
# install_requires=['usb'],
data_files=[('share/man/man1', ["doc/_build/man/privacyidea.1"])],
license='AGPLv3',
long_description=get_file_contents('DESCRIPTION')
)