-
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
Consolidate all requirements #2597
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Might be solved by upgrading setuptools (otherwise the requirements syntax is probably invalid). Great to see progress on moving to |
Thanks for the encouragement @sbrugman! Indeed that's the idea, we want to move everything to modern packaging standards. This is the way 🚀 |
4e7d2a8
to
42145d5
Compare
42145d5
to
3a4b52d
Compare
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
3a4b52d
to
dd04cb0
Compare
140f146
to
dd04cb0
Compare
I'm not waiting for pylint to fix this though, will ignore this for good |
a024621
to
0bba85f
Compare
I removed import sorting from pylint since we were using isort anyway. All tests passing 👍🏽 |
|
||
if reqs_path.is_file(): | ||
old_reqs = reqs_path.read_text().splitlines() | ||
new_reqs = [] | ||
for req in old_reqs: | ||
if req.startswith("kedro"): | ||
new_reqs.append(kedro_reqs) | ||
if req.startswith("kedro") and Requirement(req).name.lower() == "kedro": |
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.
The logic before was to replace kedro
with all kedro
dependencies. In a way, something like pip install kedro --dependencies-only
(which doesn't exist I believe).
Now I'm just removing kedro, because this is only for our tests and the behave
environment has the development version of kedro preinstalled already.
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.
Also I made one improvement: parsing the requirement name so we are only dropping kedro
and not, say, kedro-datasets
or kedro-airflow
. This was incorrect before.
@@ -139,10 +132,77 @@ def _collect_requirements(requires): | |||
} | |||
|
|||
extras_require["all"] = _collect_requirements(extras_require) | |||
extras_require["test"] = [ |
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.
These are more or less the same as kedro-datasets[all]
, but since we're removing datasets from framework soon, I just copy pasted test_requirements.txt
here and didn't aim to substantially change what we're doing. Most of these can go away in 0.19.0.
0bba85f
to
8cc2ca5
Compare
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 making this change @astrojuanlu ⭐ I'm glad the requirements
are cleaned up like this. I would add this change to the release notes as well.
This comment was marked as resolved.
This comment was marked as resolved.
Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>
kedro is preinstalled in the behave environment, so this should not be needed. In exchange, requirements.txt files can always be read by setuptools automatic parsing. See McK-Private/private-kedro#352 (comment) for motivation of the original logic. Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>
Fix gh-2588. Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>
Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>
Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>
Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>
Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>
Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>
8cc2ca5
to
4104e68
Compare
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 @astrojuanlu!
* Empty Signed-off-by: Juan Luis Cano Rodríguez <[email protected]> * Avoid adding problematic lines to requirements.txt kedro is preinstalled in the behave environment, so this should not be needed. In exchange, requirements.txt files can always be read by setuptools automatic parsing. See McK-Private/private-kedro#352 (comment) for motivation of the original logic. Signed-off-by: Juan Luis Cano Rodríguez <[email protected]> * Consolidate all requirements Fix gh-2588. Signed-off-by: Juan Luis Cano Rodríguez <[email protected]> * Fix dependencies Signed-off-by: Juan Luis Cano Rodríguez <[email protected]> * Ignore import order in pylint in favour of isort Signed-off-by: Juan Luis Cano Rodríguez <[email protected]> * Do not replace kedro plugins in e2e tests Signed-off-by: Juan Luis Cano Rodríguez <[email protected]> * Fix dependabot config Signed-off-by: Juan Luis Cano Rodríguez <[email protected]> * Add release notes Signed-off-by: Juan Luis Cano Rodríguez <[email protected]> --------- Signed-off-by: Juan Luis Cano Rodríguez <[email protected]> Signed-off-by: Nok <[email protected]>
Description
Fix gh-2588.
Development notes
dependency/requirements.txt
topyproject.toml
, removed relevant code fromsetup.py
test_requirements.txt
tosetup.py
(where all the optional dependencies live at the moment)test_requirements.txt
anddependency/requirements.txt
in CINotice that I had to partially revert https://github.com/quantumblacklabs/private-kedro/pull/365 (private link). I did a quick test and the change seemed innocuous, but we should make sure that there are no problems when making a release (see original rationale https://github.com/quantumblacklabs/private-kedro/pull/352#issuecomment-564948371 also private)
Tested on Gitpod (Linux) on 3.7, 3.8, 3.9, and 3.10 ✔️
pip check
always successful afterpip install .[all,test]
(no conflicting requirements).Checklist
RELEASE.md
file