Merge branch '12414-delete-trashed-project-contents'
[arvados.git] / tools / crunchstat-summary / setup.py
1 #!/usr/bin/env python
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 SETUP_DIR = os.path.dirname(__file__) or '.'
13
14 tagger = egg_info_cmd.egg_info
15 version = os.environ.get("ARVADOS_BUILDING_VERSION")
16 if not version:
17     try:
18         import arvados_version
19         vtag = arvados_version.VersionInfoFromGit()
20         version = vtag.git_latest_tag() + vtag.git_timestamp_tag()
21     except ImportError:
22         pass
23
24
25 setup(name='crunchstat_summary',
26       version=version,
27       description='read crunch log files and summarize resource usage',
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='GNU Affero General Public License, version 3.0',
33       packages=['crunchstat_summary'],
34       include_package_data=True,
35       scripts=[
36           'bin/crunchstat-summary'
37       ],
38       data_files=[
39           ('share/doc/crunchstat_summary', ['agpl-3.0.txt']),
40       ],
41       install_requires=[
42           'arvados-python-client',
43       ],
44       test_suite='tests',
45       tests_require=['pbr<1.7.0', 'mock>=1.0'],
46       zip_safe=False,
47       cmdclass={'egg_info': tagger},
48       )