From f5079975f92ece5af6d83780839f21492ef50434 Mon Sep 17 00:00:00 2001 From: Melvin Laux Date: Thu, 12 Sep 2024 15:37:31 +0200 Subject: [PATCH 1/3] Add separate requirements for mujoco and dev installations --- setup.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 85eab90..68f79ae 100644 --- a/setup.py +++ b/setup.py @@ -19,6 +19,11 @@ "gymnasium", "numpy>=1.23.5,<2.0.0", "pytransform3d", - "mujoco==3.1.6", ], + extras_require={ + "mujoco": [ + "mujoco==3.1.6", + ], + "dev": ["pytest", "pre-commit"], + }, ) From 5dd7be4dcbe479267fdc57e1a98820fc103e8c60 Mon Sep 17 00:00:00 2001 From: Melvin Laux Date: Thu, 12 Sep 2024 16:00:50 +0200 Subject: [PATCH 2/3] Add flake8 as dev dependency --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 68f79ae..ca5bf3f 100644 --- a/setup.py +++ b/setup.py @@ -24,6 +24,6 @@ "mujoco": [ "mujoco==3.1.6", ], - "dev": ["pytest", "pre-commit"], + "dev": ["pytest", "pre-commit", "flake8"], }, ) From 3873659ad05da9023b0633862b617d5751096c10 Mon Sep 17 00:00:00 2001 From: Melvin Laux Date: Thu, 12 Sep 2024 16:01:37 +0200 Subject: [PATCH 3/3] Update pipline --- .github/workflows/test.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index b304c3b..0b87bb0 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -27,8 +27,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install flake8 pytest - pip install . --user + pip install .[dev,mujoco] --user - name: Lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names