From 167619a264b6563f7781e2c90bd62524d02fef33 Mon Sep 17 00:00:00 2001 From: Connor Ward Date: Tue, 12 Nov 2024 14:03:10 +0000 Subject: [PATCH] Fix subpackage install and docs build (#175) * Include pyadjoint subpackage in pyproject.toml --- .github/workflows/docs.yml | 6 +++++- pyproject.toml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 3c4e0d18..3e686b84 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -29,9 +29,13 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: "3.10" - name: Install run: | - python -m pip install -e '.[doc]' + python3 -m pip install '.[doc]' - name: Setup Pages id: pages uses: actions/configure-pages@v3 diff --git a/pyproject.toml b/pyproject.toml index fecb8cfc..00430627 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,4 +46,4 @@ visualisation = ["tensorflow", "protobuf", "networkx", "pygraphviz"] [tool.setuptools] -packages = ["firedrake_adjoint", "numpy_adjoint", "pyadjoint"] +packages = ["firedrake_adjoint", "numpy_adjoint", "pyadjoint", "pyadjoint.optimization"]