Skip to content

Commit 88c47ea

Browse files
committed
Fix data files include in pyproject. Fix env.unwrapped warning
1 parent fdd9bb7 commit 88c47ea

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

pyproject.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,16 @@ Homepage = "https://github.com/amacati/SoulsGym"
4242
Documentation = "https://soulsgym.readthedocs.io/en/latest/"
4343
Repository = "https://github.com/amacati/SoulsGym"
4444

45-
[tool.setuptools.packages]
46-
find = {}
47-
45+
[tool.setuptools.packages.find]
46+
namespaces = true
4847

4948
[tool.setuptools.package-data]
5049
soulsgym = [
51-
"soulsgym/core/data/**/*.yaml",
52-
"soulsgym/core/speedhack/_C/*.dll",
53-
"soulsgym/core/game_window/_C/window_capture.pyd",
54-
"soulsgym/envs/config/*.yaml",
50+
"core/data/darksouls3/*.yaml",
51+
"core/data/eldenring/*.yaml",
52+
"core/speedhack/_C/*.dll",
53+
"core/game_window/_C/window_capture.pyd",
54+
"envs/config/*.yaml",
5555
]
5656

5757
[tool.yapf]

soulsgym/core/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Utility module for ``soulsgym``."""
22
from __future__ import annotations
3+
34
from typing import Union, Any
45
from threading import Lock
56
from weakref import WeakValueDictionary

tests/darksouls3/integration_tests/test_envs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def run_env(env_name: str, kwargs: dict | None = None):
3030
_, _, terminated, truncated, _ = env.step(env.action_space.sample())
3131
finally:
3232
env.close()
33-
env.game.reload()
33+
env.unwrapped.game.reload()
3434

3535

3636
@pytest.mark.integration

0 commit comments

Comments
 (0)