-
Notifications
You must be signed in to change notification settings - Fork 93
/
Copy pathsetup.py
109 lines (102 loc) · 3.16 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
#!/usr/bin/env python3
# encoding: utf-8
import platform
from importlib import util as import_util
from setuptools import setup, find_packages
spec = import_util.spec_from_file_location('_metadata', 'rls/_metadata.py')
_metadata = import_util.module_from_spec(spec)
spec.loader.exec_module(_metadata)
with open('README.md', 'r', encoding='utf8') as f:
long_description = f.read()
long_description += '\n\nFor more information see our [github repository](https://github.com/StepNeverStop/RLs).'
systembased_extras = {
'windows': [
# 'swig', # install it with conda.
# 'box2d-py', # install it manually.
'cmake',
'pywin32'
],
'nowindows': []
}
extras = {
'ray': [
'pytest-runner',
'ray'
],
'unity': [
'mlagents-envs==0.21.0'
],
'atari': [
'imageio',
'atari-py==0.2.6',
'opencv-python==4.4.0.46'
],
'mujoco': [
'mujoco_py'
],
'pybullet': [
'PyBullet'
],
'gym-minigrid': [
'gym-minigrid'
],
'gym_donkeycar': [
'gym_donkeycar'
]
}
all_deps = []
for group_name in extras:
all_deps += extras[group_name]
if platform.system() == "Windows":
extras['windows'] = systembased_extras['windows']
all_deps += systembased_extras['windows']
else:
extras['nowindows'] = systembased_extras['nowindows']
all_deps += systembased_extras['nowindows']
extras['all'] = all_deps
setup(
name="RLs",
version=_metadata.__version__,
description="Reinforcement Learning Algorithm Based On TensorFlow 2.x.",
keywords='reinforcement learning gym ml-agents tf2',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/StepNeverStop/RLs',
author='Keavnn',
author_email='[email protected]',
maintainer='Keavnn',
maintainer_email='[email protected]',
license="Apache License, Version 2.0",
packages=find_packages(exclude=['test', 'test.*']),
python_requires='>=3.6',
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 3 - Alpha',
'Environment :: Console',
# Indicate who your project is intended for
'Intended Audience :: Reinforcement Learning Researchers',
'Topic :: Artificial Intelligence :: Reinforcement Learning',
# Pick your license as you wish (should match "license" above)
'License :: OSI Approved :: Apache Software License',
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
"Operating System :: OS Independent",
],
install_requires=[
'docopt',
'numpy',
'pyyaml',
'tqdm',
'colored_traceback',
'gym>=0.15.0, <=0.15.3',
'tensorflow>=2.0.0, <=2.3.1',
'tensorflow_probability>=0.8.0, <=0.11.1'
],
extras_require=extras,
)