From f507209fd9c9a938bf95a6d4068ede2c9b0517b3 Mon Sep 17 00:00:00 2001 From: kngwyu Date: Tue, 26 May 2020 01:07:24 +0900 Subject: [PATCH] Add setup.py --- mujoco_maze/__init__.py | 3 +++ setup.py | 56 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 setup.py diff --git a/mujoco_maze/__init__.py b/mujoco_maze/__init__.py index 037be91..87393f0 100644 --- a/mujoco_maze/__init__.py +++ b/mujoco_maze/__init__.py @@ -20,3 +20,6 @@ for maze_id in MAZE_IDS: max_episode_steps=1000, reward_threshold=-1000, ) + + +__version__ = "0.1.0" diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..2677e3e --- /dev/null +++ b/setup.py @@ -0,0 +1,56 @@ +import io +import os +import re + +from setuptools import find_packages, setup + +NAME = "mujoco-maze" +AUTHOR = "Yuji Kanagawa" +EMAIL = "yuji.kngw.80s.revive@gmail.com" +URL = "https://github.com/kngwyu/mujoco-maze" +REQUIRES_PYTHON = ">=3.6.0" +DESCRIPTION = "Simple maze environments using mujoco-py" + +here = os.path.abspath(os.path.dirname(__file__)) + +with io.open(os.path.join(here, "mujoco_maze/__init__.py"), "rt", encoding="utf8") as f: + VERSION = re.search(r"__version__ = \"(.*?)\"", f.read()).group(1) + +try: + with io.open(os.path.join(here, "README.md"), encoding="utf-8") as f: + LONG_DESCRIPTION = "\n" + f.read() +except FileNotFoundError: + LONG_DESCRIPTION = DESCRIPTION + + +REQUIRED = ["gym", "mujoco-py"] + + +setup( + name=NAME, + version=VERSION, + url=URL, + project_urls={"Code": URL, "Issue tracker": URL + "/issues",}, + author=AUTHOR, + author_email=EMAIL, + description=DESCRIPTION, + long_description=LONG_DESCRIPTION, + long_description_content_type="text/markdown", + packages=find_packages(), + python_requires=REQUIRES_PYTHON, + install_requires=REQUIRED, + license="Apache2", + classifiers=[ + "License :: OSI Approved :: Apache Software License", + "Development Status :: 3 - Alpha", + "Intended Audience :: Science/Research", + "Natural Language :: English", + "Operating System :: OS Independent", + "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 :: Implementation :: CPython", + ], +)