clearml-agent/setup.py

88 lines
3.0 KiB
Python
Raw Permalink Normal View History

2019-10-25 19:28:44 +00:00
"""
2025-01-05 10:13:57 +00:00
ClearML Inc.
2020-12-22 21:00:57 +00:00
CLEARML-AGENT DevOps for machine/deep learning
2025-01-13 16:36:16 +00:00
https://github.com/clearml/clearml-agent
2019-10-25 19:28:44 +00:00
"""
import os.path
2019-10-25 19:28:44 +00:00
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
2020-12-22 21:00:57 +00:00
def read_text(filepath):
with open(filepath, "r") as f:
return f.read()
2019-10-25 19:28:44 +00:00
2020-12-22 21:00:57 +00:00
here = os.path.dirname(__file__)
2019-10-25 19:28:44 +00:00
# Get the long description from the README file
long_description = read_text(os.path.join(here, 'README.md'))
2019-10-25 19:28:44 +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-10-25 19:28:44 +00:00
2020-12-22 21:00:57 +00:00
version = read_version_string("clearml_agent/version.py")
2019-10-25 19:28:44 +00:00
requirements = read_text(os.path.join(here, 'requirements.txt')).splitlines()
2019-10-25 19:28:44 +00:00
setup(
2020-12-22 21:00:57 +00:00
name='clearml_agent',
2019-10-25 19:28:44 +00:00
version=version,
2020-12-22 21:00:57 +00:00
description='ClearML Agent - Auto-Magical DevOps for Deep Learning',
2019-10-25 19:28:44 +00:00
long_description=long_description,
long_description_content_type='text/markdown',
2019-10-25 19:28:44 +00:00
# The project's main homepage.
2025-01-13 16:36:16 +00:00
url='https://github.com/clearml/clearml-agent',
2025-01-05 10:13:57 +00:00
author='clearml',
author_email='clearml@clearml.ai',
2019-10-25 19:28:44 +00:00
license='Apache License 2.0',
classifiers=[
2020-12-25 00:09:38 +00:00
'Development Status :: 5 - Production/Stable',
2019-10-25 19:28:44 +00:00
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Intended Audience :: Science/Research',
'Operating System :: POSIX :: Linux',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Topic :: Scientific/Engineering :: Image Recognition',
'Topic :: System :: Logging',
'Topic :: System :: Monitoring',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
2020-12-22 21:00:57 +00:00
'Programming Language :: Python :: 3.8',
2021-04-12 20:01:40 +00:00
'Programming Language :: Python :: 3.9',
2022-06-16 20:16:06 +00:00
'Programming Language :: Python :: 3.10',
2023-09-02 14:42:27 +00:00
'Programming Language :: Python :: 3.11',
2024-05-15 15:25:29 +00:00
'Programming Language :: Python :: 3.12',
2024-12-12 21:39:11 +00:00
'Programming Language :: Python :: 3.13',
2019-10-25 19:28:44 +00:00
'License :: OSI Approved :: Apache Software License',
],
2020-12-22 21:00:57 +00:00
keywords='clearml trains devops machine deep learning agent automation hpc cluster',
2019-10-25 19:28:44 +00:00
packages=find_packages(exclude=['contrib', 'docs', 'data', 'examples', 'tests*']),
install_requires=requirements,
extras_require={
},
package_data={
2025-01-26 21:03:16 +00:00
'clearml_agent': ['backend_api/config/default/*.conf', '_vendor/jsonschema/schemas/*.json']
2019-10-25 19:28:44 +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={
2020-12-22 21:00:57 +00:00
'console_scripts': ['clearml-agent=clearml_agent.__main__:main'],
2019-10-25 19:28:44 +00:00
},
)