Replies: 4 comments 12 replies
-
I would like to see local dependencies work with relative paths primarily. Both of these: A. depencency = "./subdirectory" Because, sibling directories is one way to handle monorepo style projects. Especially those where lots of disparate projects all live in the same repo. Current workspaces are a way to have local dependencies without declaring them, so they work like an alternative to (A) - all packages in a workspace are just installed together, so they can be used together without even declaring the dependency. Ideally it should be declared, shouldn't it? Workspaces can't support the scenario (B) - not the most general case of it, so that makes it seem like relative path dependencies are more important than workspaces(?) The ideal I see is something I learned from Rust (too), you declare a dependency like foo = { version = "1", path = "./foo" } and it's a path dependency in-tree, but once turned into a wheel it's just a named dependency (dependency on "foo"), which will work fine if both packages are built and installed together. |
Beta Was this translation helpful? Give feedback.
-
i very much appreciate this. but the filesystem encoded dependency is not flexible. such a dependency graph should be generated. (what if something else in the 'root' depends on something you have as a deep 'child'?) see my project above for how i encoded deps via yamls files... makefile style. |
Beta Was this translation helpful? Give feedback.
-
sorry about that. the 'workspace' deps are the 'includes' keys. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
what's the vision for creating 'local dependencies'? would it be possible to create project deps from workspace dep graphs ?
here's where i'm coming from https://github.com/pnnl/hydraconda/tree/master/project. i've used conda and the ability to compose ugly jinja templated yaml files to create simultaneous execution environments mainly for data science scenarios where i don't care about packaging too much. but it would be nice to converge on some of the ideas expressed in rye.
i've contemplated switching to nix for my programming-language agnostic needs but it's difficult to use!
Beta Was this translation helpful? Give feedback.
All reactions