-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
74 lines (65 loc) · 2.12 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# -*- coding: utf-8 -*-
# ***************************************
# __
# _________ ____ ___ ___ / /__ __
# / ___/ __ \/ __ `__ \/ _ \/ __/ |/_/
# / /__/ /_/ / / / / / / __/ /__> <
# \___/\____/_/ /_/ /_/\___/\__/_/|_|
#
#
# Copyright (c) 2022 Cometx Development
# Team. All rights reserved.
# ***************************************
"""
cometx setup
"""
import io
import os
import setuptools
HERE = os.path.abspath(os.path.dirname(__file__))
def get_version(file, name="__version__"):
"""Get the version of the package from the given file by
executing it and extracting the given `name`.
"""
path = os.path.realpath(file)
version_ns = {}
with io.open(path, encoding="utf8") as f:
exec(f.read(), {}, version_ns)
return version_ns[name]
__version__ = get_version(os.path.join(HERE, "cometx/_version.py"))
with io.open(os.path.join(HERE, "README.md"), encoding="utf8") as fh:
long_description = fh.read()
setup_args = dict(
name="cometx",
version=__version__,
url="https://github.com/comet-ml/comet-sdk-extensions/",
author="cometx development team",
description="Python tools for Comet",
long_description=long_description,
long_description_content_type="text/markdown",
install_requires=["comet_ml"],
packages=[
"cometx.cli",
"cometx.tools",
"cometx.framework",
"cometx.framework.comet",
"cometx",
],
entry_points={"console_scripts": ["cometx = cometx.cli:main"]},
python_requires=">=3.6",
license="MIT License",
platforms="Linux, Mac OS X, Windows",
keywords=["ai", "artificial intelligence", "python", "machine learning"],
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Framework :: Jupyter",
],
)
if __name__ == "__main__":
setuptools.setup(**setup_args)