From 639264c545329638a513d3c241e52ef792f56379 Mon Sep 17 00:00:00 2001 From: pzhokhov Date: Tue, 25 Feb 2020 14:11:55 +0100 Subject: [PATCH] Drop python2 support (#1819) * drop python 2 support * remove python 2.7 logic from Dockerfile * Revert "remove python 2.7 logic from Dockerfile" This reverts commit 43ceabfa8d70ca083661ab3d0d03f2a1adbef5ff. * remove python 2.7 logic from Dockerfile * use python 3.7.3 (3.7.6 segfaults with mujoco for some reason? * include cmake into system level packages * add swig to system packages * python3.8 build still segfaults on mujoco tests, disabling for now * add python 3.8 and 3.9 to the build * python 3.9.1 -> 3.9.0 * oops i did not realize python 3.9 is still in alpha --- .travis.yml | 4 ++-- README.rst | 4 ++++ gym/version.py | 2 +- py.Dockerfile | 2 +- setup.py | 3 +-- 5 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index e44c238df..82a6f5ba3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,11 +5,11 @@ python: services: - docker env: - # - UBUNTU_VER=14.04 - problems with atari-py - - PY_VER=2.7 - PY_VER=3.5.6 - PY_VER=3.6.8 - PY_VER=3.7.3 + - PY_VER=3.8.1 + install: "" # so travis doesn't do pip install requirements.txt script: diff --git a/README.rst b/README.rst index c4c89339f..03aac1bc2 100644 --- a/README.rst +++ b/README.rst @@ -160,6 +160,10 @@ We are using `pytest `_ for tests. You can run them via: What's new ========== +- 2020-02-21 (v 0.17.0) + - Drop python 2 support + + Add python 3.8 build + - 2020-02-09 (v 0.16.0) + EnvSpec API change - remove tags field (retro-active version bump, the changes are actually already in the codebase since 0.15.5 - thanks @wookayin for keeping us in check!) diff --git a/gym/version.py b/gym/version.py index e91ed3c80..c4d914604 100644 --- a/gym/version.py +++ b/gym/version.py @@ -1 +1 @@ -VERSION = '0.16.0' +VERSION = '0.17.0' diff --git a/py.Dockerfile b/py.Dockerfile index f0fdfcc52..e73993804 100644 --- a/py.Dockerfile +++ b/py.Dockerfile @@ -19,7 +19,7 @@ RUN pip install pytest pytest-forked lz4 COPY . /usr/local/gym/ WORKDIR /usr/local/gym/ -RUN [ "$PYTHON_VER" != "2.7" ] && pip install .[all] || pip install . +RUN [ "$PYTHON_VER" != "3.8.1" ] && pip install .[all] || pip install . ENTRYPOINT ["/usr/local/gym/bin/docker_entrypoint"] CMD ["pytest","--forked"] diff --git a/setup.py b/setup.py index 97fc9d273..67546fc44 100644 --- a/setup.py +++ b/setup.py @@ -45,11 +45,10 @@ setup(name='gym', tests_require=['pytest', 'mock'], python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*', classifiers=[ - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', ], )