12902: Update state=Final when cancelling a container request.
[arvados.git] / sdk / pam / setup.py
1 #!/usr/bin/env python
2 # Copyright (C) The Arvados Authors. All rights reserved.
3 #
4 # SPDX-License-Identifier: Apache-2.0
5
6 import glob
7 import os
8 import sys
9 import setuptools.command.egg_info as egg_info_cmd
10 import subprocess
11
12 from setuptools import setup, find_packages
13
14 SETUP_DIR = os.path.dirname(__file__) or '.'
15 README = os.path.join(SETUP_DIR, 'README.rst')
16
17 tagger = egg_info_cmd.egg_info
18 version = os.environ.get("ARVADOS_BUILDING_VERSION")
19 if not version:
20     version = "0.1"
21     try:
22         import gittaggers
23         tagger = gittaggers.EggInfoFromGit
24     except ImportError:
25         pass
26
27 setup(name='arvados-pam',
28       version=version,
29       description='Arvados PAM module',
30       long_description=open(README).read(),
31       author='Arvados',
32       author_email='info@arvados.org',
33       url='https://arvados.org',
34       download_url='https://github.com/curoverse/arvados.git',
35       license='Apache 2.0',
36       packages=[
37           'arvados_pam',
38       ],
39       scripts=[
40       ],
41       data_files=[
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/*')),
46
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']),
53       ],
54       install_requires=[
55           'arvados-python-client>=0.1.20150801000000',
56       ],
57       test_suite='tests',
58       tests_require=['pbr<1.7.0', 'mock>=1.0', 'python-pam'],
59       zip_safe=False,
60       cmdclass={'egg_info': tagger},
61       )