-
Notifications
You must be signed in to change notification settings - Fork 283
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
Remove dependency on ipython_genutils. #622
Conversation
LGTM |
Thanks @davidbrochart I'm going to get that in soon and do a release unless there are objections then. |
I agree that the changes look good. My only question is what is the intention of this moving forward? Is the rest of the Jupyter stack supposed to remove what What is the timeframe that the rest of the stack be updated? |
See ipython/ipython_genutils#17 and ipython/ipython#12840 ... aside from python-ipykernel I think we at least see the light in the end of the tunnel of converting whole ipython/jupyter universe from their own testing utilities and |
Yes, the point is for each package to duplicate version of the utilities if they need to; ipython_genutils is an artifact of The big split (2015) and the complexity at the time to support both Python 2 and 3 (as it predates In many cases I even expect ipython_genutils to be replaced by no-op.
|
Thank you for the responses @mcepl and @Carreau - they were helpful. I agree that most will fall out. My comment was more about the methods added to
Thanks for the hint that import_item also exists in traitlets. The only difference between what you've added here and the version in traitlets is that the parameter is validated to be a string in the traitlets version. Since all of the uses of |
Good point, added a commit with the following:
And some import reshuffling to group similar imports from various packages. I hear your concern about duplicated functionality; in particular for I can make utils private if that makes you more comfortable ? |
Thanks for the update Matthias.
Since it's very likely that downstream applications will make use of the same functions in their upstream dependencies, and given these methods have some concerns, I'd be inclined to make these private until those concerns are addressed. We might also find that once the IPython-specific items have been addressed, they might make more sense in another package, etc. Thank you. |
I've made the two functions in utils private. |
Failures appear to be due to the new 6.0.0a0 of ipykernel. |
I agree. In the meantime, should we adjust our CI dependency installation to not pull with |
IPython Genutils seem to start to be troublesome to package for some Linux Ditributions because of Python2/3 compat. Get rid of it. It was not in the dependencies anyway...
As pointed out by Kevin, the method is already there in traitlets and does more validation that the one in ipython_genutils. I thought it was not in traitlets 4.x; but is indeed there and has been for about 5 years.
rebase on master to avoid the issues with |
Pushed update to the changelog to list most significant changes, and tagged many PRs with corresponding milestone for easy find. |
IPython Genutils seem to start to be troublesome to package for some Linux
Ditributions because of Python2/3 compat. Get rid of it.
It was not in the dependencies anyway...