Skip to content

Conversation

@johnslavik
Copy link
Member

@johnslavik johnslavik commented Nov 30, 2025

Continuation of #431, based on #433, closes #408
Migration script: https://gist.github.com/johnslavik/76d556a427033c4de2d236d67aa05b8f

@johnslavik

This comment was marked as outdated.

This comment was marked as outdated.

@johnslavik

This comment was marked as resolved.

This comment was marked as outdated.

@johnslavik
Copy link
Member Author

@copilot Look at https://github.com/mkdocstrings/griffe/actions/runs/19806731977/job/56741990187?pr=434. Fix all incorrect refs

Copy link

Copilot AI commented Dec 1, 2025

@johnslavik I've opened a new pull request, #437, to work on those changes. Once the pull request is ready, I'll request review from you.

@johnslavik
Copy link
Member Author

I'm going over the whole pipeline (docs, usage, etc) now, addressing these and other issues on the way.

johnslavik and others added 11 commits January 18, 2026 12:41
Co-authored-by: johnslavik <64036239+johnslavik@users.noreply.github.com>
Co-authored-by: johnslavik <64036239+johnslavik@users.noreply.github.com>
Co-authored-by: johnslavik <64036239+johnslavik@users.noreply.github.com>
Co-authored-by: johnslavik <64036239+johnslavik@users.noreply.github.com>
…[pypi]

Co-authored-by: johnslavik <64036239+johnslavik@users.noreply.github.com>
Co-authored-by: johnslavik <64036239+johnslavik@users.noreply.github.com>
@johnslavik johnslavik marked this pull request as ready for review January 18, 2026 15:29
@johnslavik
Copy link
Member Author

johnslavik commented Jan 18, 2026

@pawamoy, I'd say this is ready.

The documentation changes are not complete, but I suggest we iterate on the docs later.
LMK if you have any questions/concerns.

I'd also say let's not release this yet before the documentation is fully updated.

@johnslavik
Copy link
Member Author

johnslavik commented Jan 18, 2026

We can also add a test to our API tests to cover the scenario where griffelib is the only thing installed and one tries to import griffecli stuff.

and isinstance(node.value.args[1], ast.Constant)
):
build_path = Path(node.value.args[1].value, "src") # type: ignore[arg-type]
build_path = Path(node.value.args[1].value, "packages/griffelib/src") # type: ignore[arg-type]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
build_path = Path(node.value.args[1].value, "packages/griffelib/src") # type: ignore[arg-type]
build_path = Path(node.value.args[1].value, "src") # type: ignore[arg-type]

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couldn't have applied this one because it broke tests.

Copy link
Member

@pawamoy pawamoy Jan 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, tests must be fixed accordingly :) (this code is part of our finder logic, surely we don't want to hardcode any griffe-specific paths in there)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working on the fix. Thank you for pointing me to the right direction, I wasn't thoughtful on this one!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, of course! Don't hesitate to use something else than "griffe" in tests if that makes it easier / less confusing / less error-prone 🙂

johnslavik and others added 3 commits January 19, 2026 16:01
Thanks!

Co-authored-by: Timothée Mazzucotelli <dev@pawamoy.fr>
Co-authored-by: Timothée Mazzucotelli <dev@pawamoy.fr>
@johnslavik johnslavik requested a review from pawamoy January 19, 2026 15:13
johnslavik and others added 2 commits January 19, 2026 16:44
Co-authored-by: Timothée Mazzucotelli <dev@pawamoy.fr>
@johnslavik
Copy link
Member Author

Perhaps we can also add "griffecli" in debug checks. Will do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

change: Split griffe to griffe and griffelib packages

3 participants