-
Notifications
You must be signed in to change notification settings - Fork 1
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
Does not modify export command #28
Comments
Currently it doesn't support the export command because I didn't personally have a use case for it but it would definitely make sense. What behavior would you expect from |
Good question! My use-case is the combination with nx.dev, and the nx-python plugin. It generates per-subproject lockfiles, even when using a shared virtual environment. Selecting only the relevant dependencies would be purest, of course, but I'm already happy with just exporting the whole root lockfile. |
In that case, I think |
Indeed, that works, but the nx-python plugin runs it with in the subproject root and expects a lockfile there. (See the output in my first message.) I do understand this is a pretty particular case. If you have pointers, I might also take a stab at it myself. I did look at the code, but could not understand it with just a casual glance. |
Of course, feel free to give it a shot! Contributions are always welcome! I think there are a few things to take into account:
|
I created a very simple PR that implements the first suggestion: #29 The change required was suspiciously simple, the LockCommand just worked. I'm not sure what kind of tests would be expected. |
Thank you for the PR! Indeed there is not many changes required. In order to test the command, you need to install this version of the plugin as a plugin for poetry (e.g as editable install) and then try I tried it and I get an error:
The solution would be to update
I am currently working on improving the testing so I would let this one go without tests for now. I will have a better test suite next week |
(But that reminds me I should add instructions on how to setup the plugin for development! I created an issue as a reminder) |
When running
poetry export
, this is the output:Does it make sense to also modify the
export
command?The text was updated successfully, but these errors were encountered: