Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest-large, macos-latest]
python: ['3.10', '3.12']
python: ['3.10', '3.12', '3.14']
steps:
- uses: actions/checkout@v5
- name: Use Python ${{ matrix.python }}
Expand Down
3 changes: 2 additions & 1 deletion requirements-full.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Main dependencies
numpy>=1.14.5
# Note: NumPy support for Python 3.14 is not stable yet. Use Python 3.13 or earlier.
numpy>=1.14.5; python_version < '3.14'
tqdm>=4.17.1
networkx>=2
more_itertools
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Main dependencies
numpy>=1.14.5
# Note: NumPy support for Python 3.14 is not stable yet. Use Python 3.13 or earlier.
numpy>=1.14.5; python_version < '3.14'
tqdm>=4.17.1
networkx>=2
more_itertools
Expand Down
3 changes: 1 addition & 2 deletions textworld/envs/pddl/textgen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ def __repr__(self):

def derive(self, context=None):
context = context or self.context
locals().update(context["variables"])
value = eval(self.expression)
value = eval(self.expression, None, context["variables"])
return [TerminalSymbol(value)]


Expand Down
2 changes: 1 addition & 1 deletion textworld/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.7.0'
__version__ = '1.7.1'
Loading