diff --git a/.github/workflows/python-ci.yaml b/.github/workflows/python-ci.yaml index 01cc4cb9..584c5aad 100644 --- a/.github/workflows/python-ci.yaml +++ b/.github/workflows/python-ci.yaml @@ -40,10 +40,10 @@ jobs: pip install wheel - name: Build Yawning-Titan run: | - python setup.py bdist_wheel + python setup.py sdist - name: Install Yawning-Titan run: | - YT=$(ls ./dist/yawningtitan-*.*.*-*.whl) + YT=$(ls ./dist/yawningtitan-*.*.*.tar.gz) python -m pip install torch==1.11+cpu -f https://download.pytorch.org/whl/torch_stable.html python -m pip install $YT[dev] --default-timeout 1000 - name: Lint with flake8 diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 00000000..1aba38f6 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +include LICENSE diff --git a/VERSION b/VERSION index 9084fa2f..524cb552 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.1.0 +1.1.1 diff --git a/setup.py b/setup.py index 6a4592ef..ee29c17e 100644 --- a/setup.py +++ b/setup.py @@ -229,6 +229,7 @@ def _ray_3_beta_rllib_py_platform_pip_install() -> str: "tensorflow": ["tensorflow==2.11.0"], }, package_data={"yawning_titan": package_data_paths()}, + data_files=[(".", ["VERSION"])], include_package_data=True, cmdclass={ "install": PostInstallCommand, diff --git a/yawning_titan/agents/keyboard.py b/yawning_titan/agents/keyboard.py index 6f95bebb..78fd9f70 100644 --- a/yawning_titan/agents/keyboard.py +++ b/yawning_titan/agents/keyboard.py @@ -184,7 +184,10 @@ def play(self, render_graphically: bool = True): print("Node: ", node, " State: ", state) # checks if the red or blue agent won - if self.env.current_duration == self.env.settings["GAME_RULES"]["max_steps"]: + if ( + self.env.current_duration + == self.env.network_interface.game_mode.game_rules.max_steps.value + ): print("---Blue agent wins---") else: print("---Red agent wins---") diff --git a/yawning_titan/notebooks/_package_data/Creating and playing as a Keyboard Agent.ipynb b/yawning_titan/notebooks/_package_data/Creating and playing as a Keyboard Agent.ipynb index 8a421e05..e2e0c7dc 100644 --- a/yawning_titan/notebooks/_package_data/Creating and playing as a Keyboard Agent.ipynb +++ b/yawning_titan/notebooks/_package_data/Creating and playing as a Keyboard Agent.ipynb @@ -169,7 +169,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.9" + "version": "3.9.13" }, "vscode": { "interpreter": {