6934: Load config from pam conf instead of yaml. Add docker/integration tests and...
[arvados.git] / sdk / pam / setup.py
1 #!/usr/bin/env python
2
3 import os
4 import sys
5 import setuptools.command.egg_info as egg_info_cmd
6 import subprocess
7
8 from setuptools import setup, find_packages
9
10 SETUP_DIR = os.path.dirname(__file__) or '.'
11 README = os.path.join(SETUP_DIR, 'README.rst')
12
13 tagger = egg_info_cmd.egg_info
14 try:
15     import gittaggers
16     if subprocess.check_call(['git', 'log', '-n1']):
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       install_requires=[
36           'arvados-python-client>=0.1.20150801000000',
37       ],
38       test_suite='tests',
39       tests_require=['mock>=1.0', 'python-pam'],
40       zip_safe=False,
41       cmdclass={'egg_info': tagger},
42       )