Replies: 2 comments
-
Indeed, given that One might ask why the other project "happens" to be within the workspace's root folder, which is a valid question. In my case, I use (virtual) workspaces as a drop-in replacement for a global |
Beta Was this translation helpful? Give feedback.
-
If you add the following to the nested project's
Determined this behavior by looking at this: Line 626 in 10d691d Lines 381 to 398 in 10d691d |
Beta Was this translation helpful? Give feedback.
-
I'm experiencing an issue with Rye when trying to manage environments for projects that are not part of a workspace. My project structure includes two examples within the
examples
folder. The first example,example_1
, relies on the main project and is correctly set up within the workspace inpyproject.toml
:Running
rye init
withinmy_project/examples/example_1/
works as expected.However, the second example,
example_2
, does not depend on the main project, and I intended to use Rye for its environment management separately. Despite successfully runningrye init
inmy_project/examples/example_2/
, attempting to synchronize the environment withrye sync
results in an error:This error suggests that Rye requires all projects to be included in a workspace, which seems to be an unnecessary constraint. As a workaround, I had to resort to the traditional
python -m venv
approach to manageexample_2
's environment.Is there a way to use Rye for projects that are not listed in the workspace, or is this a limitation of the current implementation?
Beta Was this translation helpful? Give feedback.
All reactions