X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/ab052248e5637d7d0a3ad8636dfd1b674a2ccc45..a93ef946eb1e73ee190ea4ff19c4f9278235530c:/sdk/python/setup.py diff --git a/sdk/python/setup.py b/sdk/python/setup.py index 88bf51e8a8..5e066f0145 100644 --- a/sdk/python/setup.py +++ b/sdk/python/setup.py @@ -3,24 +3,18 @@ # # SPDX-License-Identifier: Apache-2.0 +from __future__ import absolute_import 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 '.' README = os.path.join(SETUP_DIR, 'README.rst') -tagger = egg_info_cmd.egg_info -version = os.environ.get("ARVADOS_BUILDING_VERSION") -if not version: - version = "0.1" - try: - import gittaggers - tagger = gittaggers.EggInfoFromGit - except ImportError: - pass +import arvados_version +version = arvados_version.get_version(SETUP_DIR, "arvados") short_tests_only = False if '--short-tests-only' in sys.argv: @@ -52,17 +46,17 @@ setup(name='arvados-python-client', ('share/doc/arvados-python-client', ['LICENSE-2.0.txt', 'README.rst']), ], install_requires=[ - 'ciso8601 >=1.0.0, <=1.0.4', + 'ciso8601 >=1.0.6, <2.0.0', 'future', 'google-api-python-client >=1.6.2, <1.7', 'httplib2 >=0.9.2', 'pycurl >=7.19.5.1', - 'ruamel.yaml >=0.13.7', + 'ruamel.yaml >=0.13.11, <0.15', 'setuptools', 'ws4py <0.4', + 'subprocess32>=3.5.1', ], test_suite='tests', tests_require=['pbr<1.7.0', 'mock>=1.0', 'PyYAML'], - zip_safe=False, - cmdclass={'egg_info': tagger}, + zip_safe=False )