浏览代码

Develop unified version (#2712)

* only read the version from 1 place

* better path

* gym version too
/develop-gpu-test
GitHub 5 年前
当前提交
b51ccb52
共有 4 个文件被更改,包括 18 次插入5 次删除
  1. 10
      gym-unity/setup.py
  2. 5
      ml-agents-envs/setup.py
  3. 7
      ml-agents/setup.py
  4. 1
      VERSION

10
gym-unity/setup.py


#!/usr/bin/env python
from setuptools import setup, find_packages
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, "..", "VERSION")) as f:
version_string = f.read().strip()
version="0.4.7",
version=version_string,
description="Unity Machine Learning Agents Gym Interface",
license="Apache License 2.0",
author="Unity Technologies",

install_requires=["gym", "mlagents_envs==0.10.1"],
install_requires=["gym", "mlagents_envs=={}".format(version_string)],
)

5
ml-agents-envs/setup.py


here = path.abspath(path.dirname(__file__))
with open(path.join(here, "..", "VERSION")) as f:
version_string = f.read().strip()
version="0.10.1",
version=version_string,
description="Unity Machine Learning Agents Interface",
url="https://github.com/Unity-Technologies/ml-agents",
author="Unity Technologies",

7
ml-agents/setup.py


here = path.abspath(path.dirname(__file__))
with open(path.join(here, "..", "VERSION")) as f:
version_string = f.read().strip()
# Get the long description from the README file
with open(path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()

version="0.10.1",
version=version_string,
description="Unity Machine Learning Agents",
long_description=long_description,
long_description_content_type="text/markdown",

"h5py>=2.9.0",
"jupyter",
"matplotlib",
"mlagents_envs==0.10.1",
"mlagents_envs=={}".format(version_string),
"numpy>=1.13.3,<2.0",
"Pillow>=4.2.1",
"protobuf>=3.6",

1
VERSION


0.10.1
正在加载...
取消
保存