2019-06-10 17:00:28 +00:00
|
|
|
"""
|
2020-12-22 21:25:37 +00:00
|
|
|
ClearML - Artificial Intelligence Version Control
|
2020-12-22 22:19:21 +00:00
|
|
|
https://github.com/allegroai/clearml
|
2019-06-10 17:00:28 +00:00
|
|
|
"""
|
|
|
|
|
2020-06-05 13:49:04 +00:00
|
|
|
import os.path
|
2019-06-10 17:00:28 +00:00
|
|
|
# Always prefer setuptools over distutils
|
|
|
|
from setuptools import setup, find_packages
|
|
|
|
|
2020-07-30 12:15:21 +00:00
|
|
|
|
2020-06-05 13:49:04 +00:00
|
|
|
def read_text(filepath):
|
2020-07-30 12:15:21 +00:00
|
|
|
with open(filepath, "r", encoding="utf-8") as f:
|
2020-06-05 13:49:04 +00:00
|
|
|
return f.read()
|
2019-06-10 17:00:28 +00:00
|
|
|
|
2020-07-30 12:15:21 +00:00
|
|
|
|
2020-06-05 13:49:04 +00:00
|
|
|
here = os.path.dirname(__file__)
|
2019-06-10 17:00:28 +00:00
|
|
|
# Get the long description from the README file
|
2020-06-05 13:49:04 +00:00
|
|
|
long_description = read_text(os.path.join(here, 'README.md'))
|
2019-06-10 17:00:28 +00:00
|
|
|
|
|
|
|
|
2020-06-05 13:49:04 +00:00
|
|
|
def read_version_string(version_file):
|
|
|
|
for line in read_text(version_file).splitlines():
|
|
|
|
if line.startswith('__version__'):
|
|
|
|
delim = '"' if '"' in line else "'"
|
|
|
|
return line.split(delim)[1]
|
|
|
|
else:
|
|
|
|
raise RuntimeError("Unable to find version string.")
|
2019-06-10 17:00:28 +00:00
|
|
|
|
|
|
|
|
2020-12-22 21:25:37 +00:00
|
|
|
version = read_version_string("clearml/version.py")
|
2019-06-10 17:00:28 +00:00
|
|
|
|
2020-06-05 13:49:04 +00:00
|
|
|
requirements = read_text(os.path.join(here, 'requirements.txt')).splitlines()
|
2019-06-10 17:00:28 +00:00
|
|
|
|
|
|
|
setup(
|
2020-12-22 21:25:37 +00:00
|
|
|
name='clearml',
|
2019-06-10 17:00:28 +00:00
|
|
|
version=version,
|
2020-12-22 21:25:37 +00:00
|
|
|
description='ClearML - Auto-Magical Experiment Manager, Version Control, and MLOps for AI',
|
2019-06-10 17:00:28 +00:00
|
|
|
long_description=long_description,
|
|
|
|
long_description_content_type='text/markdown',
|
|
|
|
# The project's main homepage.
|
2020-12-22 22:19:21 +00:00
|
|
|
url='https://github.com/allegroai/clearml',
|
2019-06-10 17:00:28 +00:00
|
|
|
author='Allegroai',
|
2020-12-22 21:25:37 +00:00
|
|
|
author_email='clearml@allegro.ai',
|
2019-06-10 17:00:28 +00:00
|
|
|
license='Apache License 2.0',
|
|
|
|
classifiers=[
|
2020-12-25 00:15:01 +00:00
|
|
|
'Development Status :: 5 - Production/Stable',
|
2019-06-10 17:00:28 +00:00
|
|
|
'Intended Audience :: Developers',
|
|
|
|
'Intended Audience :: Science/Research',
|
|
|
|
'Operating System :: POSIX :: Linux',
|
|
|
|
'Operating System :: MacOS :: MacOS X',
|
|
|
|
'Operating System :: Microsoft',
|
|
|
|
'Topic :: Scientific/Engineering :: Artificial Intelligence',
|
|
|
|
'Topic :: Software Development',
|
|
|
|
'Topic :: Software Development :: Version Control',
|
|
|
|
'Topic :: System :: Logging',
|
|
|
|
'Topic :: System :: Monitoring',
|
|
|
|
'Programming Language :: Python :: 2.7',
|
|
|
|
'Programming Language :: Python :: 3.5',
|
|
|
|
'Programming Language :: Python :: 3.6',
|
|
|
|
'Programming Language :: Python :: 3.7',
|
2020-05-13 17:27:10 +00:00
|
|
|
'Programming Language :: Python :: 3.8',
|
2019-06-10 17:00:28 +00:00
|
|
|
'License :: OSI Approved :: Apache Software License',
|
|
|
|
],
|
2020-12-22 21:25:37 +00:00
|
|
|
keywords='clearml trains development machine deep learning version control machine-learning machinelearning '
|
2019-06-10 17:00:28 +00:00
|
|
|
'deeplearning deep-learning experiment-manager experimentmanager',
|
|
|
|
packages=find_packages(exclude=['contrib', 'docs', 'data', 'examples', 'tests']),
|
|
|
|
install_requires=requirements,
|
2019-09-03 09:59:32 +00:00
|
|
|
extras_require={
|
|
|
|
's3': [
|
|
|
|
'boto3>=1.9',
|
|
|
|
],
|
|
|
|
'azure': [
|
2020-05-09 16:34:54 +00:00
|
|
|
'azure-storage-blob>=2.0.1,<=2.1',
|
2019-09-03 09:59:32 +00:00
|
|
|
],
|
|
|
|
'gs': [
|
|
|
|
'google-cloud-storage>=1.13.2',
|
|
|
|
],
|
|
|
|
},
|
2019-06-10 17:00:28 +00:00
|
|
|
package_data={
|
2020-12-22 21:25:37 +00:00
|
|
|
'clearml': ['config/default/*.conf', 'backend_api/config/default/*.conf']
|
2019-06-10 17:00:28 +00:00
|
|
|
},
|
|
|
|
include_package_data=True,
|
|
|
|
# To provide executable scripts, use entry points in preference to the
|
|
|
|
# "scripts" keyword. Entry points provide cross-platform support and allow
|
|
|
|
# pip to create the appropriate form of executable for the target platform.
|
|
|
|
entry_points={
|
|
|
|
'console_scripts': [
|
2020-12-22 21:25:37 +00:00
|
|
|
'clearml-init = clearml.cli.config.__main__:main',
|
|
|
|
'clearml-data = clearml.cli.data.__main__:main',
|
2020-12-22 23:52:54 +00:00
|
|
|
'clearml-task = clearml.cli.task.__main__:main',
|
2019-06-10 17:00:28 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
)
|