-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Comments
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. |
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. |
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 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 A few of those also directly use nose, and I'll try to remove nose usage as well, but will take time. |
Looking through openSUSE packages and it seems to me that some packages you mentioned really don’t require nose:
|
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. |
jupyter/jupyter_client#622 might also help to remove genutils as a dependencies of Jupyter_client. |
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 Our ipython packages don’t need nose anymore. |
This runs fewer tests (16+1 skip -> 11+1 skip). I get:
This fixes it: diff --git a/ipython_genutils/tests/test_path.py b/ipython_genutils/tests/test_path.py
index cecabc6..0f1a0bb 100644
--- a/ipython_genutils/tests/test_path.py
+++ b/ipython_genutils/tests/test_path.py
@@ -31,17 +31,13 @@ def test_ensure_dir_exists():
class TestLinkOrCopy(object):
- def __init__(self):
- self.tempdir = None
- self.src = None
-
- def setUp(self):
+ def setup_method(self):
self.tempdir = tempfile.TemporaryDirectory()
self.src = self.dst("src")
with open(self.src, "w") as f:
f.write("Hello, world!")
- def tearDown(self):
+ def teardown_method(self):
self.tempdir.cleanup()
def dst(self, *args): |
Which package are you using which depends in ipython_genutil ? it is likely it is still mark as a dependency but should not be for ~7 years. |
|
It looks like sage and spyder (in a vendored dependency that needs update) still reference it. |
https://build.opensuse.org/request/show/1228245 by user mcepl + anag+factory - Fix denose.patch according to advice by Miro Hrončok on gh#ipython/ipython_genutils#17.
Can help find the current conda packages that list ipytho_genutils as a dependency; it is worth looking as wether they are actual dependencies, and wether the latest versions still use it. |
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.
The text was updated successfully, but these errors were encountered: