-
Notifications
You must be signed in to change notification settings - Fork 0
Set up uv workspace #51
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
| - id: deptry | ||
| name: deptry for lynxkite-app | ||
| entry: bash -c 'cd lynxkite-app && deptry .' | ||
| - id: deptry | ||
| name: deptry for lynxkite-core | ||
| entry: bash -c 'cd lynxkite-core && deptry .' | ||
| - id: deptry | ||
| name: deptry for lynxkite-graph-analytics | ||
| entry: bash -c 'cd lynxkite-graph-analytics && deptry .' | ||
| - id: deptry | ||
| name: deptry for lynxkite-pillow-example | ||
| entry: bash -c 'cd lynxkite-pillow-example && deptry .' |
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.
Unfortunately, running deptry . in the root doesn't work. fpgmaas/deptry#1060 (comment)
| DEP001 = ["matplotlib", "griffe", "pycrdt"] | ||
| DEP003 = ["matplotlib", "griffe", "pycrdt"] |
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.
These are conditional imports. Optional dependencies.
|
|
||
| typeof = type # We have some arguments called "type". | ||
|
|
||
| CACHE_WRAPPER = None # Overwrite this to configure a caching mechanism. |
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.
To keep lynxkite-core lightweight, I've moved the joblib cache setup to lynxkite-app. I'm not sure it's worth it — let's reverse it if we see any downsides.
| view: str = "basic", | ||
| outputs: list[str] | None = None, | ||
| params: list[Parameter] | None = None, | ||
| slow: bool = False, | ||
| color: str | None = None, | ||
| cache: bool | None = None, |
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.
To address Griffe warnings, which I saw when I checked if mkdocs still works. (It does.)
f8d1960 to
20d727f
Compare
|
I'll merge this to fix CI. But I'd still be grateful for a review! 🙏 |
Due to astral-sh/uv#14197 in uv 0.8.0 our GitHub Actions build is failing with:
I'm not sure what drove me to work on this on a Sunday at midnight, but I thought setting up a "workspace", as described in https://docs.astral.sh/uv/concepts/projects/workspaces/ would be the best solution. Seems actually pretty nice to me, but I had to work out a few issues. Like other than
lynxkite-app, our packages lacked a build system. And a lot of dependencies were wrongly declared. How did this ever work?