X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/001a60dff02545c2d2476a437b1846c9ae633941..2e69cb93d03c8ff6ec3c06985a00443625e3932c:/tools/crunchstat-summary/setup.py diff --git a/tools/crunchstat-summary/setup.py b/tools/crunchstat-summary/setup.py index 0965faea83..d5adc92367 100755 --- a/tools/crunchstat-summary/setup.py +++ b/tools/crunchstat-summary/setup.py @@ -1,34 +1,25 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright (C) The Arvados Authors. All rights reserved. # # SPDX-License-Identifier: AGPL-3.0 import os import sys -import setuptools.command.egg_info as egg_info_cmd +import re from setuptools import setup, find_packages -SETUP_DIR = os.path.dirname(__file__) or '.' - -tagger = egg_info_cmd.egg_info -version = os.environ.get("ARVADOS_BUILDING_VERSION") -if not version: - try: - import arvados_version - vtag = arvados_version.VersionInfoFromGit() - version = vtag.git_latest_tag() + vtag.git_timestamp_tag() - except ImportError: - pass - +import arvados_version +version = arvados_version.get_version() +README = os.path.join(arvados_version.SETUP_DIR, 'README.rst') setup(name='crunchstat_summary', version=version, - description='read crunch log files and summarize resource usage', + description='Arvados crunchstat-summary reads crunch log files and summarizes resource usage', author='Arvados', author_email='info@arvados.org', url="https://arvados.org", - download_url="https://github.com/curoverse/arvados.git", + download_url="https://github.com/arvados/arvados.git", license='GNU Affero General Public License, version 3.0', packages=['crunchstat_summary'], include_package_data=True, @@ -39,10 +30,9 @@ setup(name='crunchstat_summary', ('share/doc/crunchstat_summary', ['agpl-3.0.txt']), ], install_requires=[ - 'arvados-python-client', + *arvados_version.iter_dependencies(version), ], + python_requires="~=3.8", test_suite='tests', - tests_require=['pbr<1.7.0', 'mock>=1.0'], zip_safe=False, - cmdclass={'egg_info': tagger}, - ) +)