-
Notifications
You must be signed in to change notification settings - Fork 249
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 stimfitio from pyproject #1602
Conversation
Mysterious failure of one test, @zm711 . Any hints on this? |
this makes sense since stfio cannot be pip-installed, as per the comment below the "all" target. |
Would you be OK with removing it, @apdavison ? Right now this is working as text documentation which is a plus but it also breaks some tooling. I was mentioning Sam that uv tree (a nice and efficient tool to build the dependency tree) is unable to work because stfio is not on an index (e.g. pipy) as far as I know. In addition, it also has the strange behavior described above with normal pip where you end up installing a really old version of neo. How do you think about it? [edit, I misquoted Andrew] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since I don't know stimfitio at all, I feel like we should make sure there is an appropriate error in the io that let's people know what's going on. Have you checked this @h-mayorquin ?
Also I reran tests to see if it's stochastic failures (which we will need to fix--but would be a separate issue).
--It is a random failure. We can track this if it comes up again. This was in filtering code (another section that I haven't explored very deeply).
What sort of error do you have in mind? |
That's just it, I'm not sure. I honestly don't know what is necessary to run this IO if it is not a pypi package. So in this case I would defer to @apdavison or @samuelgarcia if they know what an appropriate warning would be. Or if they are fine with not having a warning. |
It is packaged for Debian, MacPorts, Homebrew, Windows, see: https://github.com/neurodroid/stimfit?tab=readme-ov-file#installation |
I think that right now if someone was to use python-neo/neo/io/stimfitio.py Lines 93 to 95 in 685fd3d
This seems good enough for me. You could use importlib or the try-except pattern with imports to get a more specific import error but I kind of feel that's an overkill. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me then :)
What is this even doing in the pyproject then...?
As discussed with @samuelgarcia and @zm711
this has not been working for a while.
Trying to install it generate this error.
And if you remove the version it goes back to a version of python-neo that did not have that extra and you end up with version 0.5.
This PR removes this.