2 # Copyright (C) The Arvados Authors. All rights reserved.
4 # SPDX-License-Identifier: AGPL-3.0
6 from __future__ import absolute_import
11 from setuptools import setup, find_packages
13 SETUP_DIR = os.path.dirname(__file__) or '.'
14 README = os.path.join(SETUP_DIR, 'README.rst')
16 import arvados_version
17 version = arvados_version.get_version(SETUP_DIR, "arvados_docker")
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')
24 setup(name="arvados-docker-cleaner",
26 description="Arvados Docker cleaner",
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(),
34 'console_scripts': ['arvados-docker-cleaner=arvados_docker.cleaner:main'],
37 ('share/doc/arvados-docker-cleaner', ['agpl-3.0.txt', 'arvados-docker-cleaner.service']),
40 # The requirements for the docker library broke when requests started
41 # supporting urllib3 2.0.
42 # See <https://github.com/docker/docker-py/issues/3113>.
43 # Make sure we get a version with the bugfix, assuming Python is
45 'docker>=6.1.0; python_version>"3.6"',
46 # If Python is too old, install the latest version we can and pin
48 'docker~=5.0; python_version<"3.7"',
49 'urllib3~=1.26; python_version<"3.7"',