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

Nose test dependency #4102

Closed
olebole opened this issue Sep 2, 2022 · 3 comments
Closed

Nose test dependency #4102

olebole opened this issue Sep 2, 2022 · 3 comments
Labels
infrastructure Related to CI, versioning, websites, organizational issues, etc pytest

Comments

@olebole
Copy link
Contributor

olebole commented Sep 2, 2022

Bug report

For the Debian package, I received a bug report Debian#1018675, that yt depends on the nose test framework. Nose is dead and unmaintained since several years, and in Debian we would like to remove nose at some point.

Would it be possible to migrate to pytest (what I would prefer), or to nose2 or so?

Version Information

  • Operating System: Debian bookworm (upcoming)
  • Python Version: 3.10
  • yt version: 4.0.5
@neutrinoceros
Copy link
Member

Hi @olebole, this has been on our radar for quite some time and we are well aware that nose is unmaintained.

Migration to pytest is absolutely our plan in the long run, but it’s bound to be a large effort for us since many of our tests are yield-based, and cannot be run with pytest as they exist now.

However I wasn’t personally aware of the existence of nose2. I will look it up to see if it can be switched to in a transparent manner.

@neutrinoceros neutrinoceros added infrastructure Related to CI, versioning, websites, organizational issues, etc pytest labels Sep 2, 2022
@neutrinoceros
Copy link
Member

It looks like nose2 isn't a drop-in replacement for nose as I hoped, so if even switching to that isn't trivial, I don't think it's worth doing, and our energy is better spent on migrating to pytest directly.
It's a substantial effort and we're currently relying only on volunteer work to perform this migration, so I don't know when we can expect completion, but probably not in the immediate future, and it seems definitely out of reach for existing and upcoming yt releases, I'm sorry about that

@neutrinoceros
Copy link
Member

I created a repo level project to keep track of the existing effort and things that are left to be done here https://github.com/yt-project/yt/projects/4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure Related to CI, versioning, websites, organizational issues, etc pytest
Projects
None yet
Development

No branches or pull requests

2 participants