2 # Copyright (C) The Arvados Authors. All rights reserved.
4 # SPDX-License-Identifier: Apache-2.0
6 from __future__ import absolute_import
13 from setuptools import setup, find_packages
15 SETUP_DIR = os.path.dirname(__file__) or '.'
16 README = os.path.join(SETUP_DIR, 'README.rst')
18 import arvados_version
19 version = arvados_version.get_version(SETUP_DIR, "arvados_pam")
21 short_tests_only = False
22 if '--short-tests-only' in sys.argv:
23 short_tests_only = True
24 sys.argv.remove('--short-tests-only')
26 setup(name='arvados-pam',
28 description='Arvados PAM module',
29 long_description=open(README).read(),
31 author_email='info@arvados.org',
32 url='https://arvados.org',
33 download_url='https://github.com/curoverse/arvados.git',
41 ('lib/security', ['lib/libpam_arvados.py']),
42 ('share/pam-configs', ['pam-configs/arvados']),
43 ('share/doc/arvados-pam', ['LICENSE-2.0.txt', 'README.rst']),
44 ('share/doc/arvados-pam/examples', glob.glob('examples/*')),
46 # The arvados build scripts used to install data files to
47 # "/usr/data/*" but now install them to "/usr/*". Here, we
48 # install an extra copy in the old location so existing pam
49 # configs can still work. When old systems have had a chance
50 # to update to the new paths, this line can be removed.
51 ('data/lib/security', ['lib/libpam_arvados.py']),
54 'arvados-python-client>=0.1.20150801000000',
57 tests_require=['pbr<1.7.0', 'mock>=1.0', 'python-pam'],