-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
71 lines (63 loc) · 2.09 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
# -*- coding: utf-8 -*-
# *******************************************************
# aitk: Python tools for AI
#
# Copyright (c) 2021 AITK Developers
#
# https://github.com/ArtificialIntelligenceToolkit/aitk/
#
# *******************************************************
"""
aitk setup
"""
import io
import os
import json
import setuptools
name = "aitk"
HERE = os.path.abspath(os.path.dirname(__file__))
# Get our version
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]
with open(os.path.join(HERE, "README.md"), "r") as fh:
long_description = fh.read()
version = get_version(os.path.join(HERE, "aitk/_version.py"))
setup_args = dict(
name=name,
version=version,
url="https://github.com/ArtificialIntelligenceToolkit/%s" % name,
author="Douglas Blank",
description="Python tools for AI",
long_description=long_description,
long_description_content_type="text/markdown",
package_data={
"aitk.utils": ["fonts/*.ttf"],
"aitk.robots": ["worlds/*.json", "worlds/*.png"],
},
install_requires=["Pillow", "ipywidgets", "tqdm", "numpy", "matplotlib", "tensorflow>=2.17.0"],
packages=setuptools.find_packages(),
python_requires=">=3.9",
license="BSD-3-Clause",
platforms="Linux, Mac OS X, Windows",
keywords=["ai", "artificial intelligence", "robots",
"simulator", "jupyter", "python", "machine learning",
"neural networks", "keras", "tensorflow"],
classifiers=[
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Framework :: Jupyter",
],
)
if __name__ == "__main__":
setuptools.setup(**setup_args)