-
-
Notifications
You must be signed in to change notification settings - Fork 464
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
Provide a way to add local packages as editable #856
Comments
There is today with workspaces. There is not for packages contained outside of a workspace. Basically every member of a workspace is editable out of the box. But I agree that editable installs for other packages would be nice to have too. |
I'll give it a try. I noticed workspaces in the documentation, but thought that virtual packages and workspaces are mutually exclusive. IIUC based on your comment, they are not, is that so? (I made a virtual project rather than a workspace because the documentation advised that if the top level package shouldn't be importable, then opt for virtual projects) |
@ma-sadeghi you can combine, I was thinking maybe rye can show how to do that, #857, feels the most natural? |
The issue with editable installs from other locations is that it's not entirely clear where that information should be stored. Probably not in |
I think so, because I'd like to commit the project.toml file to git history, which would make it not universal |
I'm trying to get editable installs using a workspace, but not all of the dependencies are in the current directory tree. Unfortunately, creating symlinks to those directories, then attempting to use those symlinks in the workspace's Copying the files into a subdirectory works fine, and it is installed editable. It would seem to me that supporting symlinks within a workspace's |
I think a feature like this is needed, but I am not sure about the best approach. In a monorepo I am working on, there is the following structure:
Each project should be usable independently and their dependencies may conflict (so a top level workspace does not apply). I would like for users of the repo to be able to Above I only showed a single dependencies per project, but in the future there may be more than one dependency from the monorepo for a given project, e.g.,
One approach I considered is allowing each project to have a workspace definition which is aware not only of sub-projects in its own directory but also of sibling projects in its parent project(s). That seems like the most natural approach to this problem and just requires that projects which are part of a virtual project also search for |
I have a similar problem to @bnorick. I tried for as long as possible to keep a monorepo workspace working. However, for me Being able to keep my projects isolated is currently much nicer than having The One Workspace Requirements Set to Rule Them All. It's simply not possible because of my The problem is that This singular issue has me moved back to My natural inclination is to just have My workaround right now is, on every single update:
|
Currently, there seems to be no way of adding local dependencies as editable. I thought
rye add package --path path/to/package
installspackage
in editable mode, but apparently not. This is super helpful (crucial) when developing multiple packages that (might) depend on each other. For more context: I've only tried in a virtual project, not a workspace.The text was updated successfully, but these errors were encountered: