Merge branch '20447-less-table-locking'
[arvados.git] / services / dockercleaner / setup.py
1 #!/usr/bin/env python3
2 # Copyright (C) The Arvados Authors. All rights reserved.
3 #
4 # SPDX-License-Identifier: AGPL-3.0
5
6 from __future__ import absolute_import
7 import os
8 import sys
9 import re
10
11 from setuptools import setup, find_packages
12
13 SETUP_DIR = os.path.dirname(__file__) or '.'
14 README = os.path.join(SETUP_DIR, 'README.rst')
15
16 import arvados_version
17 version = arvados_version.get_version(SETUP_DIR, "arvados_docker")
18
19 short_tests_only = False
20 if '--short-tests-only' in sys.argv:
21     short_tests_only = True
22     sys.argv.remove('--short-tests-only')
23
24 setup(name="arvados-docker-cleaner",
25       version=version,
26       description="Arvados Docker cleaner",
27       author="Arvados",
28       author_email="info@arvados.org",
29       url="https://arvados.org",
30       download_url="https://github.com/arvados/arvados.git",
31       license="GNU Affero General Public License version 3.0",
32       packages=find_packages(),
33       entry_points={
34           'console_scripts': ['arvados-docker-cleaner=arvados_docker.cleaner:main'],
35       },
36       data_files=[
37           ('share/doc/arvados-docker-cleaner', ['agpl-3.0.txt', 'arvados-docker-cleaner.service']),
38       ],
39       install_requires=[
40           'docker-py==1.7.2',
41           'setuptools',
42       ],
43       tests_require=[
44           'pbr<1.7.0',
45           'mock',
46       ],
47       test_suite='tests',
48       zip_safe=False
49 )