-
-
Notifications
You must be signed in to change notification settings - Fork 466
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
PROJECT_ROOT conveted to absolute path in lockfile #451
Comments
I think the behavior of current is same as |
The solution is to set up a workspace, then all local dependencies will be added to requirements.lock as simply But then you still can't install the path package ( What I've done is installed the path package as an optional dependency COPY hoge/pyproject.toml requirements.lock ./
RUN sed -i '/^-e file:/d' requirements.lock
RUN pip install '.[local]' --constraint requirements.lock |
Seriously, this. Otherwise, it can't be shared. |
Unfortunately the choices here are limited because the lock file "standard" is relatively restricted. Rye already prefers relative paths in lock files where possible. |
Thank. I wanted to install the openapi_client generated by openapi positioned in a subdirectory as a package. This issue seem to be resolved by properly setting the packageName option in the openapi generator (e.g., |
I got some results with uv. In requirements.lock file, wrote local path dependency like xxx @ file:///abc/def is related to your build backend. here is used pyproject.toml:
I checked the generated lock file of three backends and got a result: hatch: failed to build: "ValueError: Unknown context field here is a lock file generated by using setuptools backend:
My guessuv seems to use local path info in wheels Possible solutionIf uv could convert the path to the relative, like "file:///${PROJECT_ROOT}" in its post-process if dependencies in pyproject.toml has "file:///${PROJECT_ROOT}" like path. |
Steps to Reproduce
Expected Result
../fuga
Actual Result
fuga @ file:///tmp/hoge/../fuga
Version Info
Stacktrace
No response
The text was updated successfully, but these errors were encountered: