加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
setup.py 1.74 KB
一键复制 编辑 原始数据 按行查看 历史
J K Terry 提交于 2021-11-20 11:53 . python version
import setuptools
with open("README.md", "r", encoding="utf8") as fh:
long_description = fh.read()
extras = {
'torch': ['torch', 'GitPython', 'gitdb2', 'matplotlib'],
}
def _get_version():
with open('rlcard/__init__.py') as f:
for line in f:
if line.startswith('__version__'):
g = {}
exec(line, g)
return g['__version__']
raise ValueError('`__version__` not defined')
VERSION = _get_version()
setuptools.setup(
name="rlcard",
version=VERSION,
author="Data Analytics at Texas A&M (DATA) Lab",
author_email="daochen.zha@tamu.edu",
description="A Toolkit for Reinforcement Learning in Card Games",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/datamllab/rlcard",
keywords=["Reinforcement Learning", "game", "RL", "AI"],
packages=setuptools.find_packages(exclude=('tests',)),
package_data={
'rlcard': ['models/pretrained/leduc_holdem_cfr/*',
'games/uno/jsondata/action_space.json',
'games/limitholdem/card2index.json',
'games/leducholdem/card2index.json',
'games/doudizhu/jsondata.zip',
'games/uno/jsondata/*',
]},
install_requires=[
'numpy>=1.16.3',
'termcolor'
],
extras_require=extras,
requires_python='>=3.7',
classifiers=[
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.7",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化