-
Notifications
You must be signed in to change notification settings - Fork 90
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
[Spike] Decide new name for kedro-datasets
optional dependencies
#313
Comments
kedro-datasets
optional dependencies
Notice that this is starting to creep up as we do dynamic inclusion of
Contents of
|
Extras with illegal names are not being pulled anymore in pip 23.3 onwards #553 This was already marked as high, but now it's affecting users for real cc @noklam @ankatiyar |
The workaround for now is to tell users to install, say, |
Another user have a problem. At first he has a bug where But |
The key decision here is: do we still want to provide an optional group per-dataset? If yes, we have to decide a naming scheme. |
kedro-datasets
optional dependencieskedro-datasets
optional dependencies
From the Airflow 2.8.2 release notes: https://github.com/apache/airflow/releases/tag/2.8.2
This is exactly our problem. |
Fixed by #570, will see the light in the next release 👍🏽 |
The root cause of the problems we had last week (see #306) with the optional dependency group names in
pyproject.toml
is thatkedro-datasets
extras names just don't align with Python packaging standards: https://packaging.python.org/en/latest/specifications/core-metadata/#provides-extra-multiple-useTherefore,
pip install kedro-datasets[pandas.CSVDataSet]
is out of line with current packaging standards.From https://peps.python.org/pep-0685/:
So, why was this working before? See also in the PEP:
The reason is: setuptools hasn't fully implemented PEP 685 yet: pypa/setuptools#3586
So, our mangling of extras in
setup.py
before #263 worked, but after transitioning to self-referential extras, we fell victims of name normalization.I'm voting against switching to Poetry, Hatch, PDM, or any other system that allows this behavior, because it's going to bite us in the future. We need a short-term solution (either revert #263 or go for @DimedS #307) and a long term solution (possibly deprecating extras names with dots and offer an alternative syntax for our users).
Originally posted by @astrojuanlu in #306 (comment)
The text was updated successfully, but these errors were encountered: