From b1d72ddc4cd8c7cb8fb40d6161caedc995b7e41d Mon Sep 17 00:00:00 2001 From: Tom Cobb Date: Tue, 15 Oct 2024 09:13:00 +0000 Subject: [PATCH] Move autodoc pydantic git dep into ci and devcontainer so we can release --- .devcontainer/devcontainer.json | 2 +- .github/workflows/_docs.yml | 2 ++ pyproject.toml | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index b8781ba4..b013a571 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -43,5 +43,5 @@ // Mount the parent as /workspaces so we can pip install peers as editable "workspaceMount": "source=${localWorkspaceFolder}/..,target=/workspaces,type=bind", // After the container is created, install the python project in editable form - "postCreateCommand": "pip install $([ -f dev-requirements.txt ] && echo '-c dev-requirements.txt') -e '.[dev]' && pre-commit install" + "postCreateCommand": "pip install $([ -f dev-requirements.txt ] && echo '-c dev-requirements.txt') -e '.[dev]' 'autodoc_pydantic @ git+https://github.com/coretl/autodoc_pydantic.git@0b95311d8d10fce67a9ecd5830330364e31fa49c' && pre-commit install" } diff --git a/.github/workflows/_docs.yml b/.github/workflows/_docs.yml index a1cafcae..75218dd2 100644 --- a/.github/workflows/_docs.yml +++ b/.github/workflows/_docs.yml @@ -21,6 +21,8 @@ jobs: - name: Install python packages uses: ./.github/actions/install_requirements + with: + pip-install: -e .[dev] "autodoc_pydantic @ git+https://github.com/coretl/autodoc_pydantic.git@0b95311d8d10fce67a9ecd5830330364e31fa49c" - name: Build docs run: tox -e docs diff --git a/pyproject.toml b/pyproject.toml index b0bf50e6..fe6c72a5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,7 +29,7 @@ dev = [ # https://github.com/pypa/pip/issues/10393 "scanspec[plotting]", "scanspec[service]", - "autodoc_pydantic @ git+https://github.com/coretl/autodoc_pydantic.git@0b95311d8d10fce67a9ecd5830330364e31fa49c", + "autodoc_pydantic", "copier", "httpx", "myst-parser",