You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Under some circumstances, kedro micropkg package might leak other packages. This happens because of how we're using the package finding functionality of setuptools:
This works fine but when I try to uninstall it I notice it is also in test folder which I didn't expect.
(kedro_core) pattern main % pip uninstall nok
Found existing installation: nok 0.1
Uninstalling nok-0.1:
Would remove:
/Users/Nok_Lam_Chan/miniconda3/envs/kedro_core/lib/python3.8/site-packages/nok-0.1.dist-info/*
/Users/Nok_Lam_Chan/miniconda3/envs/kedro_core/lib/python3.8/site-packages/nok/*
/Users/Nok_Lam_Chan/miniconda3/envs/kedro_core/lib/python3.8/site-packages/tests/* <- what is this?
Description
Under some circumstances,
kedro micropkg package
might leak other packages. This happens because of how we're using the package finding functionality of setuptools:kedro/kedro/framework/cli/micropkg.py
Lines 42 to 46 in a8eacd1
If there's any other directory with an
__init__.py
, it will be considered a Python package and included.Context
Originally posted by @noklam in #2761 (review)
Steps to Reproduce
(TBC @noklam)
Expected Result
Only the pipeline package is installed.
Actual Result
Extraneous package is leaked.
Your Environment
pip show kedro
orkedro -V
):python -V
):The text was updated successfully, but these errors were encountered: