-
Notifications
You must be signed in to change notification settings - Fork 54
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
Add '--exclude' option #255
base: main
Are you sure you want to change the base?
Conversation
7399348
to
0cdd5db
Compare
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
sounds like you should be making use of either groups or extras, depending on what your use case is. I doubt that |
@dimbleby Thanks for your reply! No, I can't use extras or groups. If dependency groups could be required, it also would help with my case. |
Apparently PR also could solve this issue #40
|
#40 seems already to be solved by using groups I cannot understand your use case. If you have dependencies that are definitely always required by your project, then an export that does not mention those dependencies does not make sense to me: it seems plainly to be a faulty export Probably you would be better served by post-processing the exported requirements.txt, rather than trying to make poetry export the wrong thing. |
I have two Python packages: packageA and packageB. packageB is declared as a required dependency for packageA. For local development of packageA, I use the latest version of packageB from a PyPI repository. The poetry.lock file contains a link to the PyPI repository for packageB. For building as a part of monorepo project, I need to exclude packageB with its dependencies during export and install packageB from previosly built whl. I could use I solve this by processing Could you possibly provide me some suggestions for this case or post-processing only true way? |
In my project I need to exclude a list of specified packages with their dependencies when exporting.
Then I use exported requirements.txt to install all exported deps and install a list of specified packages from whl files which were built locally in the same job.
Adding the exclude option solves my issue.
I hope it can be useful in other cases and will be integrated into the official release.