Skip to content

Commit

Permalink
Merge pull request #147 from bluesky/hack-docs
Browse files Browse the repository at this point in the history
Move autodoc pydantic git dep into ci and devcontainer so we can release
  • Loading branch information
coretl authored Oct 16, 2024
2 parents 4deecf8 + b1d72dd commit 6291ec7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
2 changes: 2 additions & 0 deletions .github/workflows/_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 6291ec7

Please sign in to comment.