Skip to content

Commit

Permalink
Fix data files include in pyproject. Fix env.unwrapped warning
Browse files Browse the repository at this point in the history
  • Loading branch information
amacati committed Dec 6, 2023
1 parent fdd9bb7 commit 88c47ea
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
14 changes: 7 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@ Homepage = "https://github.com/amacati/SoulsGym"
Documentation = "https://soulsgym.readthedocs.io/en/latest/"
Repository = "https://github.com/amacati/SoulsGym"

[tool.setuptools.packages]
find = {}

[tool.setuptools.packages.find]
namespaces = true

[tool.setuptools.package-data]
soulsgym = [
"soulsgym/core/data/**/*.yaml",
"soulsgym/core/speedhack/_C/*.dll",
"soulsgym/core/game_window/_C/window_capture.pyd",
"soulsgym/envs/config/*.yaml",
"core/data/darksouls3/*.yaml",
"core/data/eldenring/*.yaml",
"core/speedhack/_C/*.dll",
"core/game_window/_C/window_capture.pyd",
"envs/config/*.yaml",
]

[tool.yapf]
Expand Down
1 change: 1 addition & 0 deletions soulsgym/core/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Utility module for ``soulsgym``."""
from __future__ import annotations

from typing import Union, Any
from threading import Lock
from weakref import WeakValueDictionary
Expand Down
2 changes: 1 addition & 1 deletion tests/darksouls3/integration_tests/test_envs.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def run_env(env_name: str, kwargs: dict | None = None):
_, _, terminated, truncated, _ = env.step(env.action_space.sample())
finally:
env.close()
env.game.reload()
env.unwrapped.game.reload()


@pytest.mark.integration
Expand Down

0 comments on commit 88c47ea

Please sign in to comment.