From 90b05959ac1b20b614948b480effd22bbd6f2d37 Mon Sep 17 00:00:00 2001 From: Florian Felten Date: Thu, 24 Oct 2024 11:46:52 +0200 Subject: [PATCH 1/5] add python 3.12 support --- .github/workflows/test.yml | 3 +-- pyproject.toml | 4 +++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2410e175..1786315a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - python-version: ['3.10'] + python-version: ['3.12'] steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} @@ -22,7 +22,6 @@ jobs: run: | pip install pytest pip install moviepy - pip install "mujoco==2.3.3" sudo apt-get install libgmp-dev pip install imageio pip install -e .[all] diff --git a/pyproject.toml b/pyproject.toml index 09a544d8..1b24544a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,6 +17,8 @@ classifiers = [ "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", 'Intended Audience :: Science/Research', 'Topic :: Scientific/Engineering :: Artificial Intelligence', ] @@ -67,7 +69,7 @@ morl_baselines = ["*.json", "assets/*"] # Linting, testing, ... ######################################################## [tool.black] line-length = 127 -target-version = ['py38', 'py39', 'py310'] +target-version = ['py38', 'py39', 'py310', 'py311', 'py312'] include = '\.pyi?$' [tool.isort] From 1d0128edb1f6921de1ddf0ee3f52c13225cb2443 Mon Sep 17 00:00:00 2001 From: Florian Felten Date: Thu, 24 Oct 2024 11:48:04 +0200 Subject: [PATCH 2/5] Bump ubuntu version for tests --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1786315a..8c8bf3ca 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,7 +8,7 @@ on: jobs: linux-test: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest strategy: matrix: python-version: ['3.12'] From c72bf0d2fb84181a226952662f0f54a7cd3d6420 Mon Sep 17 00:00:00 2001 From: Florian Felten Date: Thu, 24 Oct 2024 11:58:35 +0200 Subject: [PATCH 3/5] Install all mo-gym envs for tests --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8c8bf3ca..e3a6e6d3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,6 +24,7 @@ jobs: pip install moviepy sudo apt-get install libgmp-dev pip install imageio + pip install mo-gymnasium[all] pip install -e .[all] - name: Full Python tests run: | From e34b6d34d78d2b9758b8f09c96b641d8904e27a3 Mon Sep 17 00:00:00 2001 From: Florian Felten Date: Thu, 24 Oct 2024 16:27:07 +0200 Subject: [PATCH 4/5] add uv for install --- .github/workflows/test.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e3a6e6d3..d31fcd74 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,12 +20,12 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | - pip install pytest - pip install moviepy + pip install uv + uv pip install --system pytest + uv pip install --system moviepy sudo apt-get install libgmp-dev - pip install imageio - pip install mo-gymnasium[all] - pip install -e .[all] + uv pip install --system mo-gymnasium[all] + uv pip install --system -e .[all] - name: Full Python tests run: | pytest tests/test_algos.py From f0a2eea726f5cfea790685885a279573474f3602 Mon Sep 17 00:00:00 2001 From: Florian Felten Date: Mon, 28 Oct 2024 16:25:30 +0100 Subject: [PATCH 5/5] Bump MO-Gym --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 1b24544a..30f32f02 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,7 +23,7 @@ classifiers = [ 'Topic :: Scientific/Engineering :: Artificial Intelligence', ] dependencies = [ - "mo-gymnasium >=1.1.0", + "mo-gymnasium >=1.3.0", "gymnasium>=1.0.0", "numpy >=1.21.0,<2.0.0", "torch >=1.12.0",