Skip to content
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

[ZEPPELIN-5810] Allow both package names jupyter_client and jupyter-client #4455

Merged
merged 1 commit into from
Sep 12, 2022

Conversation

Reamer
Copy link
Contributor

@Reamer Reamer commented Sep 1, 2022

What is this PR for?

This pull request changes the Python dependency check minimally to get high flexibility for the package check.

What type of PR is it?

  • Bug Fix

What is the Jira issue?

How should this be tested?

  • CI

Questions:

  • Does the licenses files need to update? No
  • Is there breaking changes for older versions? No
  • Does this needs documentation? No

@Reamer Reamer force-pushed the python_requirement branch 4 times, most recently from 1811f25 to 98d637b Compare September 1, 2022 13:52
@ebuildy
Copy link
Contributor

ebuildy commented Sep 2, 2022

This kind of code, very related to the environnement, should be moved from java to a shell or python script.

So this make easy to override and maitain it without recompiling all the java stuff.

Or a new setting for disable it.

@Reamer Reamer force-pushed the python_requirement branch from 98d637b to 7fcafe2 Compare September 7, 2022 08:30
@Reamer
Copy link
Contributor Author

Reamer commented Sep 7, 2022

Yes you are probably right. I wrote this bugfix without rebuilding the existing verification to fix the bug quickly.
If you want to rewrite the part, feel free to do so.

@Reamer Reamer requested review from zjffdu and jongyoul September 7, 2022 14:09

import java.util.function.Predicate;

public class PythonPackagePredicate<T> implements Predicate<T> {
Copy link
Contributor

Choose a reason for hiding this comment

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

T is always String?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For the moment, yes.

@Reamer Reamer requested a review from zjffdu September 12, 2022 07:17
@Reamer Reamer merged commit 23f3acf into apache:master Sep 12, 2022
@Reamer Reamer deleted the python_requirement branch September 12, 2022 08:53
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.

3 participants