-
-
Notifications
You must be signed in to change notification settings - Fork 63
Fix pyproject.toml workspace config and restore griffe CLI branding #436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: johnslavik <64036239+johnslavik@users.noreply.github.com>
griffe and griffelib packages with uv workspaces| Our test suite is located in the `tests` folder. It is located outside of the sources as to not pollute distributions (it would be very wrong to publish a `tests` package as part of our distributions, since this name is extremely common), or worse, the public API. The `tests` folder is however included in our source distributions (`.tar.gz`), alongside most of our metadata and configuration files. Check out `pyproject.toml` to get the full list of files included in our source distributions. | ||
|
|
||
| The test suite is based on [pytest](https://docs.pytest.org/en/8.2.x/). Test modules reflect our internal API structure, and except for a few test modules that test specific aspects of our API, each test module tests the logic from the corresponding module in the internal API. For example, `test_finder.py` tests code of the `griffelib._internal.finder` internal module, while `test_functions` tests our ability to extract correct information from function signatures, statically. The general rule of thumb when writing new tests is to mirror the internal API. If a test touches to many aspects of the loading process, it can be added to the `test_loader` test module. | ||
| The test suite is based on [pytest](https://docs.pytest.org/en/8.2.x/). Test modules reflect our internal API structure, and except for a few test modules that test specific aspects of our API, each test module tests the logic from the corresponding module in the internal API. For example, `test_finder.py` tests code of the `griffe._internal.finder` internal module, while `test_functions` tests our ability to extract correct information from function signatures, statically. The general rule of thumb when writing new tests is to mirror the internal API. If a test touches to many aspects of the loading process, it can be added to the `test_loader` test module. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
griffe._internal.finder -- this and similar are wrong
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 8ecd876. Updated all griffe._internal references to griffelib._internal in architecture.md, loading.md, navigating.md, expressions.md, and runtime-objects.md to reflect the new package structure.
|
@copilot Do stuff |
Co-authored-by: johnslavik <64036239+johnslavik@users.noreply.github.com>
Could you please clarify what specific changes or actions you'd like me to make? |
For reviewers
Description of the change
Fixes CI failures and restores backward compatibility for CLI usage after the griffe/griffelib/griffecli workspace migration.
Changes:
tool.uv.sourcessection declaringgriffelibandgriffeclias workspace members (fixes uv sync failure)progfromgriffelibtogriffefor backward-compatible command-line usagegriffe check/griffe dumpinstead ofgriffeclipython -m griffeclias an alternativegriffe._internalreferences togriffelib._internalin documentation (architecture.md, loading.md, navigating.md, expressions.md, runtime-objects.md) to reflect the new package structureRelevant resources
griffeandgriffelibpackages with uv workspaces #431, based on Prepare for 2.0 (finalize deprecations) #433, closes change: Splitgriffetogriffeandgriffelibpackages #408✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.