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

Remove dependency on nose (port to pytest) #17

Open
mcepl opened this issue Jan 11, 2021 · 9 comments
Open

Remove dependency on nose (port to pytest) #17

mcepl opened this issue Jan 11, 2021 · 9 comments

Comments

@mcepl
Copy link

mcepl commented Jan 11, 2021

I am a maintainer of Python packages in openSUSE, and I am on my crusade of eliminating nose1 from our distribution. When I look at its repository on https://github.com/nose-devs/nose, the last release 1.3.7 was on 2 Jun 2015, and even the last commit on the master branch was on 4 Mar 2016.

This patch eliminates dependency on nose, which has been unnecessary for a long time. Resulting test suite depends on pytest, which is currently perfectly developed and maintained.

@Carreau
Copy link
Member

Carreau commented Jan 12, 2021

Many thanks for working on this. I'll try to integrate this and might do a release. Thought it may take some time. Another possibility would be to finish removing usage of this package from the dependees.

@mcepl
Copy link
Author

mcepl commented Jan 12, 2021

I work for SUSE, which means we are working on hundreds of packages, so I cannot concentrate on one particular package for too long … my current enemy is nose, and so I eliminate it. Concerning dependees, given this whole package has been already deprecated, it seems weird how stubbornly it refuses to die.

@Carreau
Copy link
Member

Carreau commented Jan 12, 2021

Concerning dependees, given this whole package has been already deprecated, it seems weird how stubbornly it refuses to die.

Sorry, this was not a comment for you to do this; I am a maintainer of (all?) the direct dependees that use ipython_genutils, and more a comment that I might go the route of removing ipython_genutils as a dependencies from those (so you can drop ipython_genutils from your list of packages) instead of publishing a new release if ipython_genutils. I might also do both depending on the timeline.

Updating the dependees might also be a better route as some of them still require nose1 IIRC (which is one of the things i've also been getting rid of progressively).

To be clearer, I have commit rights to remove and publish new version of the following packages to not use ipython_genutils:

ipython
ipykernel
ipyparallel
ipython_genutils
jupyter_client
jupyter_console
jupyter_core
jupyter_server
nbconvert
nbformat
notebook
qtconsole
traitlets

A few of those also directly use nose, and I'll try to remove nose usage as well, but will take time.

@mcepl
Copy link
Author

mcepl commented Jan 12, 2021

Looking through openSUSE packages and it seems to me that some packages you mentioned really don’t require nose:

@Carreau
Copy link
Member

Carreau commented Jan 12, 2021

Yeah, my concern is that some of the test are skipped on pytest. I'll see what I can do to help with this migration. Feel free to drop links to upstream issue I'm happy to mention there when the upstream patches have been merged or releases have been done.

@mcepl
Copy link
Author

mcepl commented Mar 2, 2021

@Carreau
Copy link
Member

Carreau commented Mar 7, 2021

jupyter/jupyter_client#622 might also help to remove genutils as a dependencies of Jupyter_client.

@opoplawski
Copy link

Any more progress here? We're probably not going to introduce nose into EPEL9. Still a number of packages using ipython_genutils.

@mcepl
Copy link
Author

mcepl commented Jan 29, 2022

Any more progress here? We're probably not going to introduce nose into EPEL9. Still a number of packages using ipython_genutils.

https://build.opensuse.org/package/view_file/devel:languages:python:jupyter/python-ipython_genutils/denose.patch?expand=1
works still just fine for us.

Our ipython packages don’t need nose anymore.

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

No branches or pull requests

3 participants