fix(ci): install the project itself for docs deploy - #105
Merged
Conversation
--only-group docs (from #104) fixed the lxml build failure, but it also skips installing the mesoscopy package itself -- --only-group behaves like --only-dev and excludes the project. mkdocs-click's CLI reference page imports mesoscopy directly via importlib, so the deploy step still failed: ModuleNotFoundError: No module named 'mesoscopy' Use --no-default-groups --group docs instead, which excludes the dev/types/lxml chain but still installs the project package. Verified locally: `uv run --no-default-groups --group docs mkdocs build --verbose` completes with exit 0 and no lxml/mypy in the resolved env. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #104
#104 fixed the
lxml-build failure by scoping the install to--only-group docs, but that flag behaves like--only-dev— it excludes the project package itself, not just the other dependency groups.mkdocs-clickneeds toimportlib.import_module("mesoscopy")to render the CLI reference page, so the deploy step still failed on the next push tomain:(see run 31112905635)
Fix
--no-default-groups --group docsstill excludes the defaultdevgroup (sotypes/mypy/lxmlstay out) but installs the project package (mesoscopy) as usual.Verification
Locally:
uv run --no-default-groups --group docs mkdocs build --verbosecompletes with exit 0. Confirmed nolxml/mypyin the resolved environment (uv pip list | grep -iE "lxml|mypy"→ no match), andmesoscopyimports successfully so the CLI reference page renders.🤖 Generated with Claude Code