6 import setuptools.command.egg_info as egg_info_cmd
9 from setuptools import setup, find_packages
11 SETUP_DIR = os.path.dirname(__file__) or '.'
12 README = os.path.join(SETUP_DIR, 'README.rst')
14 tagger = egg_info_cmd.egg_info
17 tagger = gittaggers.EggInfoFromGit
18 except (ImportError, OSError):
21 setup(name='arvados-pam',
23 description='Arvados PAM module',
24 long_description=open(README).read(),
26 author_email='info@arvados.org',
27 url='https://arvados.org',
28 download_url='https://github.com/curoverse/arvados.git',
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/*')),
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']),
49 'arvados-python-client>=0.1.20150801000000',
52 tests_require=['pbr<1.7.0', 'mock>=1.0', 'python-pam'],
54 cmdclass={'egg_info': tagger},