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

Relax jupyter_events dependency requirement #57

Merged
merged 2 commits into from
Feb 16, 2023

Conversation

akchinSTC
Copy link
Contributor

@akchinSTC akchinSTC commented Feb 15, 2023

Opening this PR in response to an error I get when installing the Elyra package and following error

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
jupyter-server-fileid 0.6.0 requires jupyter-events~=0.5.0, but you have jupyter-events 0.6.3 which is incompatible.

@welcome
Copy link

welcome bot commented Feb 15, 2023

Thanks for submitting your first pull request! You are awesome! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please make sure you followed the pull request template, as this will help us review your contribution more quickly.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also a intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@akchinSTC
Copy link
Contributor Author

@kevin-bates - cc'ing

@codecov
Copy link

codecov bot commented Feb 15, 2023

Codecov Report

Base: 85.65% // Head: 85.65% // No change to project coverage 👍

Coverage data is based on head (362c565) compared to base (b2ae1ce).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #57   +/-   ##
=======================================
  Coverage   85.65%   85.65%           
=======================================
  Files           5        5           
  Lines         523      523           
  Branches       68       68           
=======================================
  Hits          448      448           
  Misses         53       53           
  Partials       22       22           
Impacted Files Coverage Δ
jupyter_server_fileid/extension.py 40.90% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@kevin-bates
Copy link
Member

@akchinSTC - do you mind rebasing the PR and backing out the home URL change since it was addressed via #55?

- Update dead link in project URL

Signed-off-by: Alan Chin <akchin@us.ibm.com>
@akchinSTC
Copy link
Contributor Author

@akchinSTC - do you mind rebasing the PR and backing out the home URL change since it was addressed via #55?

@kevin-bates - done, my fault for not noticing.

@kevin-bates kevin-bates added the bug Something isn't working label Feb 15, 2023
Copy link
Member

@kevin-bates kevin-bates left a comment

Choose a reason for hiding this comment

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

Thanks @akchinSTC - these changes look good.

I would like @dlqqq to confirm the relaxation of the jupyter_events version before merging and have requested his review.

@kevin-bates kevin-bates requested a review from dlqqq February 15, 2023 01:38
pyproject.toml Outdated
dependencies = ["jupyter_server>=1.15, <3", "jupyter_events~=0.5.0"]
dependencies = [
"jupyter_server>=1.15, <3",
"jupyter_events"
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we can just change this to:

"jupyter_events>=0.5.0,<1"

I think we do have a minimum version requirement on jupyter_events==0.5.0, though I admit I cannot recall the exact reason why.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm OK with dropping the <1 version qualifier too, I just figured I'd add that in case v1 had any major breaking changes. But that could be premature reasoning.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, given "0.x" releases can break APIs at any time, I'm not sure what a cap is going to do in this case, other than ensuring a release is necessary to support jupyter_events==1.0. I don't think the floor is necessary at this point either, but having a floor is fine.

Copy link
Collaborator

@dlqqq dlqqq Feb 16, 2023

Choose a reason for hiding this comment

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

I think it's more practically plausible a 1.0 release would have breaking changes than a 0.x release, but again, you're right in pointing out that it makes no technical difference. Feel free to ignore my suggestion, I don't feel strongly on this topic.

I don't like the fact that this change leaves us open to breaking on every minor release of jupyter_events, but given that incompatible versions freak pip out, this is almost a case of "existing behavior".

I don't think the floor is necessary at this point either, but having a floor is fine.

Better safe than sorry? 😁

@dlqqq
Copy link
Collaborator

dlqqq commented Feb 16, 2023

BTW, I'll release 0.7.0 pending merge and green CI, just for our beloved Elyra users 🤗. I've already moved any remaining open issues in the milestone to 0.8.0.

Signed-off-by: Alan Chin <akchin@us.ibm.com>
@akchinSTC
Copy link
Contributor Author

@kevin-bates @dlqqq - thanks for the approvals and comments. Changes made and pushed!

@dlqqq dlqqq merged commit f42d481 into jupyter-server:main Feb 16, 2023
@welcome
Copy link

welcome bot commented Feb 16, 2023

Congrats on your first merged pull request in this project! 🎉
congrats
Thank you for contributing, we are very proud of you! ❤️

@dlqqq
Copy link
Collaborator

dlqqq commented Feb 16, 2023

Thank you very much! @akchinSTC 🤗

@dlqqq
Copy link
Collaborator

dlqqq commented Feb 16, 2023

@akchinSTC 0.7.0 is released! 🎉

@akchinSTC
Copy link
Contributor Author

@dlqqq - can confirm this resolves the original issue, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants