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
Airbyte CDK: fix file-based deps #36695
Conversation
Signed-off-by: Artem Inzhyyants <artem.inzhyyants@gmail.com>
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think previously the unit tests were still passing, right?
Can you please add the tests that would use these dependencies, so we don't end up in this situation again?
Airbyte CDK tests use command in CI :
We already have CAT/ integration tests in connectors that use CDK deps, see https://github.com/airbytehq/airbyte/actions/runs/8480072489/job/23235149671 as example. Could you please create an issue with description for tests? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for tracking this down!
@@ -62,8 +64,6 @@ datamodel_code_generator = "0.11.19" | |||
freezegun = "*" | |||
mypy = "*" | |||
pandas = "2.0.3" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pandas
is the only other one on this list that i'm suspicious about being a "dev-only" dependency. Thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@erohmensing , I'm ok with this. The only line with pandas I found is:
airbyte/airbyte-cdk/python/unit_tests/sources/file_based/in_memory_files_source.py
Line 16 in eb31e4d
import pandas as pd |
Signed-off-by: Artem Inzhyyants <artem.inzhyyants@gmail.com>
Signed-off-by: Artem Inzhyyants <artem.inzhyyants@gmail.com>
What
fix deps for file based CDK
Reason:
pdf2image and "pdfminer.six" are missing
How
move packages to [tool.poetry.dependencies]