Skip to content

Refactor - Allow passing extra package name to check dependency #2577

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

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

trgiangdo
Copy link
Member

Type of PR

  • 🛠 Refactor

Description

The _check_dependency_is_installed() function now accept the extra_taipy_package_name to be extendable.

Also, the taipy sub-library name can be provided.

@trgiangdo trgiangdo requested review from jrobinAV and Copilot April 18, 2025 08:15
@trgiangdo trgiangdo self-assigned this Apr 18, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

The PR refactors the dependency check mechanism by allowing an extra package name to be passed when verifying installations.

  • Updated dependency check calls in Mongo Data Node and S3 Data Node to include an extra package parameter.
  • Modified the _check_dependency_is_installed function interface to support the extra package and an optional sublibrary name.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
taipy/core/data/mongo.py Updated dependency check call with an extra package parameter.
taipy/core/data/aws_s3.py Updated dependency check call with an extra package parameter.
taipy/core/common/_check_dependencies.py Refactored function signature to accept extra package parameters.

jrobinAV
jrobinAV previously approved these changes Apr 21, 2025
Copy link
Member

@jrobinAV jrobinAV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am ok for now to unblock the azure topic.

However, I would like to have a centralized module in taipy.common to check dependencies. This should also include the GUI and enterprise packages.
Please create an issue for that. Thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants