-
Notifications
You must be signed in to change notification settings - Fork 5
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
Feature/loosen pyproject deps #371
Conversation
This looks great! any thoughts on why tests passed locally and failed here? |
Good question. Unfortunately, I don't have an immediate answer--but from what I can tell, this change should not impact tests on github actions since github actions downloads dependencies from Edit: it looks like maybe we are using these new requirements since we I'm a bit confused why we have all of these installation steps:
Here's a diff between the most recent passing PR's installed dependencies and this PR's installed dependencies: diff. It looks like the difference could be |
If the test failure is caused by |
bfio seems likely since it failed on image loading... |
@saeliddp could you remove 3.8 from the test matrix as well? |
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.
looks great, don't worry about the failing tests - the ubuntu failure is unrelated to this PR and something I need to fix, the windows tests just timed out (which I think this pr should help with?)
What does this PR do?
As part of the effort to expand the Cyto-DL API, this PR relaxes the requirements in the
pyproject.toml
to make installing from PyPI a bit easier for clients. Short justifications of the changes are below. The final test I ran waspytest -k segmentation
from a freshPython 3.10
venv where I installed the requirements as they are in pyproject.toml (plus pytest) usingpip install -r
. All of these tests passed in 15 minutes.scikit-learn
, we do not import it directly in Cyto-DLaicsimageio
, we do not import it directly in Cyto-DLmlflow
, we do not import it directly in Cyto-DL1: tested latest version by installing the old requirements, then
pip install pkg==new_version
, then running gpu-segmentation tests2: kept as is since already lower-bounded
Notes
bfio
) causes some warnings to appear during testing (no exceptions, though). I think moving forward, we should port tobioio
instead ofaicsimageio
sincebioio
is the version that will have dev support in the future (created issue here)bfio
to show up in our tests on github actions, we will need to update the requirements .txt files in the repo (I think these are generated using PDM, which I'm not super familiar with)boto3
clashes in a weird way withome-zarr
(actuallyfsspec[s3]
fromome-zarr
). The net result of this is that we end up cycling through a bunch of versions ofs3fs
until we find one that doesn't clash, which is nearly 4 years old at this pointBefore submitting
pytest
command?pre-commit run -a
command?Did you have fun?
Make sure you had fun coding 🙃