2 # Copyright (C) The Arvados Authors. All rights reserved.
4 # SPDX-License-Identifier: Apache-2.0
9 import setuptools.command.egg_info as egg_info_cmd
12 from setuptools import setup, find_packages
14 SETUP_DIR = os.path.dirname(__file__) or '.'
15 README = os.path.join(SETUP_DIR, 'README.rst')
17 tagger = egg_info_cmd.egg_info
20 tagger = gittaggers.EggInfoFromGit
21 except (ImportError, OSError):
24 setup(name='arvados-pam',
26 description='Arvados PAM module',
27 long_description=open(README).read(),
29 author_email='info@arvados.org',
30 url='https://arvados.org',
31 download_url='https://github.com/curoverse/arvados.git',
39 ('lib/security', ['lib/libpam_arvados.py']),
40 ('share/pam-configs', ['pam-configs/arvados']),
41 ('share/doc/arvados-pam', ['LICENSE-2.0.txt', 'README.rst']),
42 ('share/doc/arvados-pam/examples', glob.glob('examples/*')),
44 # The arvados build scripts used to install data files to
45 # "/usr/data/*" but now install them to "/usr/*". Here, we
46 # install an extra copy in the old location so existing pam
47 # configs can still work. When old systems have had a chance
48 # to update to the new paths, this line can be removed.
49 ('data/lib/security', ['lib/libpam_arvados.py']),
52 'arvados-python-client>=0.1.20150801000000',
55 tests_require=['pbr<1.7.0', 'mock>=1.0', 'python-pam'],
57 cmdclass={'egg_info': tagger},