8784: Fix test for latest firefox.
[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           # The arvados build scripts used to install data files to
42           # "/usr/data/*" but now install them to "/usr/*". Here, we
43           # install an extra copy in the old location so existing pam
44           # configs can still work. When old systems have had a chance
45           # to update to the new paths, this line can be removed.
46           ('data/lib/security', ['lib/libpam_arvados.py']),
47       ],
48       install_requires=[
49           'arvados-python-client>=0.1.20150801000000',
50       ],
51       test_suite='tests',
52       tests_require=['pbr<1.7.0', 'mock>=1.0', 'python-pam'],
53       zip_safe=False,
54       cmdclass={'egg_info': tagger},
55       )