-
Notifications
You must be signed in to change notification settings - Fork 943
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
Specify editable files in pyproject.toml #1828
Comments
That's an interesting use-case. I'd need to think on the "right" way to do this. |
I mainly invented --unsafe-package flag for this specific use case and would do,
|
@hmc-cs-mdrissi - Sorry for my ignorance, does |
Okay yeah, that appears to be the case. We could support that without much trouble... |
Would it still include the package's dependencies in the pip compile? Thinking about what Mehdi says, I'm lead to believe yes. Thanks both y'all! |
Unsafe package has no effect on resolution and dependencies are all calculated same as before. It only affects the file generation by removing the exact dependencies mentioned. It should be equivalent to a post processing step that removes packages requested as unsafe. |
👍 Thanks @hmc-cs-mdrissi. |
My suggestion now is to use |
I have a pip compiled requirements file specifying a few local packages:
requirements file
I then have a separate requirements file that allows me to install the local packages as editable even though they're already statically defined in the pip compiled requirements file:
This then raises:
I have it set up like this so that I can use pip compile to ensure all local packages' dependencies in the monorepo are on the same version across local packages. I think there's a workaround with hatch (ref pypa/hatch#588), but since I do
uv pip install -r requirements.txt
instead of with hatch, the post install won't ever run (I've never used hatch, so maybe I'm not following it right).Is there a way with uv and any build system that can let me install editable files by specifying in pyproject.toml?
The text was updated successfully, but these errors were encountered: