-
Notifications
You must be signed in to change notification settings - Fork 906
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
Document clearly thatkedro micropkg pull
relies on sdists
#2542
Comments
While working on gh-2273 I realized that |
kedro micropkg pull
relies on sdists that might not be therekedro micropkg pull
relies on sdists
From another user report https://www.linen.dev/s/kedro/t/11968557/hi-team-question-on-kedro-pull-micropkg-and-sdist-here-would#553527b9-37fd-47c0-b289-b667dfc9bfa4, I think there are three ways we could improve the code, apart from the documentation, without changing its behavior:
|
More broadly, there's a strong coupling between what
|
Fix gh-2542. Signed-off-by: Juan Luis Cano Rodríguez <juan_luis_cano@mckinsey.com>
Fix gh-2542. Signed-off-by: Juan Luis Cano Rodríguez <juan_luis_cano@mckinsey.com>
Fix gh-2542. Signed-off-by: Juan Luis Cano Rodríguez <juan_luis_cano@mckinsey.com>
Fix gh-2542. Signed-off-by: Juan Luis Cano Rodríguez <juan_luis_cano@mckinsey.com>
Fix gh-2542. Signed-off-by: Juan Luis Cano Rodríguez <juan_luis_cano@mckinsey.com>
Fix gh-2542. Signed-off-by: Juan Luis Cano Rodríguez <juan_luis_cano@mckinsey.com>
Fix gh-2542. Signed-off-by: Juan Luis Cano Rodríguez <juan_luis_cano@mckinsey.com>
Fix gh-2542. Signed-off-by: Juan Luis Cano Rodríguez <juan_luis_cano@mckinsey.com>
Fix gh-2542. Signed-off-by: Juan Luis Cano Rodríguez <juan_luis_cano@mckinsey.com>
Description
The documentation for
kedro micropkg pull
lists three possible use cases:kedro micropkg pull dist/<pipeline_name>-0.1-py3-none-any.tar.gz
(local directory)kedro micropkg pull s3://my_bucket/<pipeline_name>-0.1-py3-none-any.tar.gz
(cloud storage)kedro micropkg pull <pypi_package_name>
(PyPI-like endpoint)The last one relies on
pip download --no-deps
to download the corresponding source distributions:kedro/kedro/framework/cli/micropkg.py
Lines 325 to 327 in ae20228
However, if the micropackage in question was published as a wheel, then
pip download
grabs that wheel and this code fails:kedro/kedro/framework/cli/micropkg.py
Lines 328 to 336 in ae20228
Steps to Reproduce
Expected Result
The wheel is properly used.
Actual Result
Workaround
Using the
--no-binary=:all:
option inpip download
works:Your Environment
Include as many relevant details about the environment in which you experienced the bug:
pip show kedro
orkedro -V
): kedro 0.18.7python -V
): 3.8.16The text was updated successfully, but these errors were encountered: