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")
20 if os.environ.get('ARVADOS_BUILDING_VERSION', False):
21 pysdk_dep = "=={}".format(version)
23 # On dev releases, arvados-python-client may have a different timestamp
24 pysdk_dep = "<={}".format(version)
26 short_tests_only = False
27 if '--short-tests-only' in sys.argv:
28 short_tests_only = True
29 sys.argv.remove('--short-tests-only')
31 setup(name='arvados-pam',
33 description='Arvados PAM module',
34 long_description=open(README).read(),
36 author_email='info@arvados.org',
37 url='https://arvados.org',
38 download_url='https://github.com/curoverse/arvados.git',
46 ('lib/security', ['lib/libpam_arvados.py']),
47 ('share/pam-configs', ['pam-configs/arvados']),
48 ('share/doc/arvados-pam', ['LICENSE-2.0.txt', 'README.rst']),
49 ('share/doc/arvados-pam/examples', glob.glob('examples/*')),
52 'arvados-python-client{}'.format(pysdk_dep),
55 tests_require=['pbr<1.7.0', 'mock>=1.0', 'python-pam'],