forked from oriordan/yubistack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
61 lines (55 loc) · 2.13 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
58
59
60
61
#!/usr/bin/python
"""
A setuptools based setup module for YubiStack
"""
from setuptools import setup, find_packages
from os import path
import re
here = path.abspath(path.dirname(__file__))
def get_version():
""" Read the current version from __init__.py """
with open('yubistack/__init__.py', 'rb') as initfile:
for line in initfile.readlines():
match = re.match(r"^__version__\s*=\s*['\"](.+)['\"]$", line.decode('utf-8'))
if match:
return match.group(1)
raise RuntimeError("Unable to find version string.")
def get_long_description():
""" Return the content of README """
with open('README', 'rb') as readmefile:
return readmefile.read().decode('utf-8')
setup(
name='yubistack',
version=get_version(),
description='YubiStack implementation',
long_description=get_long_description(),
url='https://github.com/oriordan/yubistack',
license='BSD 2 clause',
author="Doug O'Riordan",
author_email='[email protected]',
packages=['yubistack'],
include_package_data=True,
data_files=[('/etc/yubico/yubistack.conf')],
install_requires=['passlib', 'pycrypto', 'requests', 'secretsharing'],
keywords='yubikey otp authentication',
classifiers=[
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Topic :: Security :: Cryptography',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: WSGI :: Application',
'Topic :: Software Development :: Build Tools',
'Topic :: Software Development :: Libraries :: Python Modules'
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)