13200: format gitinfo on all the services
[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 import os
7 import sys
8 import setuptools.command.egg_info as egg_info_cmd
9
10 from setuptools import setup, find_packages
11
12 tagger = egg_info_cmd.egg_info
13 version = os.environ.get("ARVADOS_BUILDING_VERSION")
14 if not version:
15     try:
16         import arvados_version
17         vtag = arvados_version.VersionInfoFromGit()
18         version = vtag.git_latest_tag() + vtag.git_timestamp_tag()
19     except ImportError:
20         pass
21
22 setup(name="arvados-docker-cleaner",
23       version=version,
24       description="Arvados Docker cleaner",
25       author="Arvados",
26       author_email="info@arvados.org",
27       url="https://arvados.org",
28       download_url="https://github.com/curoverse/arvados.git",
29       license="GNU Affero General Public License version 3.0",
30       packages=find_packages(),
31       entry_points={
32           'console_scripts': ['arvados-docker-cleaner=arvados_docker.cleaner:main'],
33       },
34       data_files=[
35           ('share/doc/arvados-docker-cleaner', ['agpl-3.0.txt', 'arvados-docker-cleaner.service']),
36       ],
37       install_requires=[
38           'docker-py==1.7.2',
39           'setuptools',
40       ],
41       tests_require=[
42           'pbr<1.7.0',
43           'mock',
44       ],
45       test_suite='tests',
46       zip_safe=False,
47       cmdclass={'egg_info': tagger},
48 )