Skip to content

Commit

Permalink
Merge pull request #75 from EleutherAI/gymnasium
Browse files Browse the repository at this point in the history
Migrate from gym to gymnasium support
  • Loading branch information
AI-WAIFU committed Jul 21, 2023
2 parents 908ec01 + 7b6e09d commit b14ca6f
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 3 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ minetester: $(MINETESTER_WHEEL)

install:
#install python library
pip install $(MINETESTER_WHEEL)
pip install $(MINETESTER_WHEEL) --force-reinstall

demo:
#install run demo script
Expand All @@ -60,3 +60,7 @@ demo:
clean:
#clean up repo
util/minetester/clean.sh

clean_minetester:
#clean up minetester, but not minetest
util/minetester/clean_minetester.sh
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@ make demo #run the demo script
make clean #clean up build artifacts
```

Additionally the makefile supports a utility to clean only the minetester install

```
make clean_minetester #remove existing minetester install
make minetester #build minetester python library
make install #install python library into local environment along with nessesary dependencies
make demo #run the demo script
```

Minetest
========

Expand Down
2 changes: 1 addition & 1 deletion minetester/minetest_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import uuid
from typing import Any, Dict, List, Optional, Tuple

import gym
import gymnasium as gym
import matplotlib.pyplot as plt
import numpy as np
import zmq
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
author_email='',
packages=find_packages(),
install_requires=[
'gym',
'gymnasium',
'numpy',
'matplotlib',
'zmq',
Expand Down
1 change: 1 addition & 0 deletions util/minetester/clean_minetester.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rm -r build/package

0 comments on commit b14ca6f

Please sign in to comment.