From 42a4a09f5b5a0eaa8c1ac485e6f7e49e5fc56971 Mon Sep 17 00:00:00 2001 From: J K Terry Date: Sat, 20 Nov 2021 11:41:27 -0500 Subject: [PATCH] 3.10 support (#2493) * test again * typo --- .github/workflows/build.yml | 2 +- README.md | 4 ++-- gym/envs/README.md | 20 -------------------- gym/error.py | 5 +---- setup.py | 3 ++- 5 files changed, 6 insertions(+), 28 deletions(-) delete mode 100644 gym/envs/README.md diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3239a6960..31245ea2c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,7 +6,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7, 3.8, 3.9] + python-version: ['3.7', '3.8', '3.9', '3.10'] steps: - uses: actions/checkout@v2 - run: | diff --git a/README.md b/README.md index f4eaa663c..f7d18a65c 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ To install the base Gym library, use `pip install gym`. This does not include dependencies for all families of environments (there's a massive number, and some can be problematic to install on certain systems). You can install these dependencies for one family like `pip install gym[atari]` or use `pip install gym[all]` to install all dependencies. -We support Python 3.7, 3.8 and 3.9 on Linux and macOS. We will accept PRs related to Windows, but do not officially support it. +We support Python 3.7, 3.8, 3.9 and 3.10 on Linux and macOS. We will accept PRs related to Windows, but do not officially support it. ## API @@ -41,7 +41,7 @@ Gym keeps strict versioning for reproducibility reasons. All environments end in ## Citation -A whitepaper from when OpenAI Gym just came out is available https://arxiv.org/pdf/1606.01540, and can be cited with the following bibtex entry: +A whitepaper from when Gym just came out is available https://arxiv.org/pdf/1606.01540, and can be cited with the following bibtex entry: ``` @misc{1606.01540, diff --git a/gym/envs/README.md b/gym/envs/README.md deleted file mode 100644 index 85054389f..000000000 --- a/gym/envs/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# Envs - -These are the core integrated environments. Note that we may later -restructure any of the files, but will keep the environments available -at the relevant package's top-level. So for example, you should access -`AntEnv` as follows: - -``` -# Will be supported in future releases -from gym.envs import mujoco -mujoco.AntEnv -``` - -Rather than: - -``` -# May break in future releases -from gym.envs.mujoco import ant -ant.AntEnv -``` \ No newline at end of file diff --git a/gym/error.py b/gym/error.py index 6829ea626..4e8f36ed1 100644 --- a/gym/error.py +++ b/gym/error.py @@ -102,10 +102,7 @@ def __init__( try: http_body = http_body.decode("utf-8") except: - http_body = ( - "" - ) + http_body = "" self._message = message self.http_body = http_body diff --git a/setup.py b/setup.py index 0ab7ff482..315d0cebe 100644 --- a/setup.py +++ b/setup.py @@ -41,7 +41,7 @@ version=VERSION, description="Gym: A universal API for reinforcement learning environments.", url="https://github.com/openai/gym", - author="Gym community", + author="Gym Community", author_email="jkterry@umd.edu", license="", packages=[package for package in find_packages() if package.startswith("gym")], @@ -71,5 +71,6 @@ "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", ], )