Skip to content

Commit

Permalink
For python 3.12, importorskip bsuite
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudo-rnd-thoughts committed May 21, 2024
1 parent d824111 commit c5607be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def get_version():
"pettingzoo>=1.23",
"dm-meltingpot>=2.2.2; python_version > '3.10'",
],
"bsuite": ["bsuite>=0.3.5"],
"bsuite": ["bsuite>=0.3.5; python_version < '3.12'"],
}
extras["all"] = [
lib for key, libs in extras.items() if key != "gym-v21" for lib in libs
Expand Down
3 changes: 2 additions & 1 deletion tests/test_bsuite.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import pickle
import warnings

import bsuite
import gymnasium as gym
import pytest
from gymnasium.envs.registration import registry
Expand All @@ -13,6 +12,8 @@

gym.register_envs(shimmy)

bsuite = pytest.importorskip("bsuite")

BSUITE_ENV_IDS = [
env_id
for env_id in registry
Expand Down

0 comments on commit c5607be

Please sign in to comment.