-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
57 lines (51 loc) · 1.87 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
57
# -*- coding: utf-8 -*-
from __future__ import print_function
VERSION = "3.3.1"
from setuptools import setup, find_packages
import os
import sys
# 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("### could not open file: %r" % file_path, file=sys.stderr)
return content
setup(
name='pi-appliance',
version=VERSION,
description='Appliance package for privacyIDEA: identity, multifactor authentication, '
'authorization, audit',
author='privacyidea.org',
license='AGPL v3',
author_email='[email protected]',
url='http://www.privacyidea.org',
install_requires=['pythondialog;python_version>="3.0"',
'python2-pythondialog;python_version<"3.0"',
'netaddr',
'paramiko>=2.4.2',
'pyparsing',
'six',
'configobj'
],
scripts=['authappliance/pi-appliance',
'tools/pi-appliance-update'],
packages=find_packages(),
keyword="OTP Appliance",
include_package_data=True,
classifiers=["License :: OSI Approved :: "
"GNU Affero General Public License v3",
"Programming Language :: Python",
"Development Status :: 5 - Production/Stable",
"Topic :: Internet",
"Topic :: Security",
"Topic :: System ::"
" Systems Administration :: Authentication/Directory"
],
zip_safe=False,
long_description=get_file_contents('README.md')
)