9799: Merge branch 'master' into 9799-nonadmin-logs
[arvados.git] / sdk / pam / setup.py
1 #!/usr/bin/env python
2
3 import glob
4 import os
5 import sys
6 import setuptools.command.egg_info as egg_info_cmd
7 import subprocess
8
9 from setuptools import setup, find_packages
10
11 SETUP_DIR = os.path.dirname(__file__) or '.'
12 README = os.path.join(SETUP_DIR, 'README.rst')
13
14 tagger = egg_info_cmd.egg_info
15 try:
16     import gittaggers
17     tagger = gittaggers.EggInfoFromGit
18 except (ImportError, OSError):
19     pass
20
21 setup(name='arvados-pam',
22       version='0.1',
23       description='Arvados PAM module',
24       long_description=open(README).read(),
25       author='Arvados',
26       author_email='info@arvados.org',
27       url='https://arvados.org',
28       download_url='https://github.com/curoverse/arvados.git',
29       license='Apache 2.0',
30       packages=[
31           'arvados_pam',
32       ],
33       scripts=[
34       ],
35       data_files=[
36           ('lib/security', ['lib/libpam_arvados.py']),
37           ('share/pam-configs', ['pam-configs/arvados']),
38           ('share/doc/arvados-pam', ['LICENSE-2.0.txt', 'README.rst']),
39           ('share/doc/arvados-pam/examples', glob.glob('examples/*')),
40       ],
41       install_requires=[
42           'arvados-python-client>=0.1.20150801000000',
43       ],
44       test_suite='tests',
45       tests_require=['pbr<1.7.0', 'mock>=1.0', 'python-pam'],
46       zip_safe=False,
47       cmdclass={'egg_info': tagger},
48       )