Skip to content
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

Dev-dependencies libraries are not retrieved when the workspace is activated #170

Closed
tosaka07 opened this issue May 16, 2023 · 0 comments · Fixed by #196
Closed

Dev-dependencies libraries are not retrieved when the workspace is activated #170

tosaka07 opened this issue May 16, 2023 · 0 comments · Fixed by #196
Milestone

Comments

@tosaka07
Copy link

tosaka07 commented May 16, 2023

Steps to Reproduce

When the workspace is activated in rye and rye sync is performed, dev-dependencies libraries are not retrieved. They also cannot be found in the site-packages.

Expected Result

The libraries, including the dev-dependencies of the subprojects, should be retrieved and executable with rye run.

Actual Result

❯ rye init ws_example
success: Initialized project in /Users/***/workspace/projects/rust/ws_example
  Run `rye sync` to get started

❯ cd ws_example/src/ws_example

❯ rye init sub_example
success: Initialized project in /Users/***/workspace/projects/rust/ws_example/src/ws_example/sub_example
  Run `rye sync` to get started

❯ cd ../../

❯ rye add --dev black
Added black~=23.3.0 as dev dependency

❯ echo "[tool.rye.workspace]" >> pyproject.toml

❯ rye sync
Initializing new virtualenv in /Users/***/workspace/projects/rust/ws_example/.venv
Python version: cpython@3.11.3
Generating production lockfile: /Users/***/workspace/projects/rust/ws_example/requirements.lock
Generating dev lockfile: /Users/***/workspace/projects/rust/ws_example/requirements-dev.lock
Installing dependencies
Obtaining file:///. (from -r /var/folders/lw/qnr25tx16dg872cn6zf168krgkyq08/T/tmpl1uvkt4p (line 1))
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... done
  Preparing editable metadata (pyproject.toml) ... done
Obtaining file:///src/ws_example/sub_example (from -r /var/folders/lw/qnr25tx16dg872cn6zf168krgkyq08/T/tmpl1uvkt4p (line 2))
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... done
  Preparing editable metadata (pyproject.toml) ... done
Building wheels for collected packages: ws-example, sub-example
  Building editable for ws-example (pyproject.toml) ... done
  Created wheel for ws-example: filename=ws_example-0.1.0-py3-none-any.whl size=1072 sha256=b8b3fe307b2b05f2a8cb9c8a6de9921512568238609e7ce75b32f667b17291ce
  Stored in directory: /private/var/folders/lw/qnr25tx16dg872cn6zf168krgkyq08/T/pip-ephem-wheel-cache-63dijkb7/wheels/97/54/f5/d849319cdfa096e074df352654ee2e7c919da8951f090690c6
  Building editable for sub-example (pyproject.toml) ... done
  Created wheel for sub-example: filename=sub_example-0.1.0-py3-none-any.whl size=1090 sha256=34aae67490d669f56c8094bab37c6a69315ab7e436247d110b5295ac75ec4998
  Stored in directory: /private/var/folders/lw/qnr25tx16dg872cn6zf168krgkyq08/T/pip-ephem-wheel-cache-63dijkb7/wheels/e9/77/76/d7623e9fb7566f7785a461797869b00c9029da1bf8268a8747
Successfully built ws-example sub-example
Installing collected packages: ws-example, sub-example
Successfully installed sub-example-0.1.0 ws-example-0.1.0
Done!

❯ cat requirements-dev.lock
# generated by rye
# use `rye lock` or `rye sync` to update this lockfile
#
# last locked with the following flags:
#   pre: false
#   features: []
#   all-features: false

-e file:src/ws_example/sub_example
-e file:.

❯ cat requirements.lock
# generated by rye
# use `rye lock` or `rye sync` to update this lockfile
#
# last locked with the following flags:
#   pre: false
#   features: []
#   all-features: false

-e file:src/ws_example/sub_example
-e file:.

❯ ls .venv/lib/python3.11/site-packages/
__pycache__                 _virtualenv.pth             _virtualenv.py              sub_example-0.1.0.dist-info sub_example.pth             ws_example-0.1.0.dist-info  ws_example.pth

Version Info

rye 0.1.0
commit: unknown (4c5ef5d 2023-05-15)
platform: macos (aarch64)
self-python: cpython@3.10

Stacktrace

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants