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
18 version = os.environ.get("ARVADOS_BUILDING_VERSION")
23 tagger = gittaggers.EggInfoFromGit
27 setup(name='arvados-pam',
29 description='Arvados PAM module',
30 long_description=open(README).read(),
32 author_email='info@arvados.org',
33 url='https://arvados.org',
34 download_url='https://github.com/curoverse/arvados.git',
42 ('lib/security', ['lib/libpam_arvados.py']),
43 ('share/pam-configs', ['pam-configs/arvados']),
44 ('share/doc/arvados-pam', ['LICENSE-2.0.txt', 'README.rst']),
45 ('share/doc/arvados-pam/examples', glob.glob('examples/*')),
47 # The arvados build scripts used to install data files to
48 # "/usr/data/*" but now install them to "/usr/*". Here, we
49 # install an extra copy in the old location so existing pam
50 # configs can still work. When old systems have had a chance
51 # to update to the new paths, this line can be removed.
52 ('data/lib/security', ['lib/libpam_arvados.py']),
55 'arvados-python-client>=0.1.20150801000000',
58 tests_require=['pbr<1.7.0', 'mock>=1.0', 'python-pam'],
60 cmdclass={'egg_info': tagger},