From af2adc7157eafa2a4f7ce6750fd1ce779d8e64b8 Mon Sep 17 00:00:00 2001 From: Vadim Liventsev Date: Sat, 25 Nov 2023 01:03:47 +0100 Subject: [PATCH] gymnasium --- examples/agent.py | 2 +- programlib/agent.py | 2 +- pyproject.toml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/agent.py b/examples/agent.py index e5b501a..9a7e33e 100644 --- a/examples/agent.py +++ b/examples/agent.py @@ -1,5 +1,5 @@ from programlib import Program -import gym +import gymnasium as gym mountain_car_solver = """ while True: diff --git a/programlib/agent.py b/programlib/agent.py index 27ba021..2a7e5d9 100644 --- a/programlib/agent.py +++ b/programlib/agent.py @@ -1,4 +1,4 @@ -import gym +import gymnasium as gym import numpy as np def decode_action(action_space, action): diff --git a/pyproject.toml b/pyproject.toml index da76b90..02ea841 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "programlib" -version = "9.0.2" +version = "9.0.3" description = "Programs as Objects" authors = ["Vadim Liventsev "] license = "MIT" @@ -14,7 +14,7 @@ classifiers = [ [tool.poetry.dependencies] python = "^3.8" pexpect = "^4.8.0" -gym = "^0.26.2" +gymnasium = " >=0.0.0" numpy = "^1.24.2" pyte = "^0.8.0" contextlib-chdir = {version = "^1.0.2", python = "<3.11"}