12216: Allow Content-Type header via CORS.
[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 try:
19     import gittaggers
20     tagger = gittaggers.EggInfoFromGit
21 except (ImportError, OSError):
22     pass
23
24 setup(name='arvados-pam',
25       version='0.1',
26       description='Arvados PAM module',
27       long_description=open(README).read(),
28       author='Arvados',
29       author_email='info@arvados.org',
30       url='https://arvados.org',
31       download_url='https://github.com/curoverse/arvados.git',
32       license='Apache 2.0',
33       packages=[
34           'arvados_pam',
35       ],
36       scripts=[
37       ],
38       data_files=[
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/*')),
43
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']),
50       ],
51       install_requires=[
52           'arvados-python-client>=0.1.20150801000000',
53       ],
54       test_suite='tests',
55       tests_require=['pbr<1.7.0', 'mock>=1.0', 'python-pam'],
56       zip_safe=False,
57       cmdclass={'egg_info': tagger},
58       )