From efe04ca9b248fdfdbfa5d7887172fc8c711472d1 Mon Sep 17 00:00:00 2001 From: Gertjan van Zwieten Date: Fri, 25 Aug 2023 16:18:39 +0200 Subject: [PATCH] add "cs" dependency --- .github/workflows/test.yaml | 10 ++++++++-- pyproject.toml | 1 + 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index ea91d6162..315ef3bb4 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -85,6 +85,9 @@ jobs: - name: Install Graphviz if: ${{ matrix.os == 'ubuntu-latest' }} run: sudo apt install -y graphviz + - name: Install LibGLU + if: ${{ matrix.os == 'ubuntu-latest' }} + run: sudo apt install -y libglu1 - name: Install Nutils and dependencies id: install env: @@ -93,7 +96,7 @@ jobs: python -um pip install --upgrade --upgrade-strategy eager wheel python -um pip install --upgrade --upgrade-strategy eager numpy$_numpy_version # Install Nutils from `dist` dir created in job `build-python-package`. - python -um pip install "$_wheel[import_gmsh,export_mpl]" + python -um pip install "$_wheel[import_gmsh,export_mpl,cs]" - name: Install Scipy if: ${{ matrix.matrix-backend == 'scipy' }} run: python -um pip install --upgrade scipy @@ -167,12 +170,15 @@ jobs: with: name: python-package path: dist/ + - name: Install LibGLU + if: ${{ matrix.os == 'ubuntu-latest' }} + run: sudo apt install -y libglu1 - name: Install Nutils and dependencies id: install run: | python -um pip install --upgrade --upgrade-strategy eager wheel # Install Nutils from `dist` dir created in job `build-python-package`. - python -um pip install "$_wheel[matrix_scipy,export_mpl]" + python -um pip install "$_wheel[matrix_scipy,export_mpl,cs]" - name: Test run: python -um unittest discover -b -q -t . -s examples test-sphinx: diff --git a/pyproject.toml b/pyproject.toml index ab7a4ed35..fb6e1f0e8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,6 +27,7 @@ export_mpl = ["matplotlib >=3.3,<4"] matrix_mkl = ["mkl"] matrix_scipy = ["scipy >=0.13,<2"] import_gmsh = ["meshio >=4,<6"] +cs = ["gmsh>=4", "meshio>=5"] [build-system] requires = ["flit_core >=3.2,<4"]